X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdeleteBatch.php;h=0f3c506734e4907735508531199030547c964cab;hb=546d94dea46215156336b2e2f2fb52b08274be00;hp=eceadc11119c6aabe4e0101d19317c53439373b4;hpb=64a6afaf6964b3f9e61d595d5586fe7428a57e73;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php index eceadc1111..0f3c506734 100644 --- a/maintenance/deleteBatch.php +++ b/maintenance/deleteBatch.php @@ -83,9 +83,8 @@ class DeleteBatch extends Maintenance { $dbw = $this->getDB( DB_MASTER ); # Handle each entry - // @codingStandardsIgnoreStart Ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed + // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $linenum = 1; !feof( $file ); $linenum++ ) { - // @codingStandardsIgnoreEnd $line = trim( fgets( $file ) ); if ( $line == '' ) { continue; @@ -124,5 +123,5 @@ class DeleteBatch extends Maintenance { } } -$maintClass = "DeleteBatch"; +$maintClass = DeleteBatch::class; require_once RUN_MAINTENANCE_IF_MAIN;