Code Duplication    Length = 9-9 lines in 2 locations

modules/publicize/publicize-jetpack.php 2 locations

@@ 254-262 (lines=9) @@
251
		}
252
	}
253
254
	function globalize_connection( $connection_id ) {
255
		$xml = new Jetpack_IXR_Client();
256
		$xml->query( 'jetpack.globalizePublicizeConnection', $connection_id, 'globalize' );
257
258
		if ( ! $xml->isError() ) {
259
			$response = $xml->getResponse();
260
			$this->receive_updated_publicize_connections( $response );
261
		}
262
	}
263
264
	function unglobalize_connection( $connection_id ) {
265
		$xml = new Jetpack_IXR_Client();
@@ 264-272 (lines=9) @@
261
		}
262
	}
263
264
	function unglobalize_connection( $connection_id ) {
265
		$xml = new Jetpack_IXR_Client();
266
		$xml->query( 'jetpack.globalizePublicizeConnection', $connection_id, 'unglobalize' );
267
268
		if ( ! $xml->isError() ) {
269
			$response = $xml->getResponse();
270
			$this->receive_updated_publicize_connections( $response );
271
		}
272
	}
273
274
	function connect_url( $service_name, $for = 'publicize' ) {
275
		return Jetpack_Keyring_Service_Helper::connect_url( $service_name, $for );