Code Duplication    Length = 7-9 lines in 2 locations

maintenance/convertLinks.php 2 locations

@@ 160-168 (lines=9) @@
157
				}
158
				$ids[$title] = $row->cur_id;
159
				$curRowsRead++;
160
				if ( $reportCurReadProgress ) {
161
					if ( ( $curRowsRead % $curReadReportInterval ) == 0 ) {
162
						$this->performanceLog(
163
							$fh,
164
							$curRowsRead . " " . ( microtime( true ) - $baseTime ) . "\n"
165
						);
166
						$this->output( "\t$curRowsRead rows of $cur table read.\n" );
167
					}
168
				}
169
			}
170
			$dbw->freeResult( $res );
171
			$dbw->bufferResults( true );
@@ 225-231 (lines=7) @@
222
					}
223
					$dbw->query( implode( "", $sqlWrite ) );
224
					$totalTuplesInserted += $tuplesAdded;
225
					if ( $reportLinksConvProgress ) {
226
						$this->output( " done. Total $totalTuplesInserted tuples inserted.\n" );
227
						$this->performanceLog(
228
							$fh,
229
							$totalTuplesInserted . " " . ( microtime( true ) - $baseTime ) . "\n"
230
						);
231
					}
232
				}
233
			}
234
			$this->output( "$totalTuplesInserted valid titles and "