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 "auth: Follow up on e907d4328dc3e"
[lhc/web/wiklou.git]
/
maintenance
/
copyFileBackend.php
diff --git
a/maintenance/copyFileBackend.php
b/maintenance/copyFileBackend.php
index
b46cac7
..
3374893
100644
(file)
--- a/
maintenance/copyFileBackend.php
+++ b/
maintenance/copyFileBackend.php
@@
-337,9
+337,7
@@
class CopyFileBackend extends Maintenance {
$dPathSha1 = sha1( $dPath );
if ( $this->statCache !== null ) {
// All dst files are already in stat cache
$dPathSha1 = sha1( $dPath );
if ( $this->statCache !== null ) {
// All dst files are already in stat cache
- $dstStat = isset( $this->statCache[$dPathSha1] )
- ? $this->statCache[$dPathSha1]
- : false;
+ $dstStat = $this->statCache[$dPathSha1] ?? false;
} else {
$dstStat = $dst->getFileStat( [ 'src' => $dPath ] );
}
} else {
$dstStat = $dst->getFileStat( [ 'src' => $dPath ] );
}
@@
-374,5
+372,5
@@
class CopyFileBackend extends Maintenance {
}
}
}
}
-$maintClass =
'CopyFileBackend'
;
+$maintClass =
CopyFileBackend::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;