Skip to content

Commit 1ec7671

Browse files
committed
move exception above class
1 parent ed48825 commit 1ec7671

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/Services/MediaWikiHostResolver.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
use App\Wiki;
66
use Exception;
77

8+
/**
9+
* Exception thrown when a database version is not recognized in MediaWikiHostResolver.
10+
*/
11+
class UnknownDBVersionException extends Exception {}
12+
813
class MediaWikiHostResolver {
914
// TODO: Move this mapping to a config file so that MW updates do not require code changes here.
1015
/** @var array<string, string> Map of DB version strings to MediaWiki backend version strings */
@@ -35,8 +40,3 @@ public function getMwVersionForDomain(string $domain): string {
3540
throw new UnknownDBVersionException("Unknown DB version '{$dbVersion}' for domain '{$domain}'.");
3641
}
3742
}
38-
39-
/**
40-
* Exception thrown when a database version is not recognized in MediaWikiHostResolver.
41-
*/
42-
class UnknownDBVersionException extends Exception {}

0 commit comments

Comments
 (0)