Code Duplication    Length = 8-9 lines in 2 locations

modules/publicize/publicize-jetpack.php 2 locations

@@ 339-346 (lines=8) @@
336
		return $url;
337
	}
338
339
	function connect_url( $service_name ) {
340
		return add_query_arg( array(
341
			'action'   => 'request',
342
			'service'  => $service_name,
343
			'kr_nonce' => wp_create_nonce( 'keyring-request' ),
344
			'nonce'    => wp_create_nonce( "keyring-request-$service_name" ),
345
		), menu_page_url( 'sharing', false ) );
346
	}
347
348
	function refresh_url( $service_name ) {
349
		return add_query_arg( array(
@@ 359-367 (lines=9) @@
356
		), admin_url( 'options-general.php?page=sharing' ) );
357
	}
358
359
	function disconnect_url( $service_name, $id ) {
360
		return add_query_arg( array(
361
			'action'   => 'delete',
362
			'service'  => $service_name,
363
			'id'       => $id,
364
			'kr_nonce' => wp_create_nonce( 'keyring-request' ),
365
			'nonce'    => wp_create_nonce( "keyring-request-$service_name" ),
366
		), menu_page_url( 'sharing', false ) );
367
	}
368
369
	/**
370
	 * Get social networks, either all available or only those that the site is connected to.