Code Duplication    Length = 8-8 lines in 2 locations

src/Service/PageListGetter.php 2 locations

@@ 70-77 (lines=8) @@
67
	 *
68
	 * @return Pages
69
	 */
70
	public function getFromWhatLinksHere( $pageName, $extraParams = [] ) {
71
		$params = array_merge( $extraParams, [
72
			'prop' => 'info',
73
			'generator' => 'linkshere',
74
			'titles' => $pageName,
75
		] );
76
		return $this->runQuery( $params, 'glhcontinue', 'pages' );
77
	}
78
79
	/**
80
	 * Get all pages that are linked to from the given page.
@@ 90-97 (lines=8) @@
87
	 *
88
	 * @return Pages
89
	 */
90
	public function getLinksFromHere( $pageName, $extraParams = [] ) {
91
		$params = array_merge( $extraParams, [
92
			'prop' => 'info',
93
			'generator' => 'links',
94
			'titles' => $pageName,
95
		] );
96
		return $this->runQuery( $params, 'gplcontinue', 'pages' );
97
	}
98
99
	/**
100
	 * Get all pages that have the given prefix.