Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / maintenance / storage / compressOld.php
index a9b9b9e..8a1069e 100644 (file)
@@ -184,8 +184,8 @@ class CompressOld extends Maintenance {
         * @return bool
         */
        private function compressPage( $row, $extdb ) {
-               if ( false !== strpos( $row->old_flags, 'gzip' )
-                       || false !== strpos( $row->old_flags, 'object' )
+               if ( strpos( $row->old_flags, 'gzip' ) !== false
+                       || strpos( $row->old_flags, 'object' ) !== false
                ) {
                        # print "Already compressed row {$row->old_id}\n";
                        return false;
@@ -362,7 +362,6 @@ class CompressOld extends Maintenance {
                                $primaryOldid = $revs[$i]->rev_text_id;
 
                                # 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++ ) {
                                        $oldid = $revs[$i + $j]->rev_text_id;