X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FmoveBatch.php;h=6d14f8af5d60ddb12d962e64f96acf39dab2acbf;hb=ed6d53fd38cbc08ad503174aa09d155dc9867a13;hp=fa25a06cca01584b4a04f86f9b296c8a5fc953b2;hpb=863b4880ad8c244dfb8d99b8488e7e0f64513aea;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php index fa25a06cca..6d14f8af5d 100644 --- a/maintenance/moveBatch.php +++ b/maintenance/moveBatch.php @@ -86,9 +86,8 @@ class MoveBatch extends Maintenance { # Setup complete, now start $dbw = $this->getDB( DB_MASTER ); - // @codingStandardsIgnoreStart Ignore avoid function calls in a FOR loop test part warning + // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $linenum = 1; !feof( $file ); $linenum++ ) { - // @codingStandardsIgnoreEnd $line = fgets( $file ); if ( $line === false ) { break; @@ -118,10 +117,9 @@ class MoveBatch extends Maintenance { if ( $interval ) { sleep( $interval ); } - wfWaitForSlaves(); } } } -$maintClass = "MoveBatch"; +$maintClass = MoveBatch::class; require_once RUN_MAINTENANCE_IF_MAIN;