Code Duplication    Length = 5-5 lines in 2 locations

includes/api/ApiQueryBacklinks.php 2 locations

@@ 453-457 (lines=5) @@
450
					$fit = $result->addValue(
451
						[ 'query', $this->getModuleName() ],
452
						$idx, array_diff_key( $arr, [ 'redirlinks' => '' ] ) );
453
					if ( !$fit ) {
454
						$this->continueStr = implode( '|', array_slice( $this->cont, 0, 6 ) ) .
455
							"|$pageID";
456
						break;
457
					}
458
459
					$hasRedirs = false;
460
					$redirLinks = isset( $arr['redirlinks'] ) ? (array)$arr['redirlinks'] : [];
@@ 476-480 (lines=5) @@
473
						$fit = $result->addValue(
474
							[ 'query', $this->getModuleName(), $idx, 'redirlinks' ],
475
							null, $redir );
476
						if ( !$fit ) {
477
							$this->continueStr = implode( '|', array_slice( $this->cont, 0, 6 ) ) .
478
								"|$pageID|$key";
479
							break;
480
						}
481
						$hasRedirs = true;
482
					}
483
					if ( $hasRedirs ) {