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
phpcs: More require/include is not a function
[lhc/web/wiklou.git]
/
maintenance
/
cleanupRemovedModules.php
diff --git
a/maintenance/cleanupRemovedModules.php
b/maintenance/cleanupRemovedModules.php
index
b339bfc
..
84eec28
100644
(file)
--- a/
maintenance/cleanupRemovedModules.php
+++ b/
maintenance/cleanupRemovedModules.php
@@
-22,7
+22,7
@@
* @author Roan Kattouw
*/
* @author Roan Kattouw
*/
-require_once
( dirname( __FILE__ ) . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script to remove cache entries for removed ResourceLoader modules
/**
* Maintenance script to remove cache entries for removed ResourceLoader modules
@@
-58,7
+58,7
@@
class CleanupRemovedModules extends Maintenance {
$this->output( "Batch $i: $numRows rows\n" );
$i++;
wfWaitForSlaves( $maxlag );
$this->output( "Batch $i: $numRows rows\n" );
$i++;
wfWaitForSlaves( $maxlag );
- } while( $numRows > 0 );
+ } while
( $numRows > 0 );
$this->output( "done\n" );
$this->output( "Cleaning up msg_resource table...\n" );
$this->output( "done\n" );
$this->output( "Cleaning up msg_resource table...\n" );
@@
-72,7
+72,7
@@
class CleanupRemovedModules extends Maintenance {
$this->output( "Batch $i: $numRows rows\n" );
$i++;
wfWaitForSlaves( $maxlag );
$this->output( "Batch $i: $numRows rows\n" );
$i++;
wfWaitForSlaves( $maxlag );
- } while( $numRows > 0 );
+ } while
( $numRows > 0 );
$this->output( "done\n" );
$this->output( "Cleaning up msg_resource_links table...\n" );
$this->output( "done\n" );
$this->output( "Cleaning up msg_resource_links table...\n" );
@@
-85,10
+85,10
@@
class CleanupRemovedModules extends Maintenance {
$this->output( "Batch $i: $numRows rows\n" );
$i++;
wfWaitForSlaves( $maxlag );
$this->output( "Batch $i: $numRows rows\n" );
$i++;
wfWaitForSlaves( $maxlag );
- } while( $numRows > 0 );
+ } while
( $numRows > 0 );
$this->output( "done\n" );
}
}
$maintClass = "CleanupRemovedModules";
$this->output( "done\n" );
}
}
$maintClass = "CleanupRemovedModules";
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;