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

@@ 3418-3424 (lines=7) @@
3415
		$retVal = [];
3416
		if ( $res->numRows() ) {
3417
			$linkCache = LinkCache::singleton();
3418
			foreach ( $res as $row ) {
3419
				$titleObj = Title::makeTitle( $row->page_namespace, $row->page_title );
3420
				if ( $titleObj ) {
3421
					$linkCache->addGoodLinkObjFromRow( $titleObj, $row );
3422
					$retVal[] = $titleObj;
3423
				}
3424
			}
3425
		}
3426
		return $retVal;
3427
	}