Completed
Branch master (fa787a)
by Stephan
02:24
created
src/LingoParser.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
  */
29 29
 namespace Lingo;
30 30
 
31
-use DOMXPath;
32 31
 use Parser;
33 32
 
34 33
 /**
Please login to merge, or discard this patch.
src/Lingo.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 */
44 44
 	public static function initExtension() {
45 45
 
46
-		$GLOBALS[ 'wgExtensionFunctions' ][] = function () {
46
+		$GLOBALS[ 'wgExtensionFunctions' ][ ] = function() {
47 47
 
48 48
 			$parser = LingoParser::getInstance();
49 49
 
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
 
54 54
 			\Hooks::register( 'ParserAfterParse', array( $parser, 'parse' ) );
55 55
 
56
-			\Hooks::register( 'ParserFirstCallInit', function ( \Parser $parser ) {
56
+			\Hooks::register( 'ParserFirstCallInit', function( \Parser $parser ) {
57 57
 
58
-				$parser->setHook( 'noglossary', function ( $input, array $args, \Parser $parser, \PPFrame $frame ) {
58
+				$parser->setHook( 'noglossary', function( $input, array $args, \Parser $parser, \PPFrame $frame ) {
59 59
 					$output = $parser->recursiveTagParse( $input, $frame );
60 60
 					return '<span class="noglossary">' . $output . '</span>';
61 61
 				} );
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
 	 * @param array $doubleUnderscoreIDs
84 84
 	 */
85 85
 	public static function onGetDoubleUnderscoreIDs( array &$doubleUnderscoreIDs ) {
86
-		$doubleUnderscoreIDs[] = 'noglossary';
86
+		$doubleUnderscoreIDs[ ] = 'noglossary';
87 87
 	}
88 88
 }
Please login to merge, or discard this patch.