Completed
Pull Request — master (#8)
by None
67:53 queued 49:22
created
SemanticFormsSelect.hooks.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,19 +4,19 @@
 block discarded – undo
4 4
 
5 5
 	public static onCallback() {
6 6
 		// Do not initialize more than once.
7
-		if ( defined( 'SFS_VERSION' ) ) {
7
+		if (defined('SFS_VERSION')) {
8 8
 			return 1;
9 9
 		}
10 10
 
11
-		define( 'SFS_VERSION', '1.3.0' );
11
+		define('SFS_VERSION', '1.3.0');
12 12
 
13
-		if ( !\ExtensionRegistry::getInstance()->isLoaded( 'SemanticForms' ) ) {
14
-			die( '<b>Error:</b> <a href="https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect">Semantic Forms Selects</a> is a Semantic Forms extension. You need to install <a href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic Forms</a> first.' );
13
+		if (!\ExtensionRegistry::getInstance()->isLoaded('SemanticForms')) {
14
+			die('<b>Error:</b> <a href="https://www.mediawiki.org/wiki/Extension:SemanticFormsSelect">Semantic Forms Selects</a> is a Semantic Forms extension. You need to install <a href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic Forms</a> first.');
15 15
 		}
16 16
 	}
17 17
 
18 18
 	public static onExtensiionFunction() {
19
-		$GLOBALS['sfgFormPrinter']->setInputTypeHook( 'SF_Select', '\SFS\SemanticFormsSelect::init', array() );
19
+		$GLOBALS['sfgFormPrinter']->setInputTypeHook('SF_Select', '\SFS\SemanticFormsSelect::init', array());
20 20
 	}
21 21
 
22 22
 }
23 23
\ No newline at end of file
Please login to merge, or discard this patch.