Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 660-662 (lines=3) @@
657
			)
658
		) );
659
		$post_response_successful = false;
660
		if ( ! is_wp_error( $post_response ) && $post_response['response']['code'] >= 200 && $post_response['response']['code'] < 300 ) {
661
			$post_response_successful = true;
662
		}
663
664
		// Test GET requests
665
		$get_response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
@@ 667-669 (lines=3) @@
664
		// Test GET requests
665
		$get_response = wp_safe_remote_get( 'https://woocommerce.com/wc-api/product-key-api?request=ping&network=' . ( is_multisite() ? '1' : '0' ) );
666
		$get_response_successful = false;
667
		if ( ! is_wp_error( $post_response ) && $post_response['response']['code'] >= 200 && $post_response['response']['code'] < 300 ) {
668
			$get_response_successful = true;
669
		}
670
671
		// Return all environment info. Described by JSON Schema.
672
		return array(