Code Duplication    Length = 8-9 lines in 2 locations

includes/api/ApiQueryDeletedRevisions.php 2 locations

@@ 210-218 (lines=9) @@
207
		$count = 0;
208
		$generated = [];
209
		foreach ( $res as $row ) {
210
			if ( ++$count > $this->limit ) {
211
				// We've had enough
212
				$this->setContinueEnumParameter( 'continue',
213
					$revCount
214
						? "$row->ar_rev_id|$row->ar_id"
215
						: "$row->ar_namespace|$row->ar_title|$row->ar_timestamp|$row->ar_id"
216
				);
217
				break;
218
			}
219
220
			if ( $resultPageSet !== null ) {
221
				$generated[] = $row->ar_rev_id;
@@ 247-254 (lines=8) @@
244
					$this->extractRevisionInfo( Revision::newFromArchiveRow( $row ), $row ),
245
					'rev'
246
				);
247
				if ( !$fit ) {
248
					$this->setContinueEnumParameter( 'continue',
249
						$revCount
250
							? "$row->ar_rev_id|$row->ar_id"
251
							: "$row->ar_namespace|$row->ar_title|$row->ar_timestamp|$row->ar_id"
252
					);
253
					break;
254
				}
255
			}
256
		}
257