diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-01 14:10:16 +0100 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2018-01-01 14:10:16 +0100 |
commit | 255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b (patch) | |
tree | df77c421492520f435b47339436eec0b5c20ca56 /maintenance/storage | |
parent | 75160bdd3b4ac3642d147cda46e47c809999937d (diff) | |
download | mediawikicore-255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b.tar.gz mediawikicore-255d76f2a13a8378ded9f0cf1c2bb172f7f07a5b.zip |
build: Updating mediawiki/mediawiki-codesniffer to 15.0.0
Clean up use of @codingStandardsIgnore
- @codingStandardsIgnoreFile -> phpcs:ignoreFile
- @codingStandardsIgnoreLine -> phpcs:ignore
- @codingStandardsIgnoreStart -> phpcs:disable
- @codingStandardsIgnoreEnd -> phpcs:enable
For phpcs:disable always the necessary sniffs are provided.
Some start/end pairs are changed to line ignore
Change-Id: I92ef235849bcc349c69e53504e664a155dd162c8
Diffstat (limited to 'maintenance/storage')
-rw-r--r-- | maintenance/storage/compressOld.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/maintenance/storage/compressOld.php b/maintenance/storage/compressOld.php index 0ae46ae22a2e..4d56ef07d582 100644 --- a/maintenance/storage/compressOld.php +++ b/maintenance/storage/compressOld.php @@ -361,10 +361,9 @@ class CompressOld extends Maintenance { $usedChunk = false; $primaryOldid = $revs[$i]->rev_text_id; - // @codingStandardsIgnoreStart Ignore avoid function calls in a FOR loop test part warning # Get the text of each revision and add it to the object + // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $j = 0; $j < $thisChunkSize && $chunk->isHappy(); $j++ ) { - // @codingStandardsIgnoreEnd $oldid = $revs[$i + $j]->rev_text_id; # Get text |