Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 70-72 (lines=3) @@
67
		);
68
		$response = Client::_wp_remote_request( $url, compact( 'body', 'method' ) );
69
70
		if ( is_wp_error( $response ) || ! wp_remote_retrieve_body( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
71
			return false;
72
		}
73
74
		$body = json_decode( wp_remote_retrieve_body( $response ), true );
75
@@ 100-102 (lines=3) @@
97
		$method   = 'GET';
98
		$response = Client::remote_request( compact( 'url', 'method' ) );
99
100
		if ( is_wp_error( $response ) || ! wp_remote_retrieve_body( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
101
			return false;
102
		}
103
104
		$body = json_decode( wp_remote_retrieve_body( $response ), true );
105