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
Register a default value for the timecorrection preference
[lhc/web/wiklou.git]
/
maintenance
/
findDeprecated.php
diff --git
a/maintenance/findDeprecated.php
b/maintenance/findDeprecated.php
index
9022292
..
bc1b34a
100644
(file)
--- a/
maintenance/findDeprecated.php
+++ b/
maintenance/findDeprecated.php
@@
-53,7
+53,7
@@
class DeprecatedInterfaceFinder extends FileAwareNodeVisitor {
private $currentClass = null;
private $currentClass = null;
- private $foundNodes =
array()
;
+ private $foundNodes =
[]
;
public function getFoundNodes() {
// Sort results by version, then by filename, then by name.
public function getFoundNodes() {
// Sort results by version, then by filename, then by name.
@@
-105,12
+105,12
@@
class DeprecatedInterfaceFinder extends FileAwareNodeVisitor {
$name = $node->name;
}
$name = $node->name;
}
- $this->foundNodes[ $version ][] =
array(
+ $this->foundNodes[ $version ][] =
[
'filename' => $node->filename,
'line' => $node->getLine(),
'name' => $name,
'hard' => $this->isHardDeprecated( $node ),
'filename' => $node->filename,
'line' => $node->getLine(),
'name' => $name,
'hard' => $this->isHardDeprecated( $node ),
-
)
;
+
]
;
}
return $retVal;
}
return $retVal;
@@
-158,7
+158,7
@@
class FindDeprecated extends Maintenance {
}
$finder->setCurrentFile( substr( $file->getPathname(), strlen( $IP ) + 1 ) );
}
$finder->setCurrentFile( substr( $file->getPathname(), strlen( $IP ) + 1 ) );
- $nodes = $parser->parse( $code,
array( 'throwOnError' => false )
);
+ $nodes = $parser->parse( $code,
[ 'throwOnError' => false ]
);
$traverser->traverse( $nodes );
if ( $i % $chunkSize === 0 ) {
$traverser->traverse( $nodes );
if ( $i % $chunkSize === 0 ) {