summaryrefslogtreecommitdiff
path: root/maintenance/pruneFileCache.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
commitc9aa36da061816dee256a979c2ff8d2ee41824d9 (patch)
tree29f7002b80ee984b488bd047dbbd80b36bf892e9 /maintenance/pruneFileCache.php
parentb4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff)
parentd1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff)
Merge branch 'archwiki'
# Conflicts: # skins/ArchLinux.php # skins/ArchLinux/archlogo.gif
Diffstat (limited to 'maintenance/pruneFileCache.php')
-rw-r--r--maintenance/pruneFileCache.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/maintenance/pruneFileCache.php b/maintenance/pruneFileCache.php
index 48d38977..455e9c07 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" );
}