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

@@ 3385-3391 (lines=7) @@
3382
		$retVal = [];
3383
		if ( $res->numRows() ) {
3384
			$linkCache = LinkCache::singleton();
3385
			foreach ( $res as $row ) {
3386
				$titleObj = Title::makeTitle( $row->page_namespace, $row->page_title );
3387
				if ( $titleObj ) {
3388
					$linkCache->addGoodLinkObjFromRow( $titleObj, $row );
3389
					$retVal[] = $titleObj;
3390
				}
3391
			}
3392
		}
3393
		return $retVal;
3394
	}