mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Less tabs in phan config
Change-Id: If9b35b1f1ae6e70917e17e85cb0f9a2b0fa959ee
This commit is contained in:
parent
90dc52620c
commit
1ea6f53fde
|
@ -11,19 +11,19 @@ $cfg['suppress_issue_types'][] = 'PhanUndeclaredProperty';
|
|||
* @param ?array &$result Where to put the result
|
||||
*/
|
||||
function wfCollectPhpFiles( string $dir, ?array &$result = [] ) {
|
||||
if ( !is_dir( $dir ) ) {
|
||||
return;
|
||||
if ( !is_dir( $dir ) ) {
|
||||
return;
|
||||
}
|
||||
foreach ( scandir( $dir ) as $f ) {
|
||||
if ( $f === '.' || $f === '..' ) {
|
||||
continue;
|
||||
}
|
||||
foreach ( scandir( $dir ) as $f ) {
|
||||
if ( $f === '.' || $f === '..' ) {
|
||||
continue;
|
||||
}
|
||||
$fullName = $dir . DIRECTORY_SEPARATOR . $f;
|
||||
wfCollectPhpFiles( $fullName, $result );
|
||||
if ( is_file( $fullName ) && preg_match( '/\.php$/D', $fullName ) ) {
|
||||
$result[] = $fullName;
|
||||
}
|
||||
$fullName = $dir . DIRECTORY_SEPARATOR . $f;
|
||||
wfCollectPhpFiles( $fullName, $result );
|
||||
if ( is_file( $fullName ) && preg_match( '/\.php$/D', $fullName ) ) {
|
||||
$result[] = $fullName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Exclude src/DOM in favour of .phan/stubs/DomImpl.php
|
||||
|
|
Loading…
Reference in a new issue