Code Duplication    Length = 8-8 lines in 2 locations

src/Service/PageMover.php 1 location

@@ 50-57 (lines=8) @@
47
	 *
48
	 * @return mixed[]
49
	 */
50
	private function getMoveParams( int $pageid, \Addwiki\Mediawiki\DataModel\Title $target, array $extraParams ): array {
51
		$params = [];
52
		$params['fromid'] = $pageid;
53
		$params['to'] = $target->getTitle();
54
		$params['token'] = $this->api->getToken( 'move' );
55
56
		return array_merge( $extraParams, $params );
57
	}
58
59
}
60

src/Service/PageRestorer.php 1 location

@@ 38-45 (lines=8) @@
35
	 *
36
	 * @return mixed[]
37
	 */
38
	private function getUndeleteParams( Title $title, array $extraParams ): array {
39
		$params = [];
40
41
		$params['title'] = $title->getTitle();
42
		$params['token'] = $this->getUndeleteToken( $title );
43
44
		return array_merge( $extraParams, $params );
45
	}
46
47
	/**
48
	 * @param Title $title