Code Duplication    Length = 9-12 lines in 2 locations

lib/ar/connect/twitter.php 2 locations

@@ 273-284 (lines=12) @@
270
		return $this->post( 'statuses/update', $options );
271
	}
272
273
	public function get( $path, $options = array() ) {
274
		$url = ar::url( $this->rootURL.$path.'.json' );
275
		$url->query->import( $options );
276
277
		$json = $this->client->get( $url );
278
279
		if ($json && !ar_error::isError($json) ) {
280
			return json_decode( $json );
281
		} else {
282
			return $json;
283
		}
284
	}
285
286
	public function post( $path, $options = array() ) {
287
		$url = ar::url( $this->rootURL.$path.'.json' );
@@ 286-294 (lines=9) @@
283
		}
284
	}
285
286
	public function post( $path, $options = array() ) {
287
		$url = ar::url( $this->rootURL.$path.'.json' );
288
		$json = $this->client->post( $url, $options );
289
		if ($json && !ar_error::isError($json) ) {
290
			return json_decode( $json );
291
		} else {
292
			return $json;
293
		}
294
	}
295
296
}
297