Code Duplication    Length = 3-3 lines in 2 locations

_inc/lib/debugger/class-jetpack-cxn-tests.php 2 locations

@@ 465-467 (lines=3) @@
462
		$name = __FUNCTION__;
463
464
		$status = new Status();
465
		if ( ! Jetpack::is_active() || $status->is_offline_mode() || $status->is_staging_site() || ! $this->pass ) {
466
			return self::skipped_test( array( 'name' => $name ) );
467
		}
468
469
		add_filter( 'http_request_timeout', array( 'Jetpack_Cxn_Tests', 'increase_timeout' ) );
470
		$response = Client::wpcom_json_api_request_as_blog(
@@ 832-834 (lines=3) @@
829
		$name = 'test__wpcom_self_test';
830
831
		$status = new Status();
832
		if ( ! Jetpack::is_active() || $status->is_offline_mode() || $status->is_staging_site() || ! $this->pass ) {
833
			return self::skipped_test( array( 'name' => $name ) );
834
		}
835
836
		$self_xml_rpc_url = site_url( 'xmlrpc.php' );
837