* @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;
$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;