Code Duplication    Length = 4-9 lines in 2 locations

maintenance/rebuildrecentchanges.php 2 locations

@@ 109-112 (lines=4) @@
106
				'rc_timestamp < ' . $dbw->addQuotes( $dbw->timestamp( $this->cutoffTo ) )
107
			]
108
		);
109
		foreach ( array_chunk( $rcids, $this->mBatchSize ) as $rcidBatch ) {
110
			$dbw->delete( 'recentchanges', [ 'rc_id' => $rcidBatch ], __METHOD__ );
111
			wfGetLBFactory()->waitForReplication();
112
		}
113
114
		$this->output( "Loading from page and revision tables...\n" );
115
		$res = $dbw->select(
@@ 392-400 (lines=9) @@
389
					__METHOD__
390
				);
391
392
				foreach ( array_chunk( $rcids, $this->mBatchSize ) as $rcidBatch ) {
393
					$dbw->update(
394
						'recentchanges',
395
						[ 'rc_bot' => 1 ],
396
						[ 'rc_id' => $rcidBatch ],
397
						__METHOD__
398
					);
399
					wfGetLBFactory()->waitForReplication();
400
				}
401
			}
402
		}
403