X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FpruneFileCache.php;h=455e9c07c935cc0265d9a81d17fd9a8e00e42db6;hb=aeec4a421931dd9c2b21a35aef36a94e7e70a8f8;hp=48d3897790074d998477062880b67ee26df4e359;hpb=8a839c89a35187cccf5cfded568fc2007e7a3389;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/pruneFileCache.php b/maintenance/pruneFileCache.php index 48d3897790..455e9c07c9 100644 --- a/maintenance/pruneFileCache.php +++ b/maintenance/pruneFileCache.php @@ -75,8 +75,8 @@ class PruneFileCache extends Maintenance { } /** - * @param $dir string - * @param $report string|bool Use 'report' to report the directories being scanned + * @param string $dir + * @param string|bool $report Use 'report' to report the directories being scanned */ protected function prune_directory( $dir, $report = false ) { $tsNow = time(); @@ -95,8 +95,8 @@ class PruneFileCache extends Maintenance { // Sanity check the file extension against known cache types if ( $mts < $this->minSurviveTimestamp && preg_match( '/\.(?:html|cache)(?:\.gz)?$/', $file ) - && unlink( $path ) ) - { + && unlink( $path ) + ) { $daysOld = round( ( $tsNow - $mts ) / 86400, 2 ); $this->output( "Deleted `$path` [days=$daysOld]\n" ); }