X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fparser%2FParserDiffTest.php;h=d0b66f8061fbb4178c8815503806f6305f8e7af7;hb=e7be66b4d725c610e6e014b9cb4a755b0749b364;hp=32f5d06826fc98a11b2e8e16a92f33ba8f985dc7;hpb=3dd9d431ead4d1877fbaf40a1bc24d57aa7f86ea;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/ParserDiffTest.php b/includes/parser/ParserDiffTest.php index 32f5d06826..d0b66f8061 100644 --- a/includes/parser/ParserDiffTest.php +++ b/includes/parser/ParserDiffTest.php @@ -49,7 +49,7 @@ class ParserDiffTest foreach ( $this->conf['parsers'] as $i => $parserConf ) { if ( !is_array( $parserConf ) ) { $class = $parserConf; - $parserConf = array( 'class' => $parserConf ); + $parserConf = [ 'class' => $parserConf ]; } else { $class = $parserConf['class']; } @@ -59,12 +59,12 @@ class ParserDiffTest public function __call( $name, $args ) { $this->init(); - $results = array(); + $results = []; $mismatch = false; $lastResult = null; $first = true; foreach ( $this->parsers as $i => $parser ) { - $currentResult = call_user_func_array( array( &$this->parsers[$i], $name ), $args ); + $currentResult = call_user_func_array( [ &$this->parsers[$i], $name ], $args ); if ( $first ) { $first = false; } else { @@ -83,7 +83,7 @@ class ParserDiffTest } if ( $mismatch ) { if ( count( $results ) == 2 ) { - $resultsList = array(); + $resultsList = []; foreach ( $this->parsers as $i => $parser ) { $resultsList[] = var_export( $results[$i], true ); }