Code Duplication    Length = 8-9 lines in 2 locations

_inc/lib/class.jetpack-service-helper.php 2 locations

@@ 50-57 (lines=8) @@
47
		return $url;
48
	}
49
50
	static function connect_url( $service_name ) {
51
		return add_query_arg( array(
52
			'action'   => 'request',
53
			'service'  => $service_name,
54
			'kr_nonce' => wp_create_nonce( 'keyring-request' ),
55
			'nonce'    => wp_create_nonce( "keyring-request-$service_name" ),
56
		), menu_page_url( 'sharing', false ) );
57
	}
58
59
	static function refresh_url( $service_name ) {
60
		return add_query_arg( array(
@@ 70-78 (lines=9) @@
67
		), admin_url( 'options-general.php?page=sharing' ) );
68
	}
69
70
	static function disconnect_url( $service_name, $id ) {
71
		return add_query_arg( array(
72
			'action'   => 'delete',
73
			'service'  => $service_name,
74
			'id'       => $id,
75
			'kr_nonce' => wp_create_nonce( 'keyring-request' ),
76
			'nonce'    => wp_create_nonce( "keyring-request-$service_name" ),
77
		), menu_page_url( 'sharing', false ) );
78
	}
79
80
	static function admin_page_load() {
81
		if ( isset( $_GET['action'] ) ) {