X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcopyFileBackend.php;h=3374893755fb92bf49a0e5d489886875f5688ea2;hb=2bb276f07d2f291413fd41e0c62872ef39caed6e;hp=b46cac7ae96129ce17a947cd2ea2d4c2eebb1006;hpb=9e34eeff23fdd46a8e9bddfbab39d45eab232827;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;