Code Duplication    Length = 3-3 lines in 2 locations

includes/api/class-wc-rest-system-status-controller.php 2 locations

@@ 476-478 (lines=3) @@
473
			),
474
		) );
475
		$post_response_successful = false;
476
		if ( ! is_wp_error( $post_response ) && $post_response['response']['code'] >= 200 && $post_response['response']['code'] < 300 ) {
477
			$post_response_successful = true;
478
		}
479
480
		// Test GET requests
481
		$get_response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
@@ 483-485 (lines=3) @@
480
		// Test GET requests
481
		$get_response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
482
		$get_response_successful = false;
483
		if ( ! is_wp_error( $post_response ) && $post_response['response']['code'] >= 200 && $post_response['response']['code'] < 300 ) {
484
			$get_response_successful = true;
485
		}
486
487
		// Return all environment info. Described by JSON Schema.
488
		return array(