Code Duplication    Length = 6-7 lines in 2 locations

maintenance/purgeList.php 1 location

@@ 111-116 (lines=6) @@
108
				break;
109
			}
110
			$urls = [];
111
			foreach ( $res as $row ) {
112
				$title = Title::makeTitle( $row->page_namespace, $row->page_title );
113
				$url = $title->getInternalURL();
114
				$urls[] = $url;
115
				$startId = $row->page_id;
116
			}
117
			$this->sendPurgeRequest( $urls );
118
		}
119
	}

includes/Title.php 1 location

@@ 3376-3382 (lines=7) @@
3373
		$retVal = [];
3374
		if ( $res->numRows() ) {
3375
			$linkCache = LinkCache::singleton();
3376
			foreach ( $res as $row ) {
3377
				$titleObj = Title::makeTitle( $row->page_namespace, $row->page_title );
3378
				if ( $titleObj ) {
3379
					$linkCache->addGoodLinkObjFromRow( $titleObj, $row );
3380
					$retVal[] = $titleObj;
3381
				}
3382
			}
3383
		}
3384
		return $retVal;
3385
	}