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

@@ 3356-3362 (lines=7) @@
3353
		$retVal = [];
3354
		if ( $res->numRows() ) {
3355
			$linkCache = LinkCache::singleton();
3356
			foreach ( $res as $row ) {
3357
				$titleObj = Title::makeTitle( $row->page_namespace, $row->page_title );
3358
				if ( $titleObj ) {
3359
					$linkCache->addGoodLinkObjFromRow( $titleObj, $row );
3360
					$retVal[] = $titleObj;
3361
				}
3362
			}
3363
		}
3364
		return $retVal;
3365
	}