Code Duplication    Length = 9-9 lines in 3 locations

includes/skins/Skin.php 2 locations

@@ 1163-1171 (lines=9) @@
1160
	 * @param string $urlaction
1161
	 * @return array
1162
	 */
1163
	static function makeUrlDetails( $name, $urlaction = '' ) {
1164
		$title = Title::newFromText( $name );
1165
		self::checkTitle( $title, $name );
1166
1167
		return [
1168
			'href' => $title->getLocalURL( $urlaction ),
1169
			'exists' => $title->isKnown(),
1170
		];
1171
	}
1172
1173
	/**
1174
	 * Make URL details where the article exists (or at least it's convenient to think so)
@@ 1179-1187 (lines=9) @@
1176
	 * @param string $urlaction
1177
	 * @return array
1178
	 */
1179
	static function makeKnownUrlDetails( $name, $urlaction = '' ) {
1180
		$title = Title::newFromText( $name );
1181
		self::checkTitle( $title, $name );
1182
1183
		return [
1184
			'href' => $title->getLocalURL( $urlaction ),
1185
			'exists' => true
1186
		];
1187
	}
1188
1189
	/**
1190
	 * make sure we have some title to operate on

includes/skins/SkinTemplate.php 1 location

@@ 777-785 (lines=9) @@
774
	/**
775
	 * @todo is this even used?
776
	 */
777
	function makeArticleUrlDetails( $name, $urlaction = '' ) {
778
		$title = Title::newFromText( $name );
779
		$title = $title->getSubjectPage();
780
		self::checkTitle( $title, $name );
781
		return [
782
			'href' => $title->getLocalURL( $urlaction ),
783
			'exists' => $title->exists(),
784
		];
785
	}
786
787
	/**
788
	 * a structured array of links usually used for the tabs in a skin