Passed
Push — master ( a9e3bd...bead6a )
by
unknown
04:22
created
src/Lingo.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	 * @since 2.0.2
43 43
 	 */
44 44
 	public static function initExtension() {
45
-		$GLOBALS[ 'wgExtensionFunctions' ][] = function () {
45
+		$GLOBALS[ 'wgExtensionFunctions' ][ ] = function() {
46 46
 			$parser = LingoParser::getInstance();
47 47
 
48 48
 			$backend = new $GLOBALS[ 'wgexLingoBackend' ]();
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
 
52 52
 			\Hooks::register( 'ContentAlterParserOutput', [ $parser, 'parse' ] );
53 53
 
54
-			\Hooks::register( 'GetDoubleUnderscoreIDs', function ( array &$doubleUnderscoreIDs ) {
55
-				$doubleUnderscoreIDs[] = 'noglossary';
54
+			\Hooks::register( 'GetDoubleUnderscoreIDs', function( array &$doubleUnderscoreIDs ) {
55
+				$doubleUnderscoreIDs[ ] = 'noglossary';
56 56
 				return true;
57 57
 			} );
58 58
 
59
-			\Hooks::register( 'ParserFirstCallInit', function ( \Parser $parser ) {
60
-				$parser->setHook( 'noglossary', function ( $input, array $args, \Parser $parser, \PPFrame $frame ) {
59
+			\Hooks::register( 'ParserFirstCallInit', function( \Parser $parser ) {
60
+				$parser->setHook( 'noglossary', function( $input, array $args, \Parser $parser, \PPFrame $frame ) {
61 61
 					$output = $parser->recursiveTagParse( $input, $frame );
62 62
 					return '<span class="noglossary">' . $output . '</span>';
63 63
 				} );
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 				return true;
66 66
 			} );
67 67
 
68
-			\Hooks::register( 'SpecialPageBeforeExecute', function ( \SpecialPage $specialPage, $subPage ) {
68
+			\Hooks::register( 'SpecialPageBeforeExecute', function( \SpecialPage $specialPage, $subPage ) {
69 69
 				if ( $specialPage instanceof \SpecialVersion ) {
70 70
 					foreach ( $GLOBALS[ 'wgExtensionCredits' ][ 'parserhook' ] as $index => $description ) {
71 71
 						if ( $GLOBALS[ 'wgExtensionCredits' ][ 'parserhook' ][ $index ][ 'name' ] === 'Lingo' ) {
Please login to merge, or discard this patch.