dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Added a separate error message for mkdir failures"
[lhc/web/wiklou.git]
/
includes
/
parser
/
ParserDiffTest.php
diff --git
a/includes/parser/ParserDiffTest.php
b/includes/parser/ParserDiffTest.php
index
32f5d06
..
353825a
100644
(file)
--- a/
includes/parser/ParserDiffTest.php
+++ b/
includes/parser/ParserDiffTest.php
@@
-24,8
+24,7
@@
/**
* @ingroup Parser
*/
/**
* @ingroup Parser
*/
-class ParserDiffTest
-{
+class ParserDiffTest {
public $parsers;
public $conf;
public $shortOutput = false;
public $parsers;
public $conf;
public $shortOutput = false;
@@
-49,7
+48,7
@@
class ParserDiffTest
foreach ( $this->conf['parsers'] as $i => $parserConf ) {
if ( !is_array( $parserConf ) ) {
$class = $parserConf;
foreach ( $this->conf['parsers'] as $i => $parserConf ) {
if ( !is_array( $parserConf ) ) {
$class = $parserConf;
- $parserConf =
array( 'class' => $parserConf )
;
+ $parserConf =
[ 'class' => $parserConf ]
;
} else {
$class = $parserConf['class'];
}
} else {
$class = $parserConf['class'];
}
@@
-59,12
+58,12
@@
class ParserDiffTest
public function __call( $name, $args ) {
$this->init();
public function __call( $name, $args ) {
$this->init();
- $results =
array()
;
+ $results =
[]
;
$mismatch = false;
$lastResult = null;
$first = true;
foreach ( $this->parsers as $i => $parser ) {
$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 {
if ( $first ) {
$first = false;
} else {
@@
-83,7
+82,7
@@
class ParserDiffTest
}
if ( $mismatch ) {
if ( count( $results ) == 2 ) {
}
if ( $mismatch ) {
if ( count( $results ) == 2 ) {
- $resultsList =
array()
;
+ $resultsList =
[]
;
foreach ( $this->parsers as $i => $parser ) {
$resultsList[] = var_export( $results[$i], true );
}
foreach ( $this->parsers as $i => $parser ) {
$resultsList[] = var_export( $results[$i], true );
}