X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcopyFileBackend.php;h=3374893755fb92bf49a0e5d489886875f5688ea2;hb=4077b57759756ecd0d25427ec9598feb28a28ac1;hp=b46cac7ae96129ce17a947cd2ea2d4c2eebb1006;hpb=785960660f2a29f59eaaf760e71f675b9a71de8c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index b46cac7ae9..3374893755 100644 --- 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 - $dstStat = isset( $this->statCache[$dPathSha1] ) - ? $this->statCache[$dPathSha1] - : false; + $dstStat = $this->statCache[$dPathSha1] ?? false; } 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;