Code Duplication    Length = 3-3 lines in 2 locations

projects/packages/connection/src/class-tokens.php 2 locations

@@ 64-66 (lines=3) @@
61
		);
62
		$response   = Client::_wp_remote_request( $url, compact( 'body', 'method' ) );
63
64
		if ( is_wp_error( $response ) || ! wp_remote_retrieve_body( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
65
			return false;
66
		}
67
68
		$body = json_decode( wp_remote_retrieve_body( $response ), true );
69
@@ 94-96 (lines=3) @@
91
		$method   = 'GET';
92
		$response = Client::remote_request( compact( 'url', 'method' ) );
93
94
		if ( is_wp_error( $response ) || ! wp_remote_retrieve_body( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
95
			return false;
96
		}
97
98
		$body = json_decode( wp_remote_retrieve_body( $response ), true );
99