Code Duplication    Length = 9-9 lines in 2 locations

src/Client/MediawikiApi.php 2 locations

@@ 231-239 (lines=9) @@
228
	 *
229
	 * @return mixed Normally an array
230
	 */
231
	public function getRequest( Request $request ) {
232
		$response = $this->getClient()->request(
233
			'GET',
234
			$this->apiUrl,
235
			$this->getClientRequestOptions( $request, 'query' )
236
		);
237
238
		return $this->decodeResponse( $response );
239
	}
240
241
	/**
242
	 * @since 0.2
@@ 248-256 (lines=9) @@
245
	 *
246
	 * @return mixed Normally an array
247
	 */
248
	public function postRequest( Request $request ) {
249
		$response = $this->getClient()->request(
250
			'POST',
251
			$this->apiUrl,
252
			$this->getClientRequestOptions( $request, $this->getPostRequestEncoding( $request ) )
253
		);
254
255
		return $this->decodeResponse( $response );
256
	}
257
258
	/**
259
	 * @param ResponseInterface $response