Code Duplication    Length = 7-7 lines in 2 locations

src/Service/PageDeleter.php 2 locations

@@ 26-32 (lines=7) @@
23
	 *
24
	 * @return bool
25
	 */
26
	public function delete( Page $page, array $extraParams = [] ) {
27
		$this->api->postRequest( new SimpleRequest(
28
			'delete',
29
			$this->getDeleteParams( $page->getPageIdentifier(), $extraParams )
30
		) );
31
		return true;
32
	}
33
34
	/**
35
	 * @since 0.2
@@ 42-48 (lines=7) @@
39
	 *
40
	 * @return bool
41
	 */
42
	public function deleteFromRevision( Revision $revision, array $extraParams = [] ) {
43
		$this->api->postRequest( new SimpleRequest(
44
			'delete',
45
			$this->getDeleteParams( $revision->getPageIdentifier(), $extraParams )
46
		) );
47
		return true;
48
	}
49
50
	/**
51
	 * @since 0.2