Code Duplication    Length = 3-3 lines in 4 locations

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

@@ 411-413 (lines=3) @@
408
		$name = __FUNCTION__;
409
410
		$status = new Status();
411
		if ( ! Jetpack::is_active() || $status->is_development_mode() || $status->is_staging_site() || ! $this->pass ) {
412
			return self::skipped_test( array( 'name' => $name ) );
413
		}
414
415
		add_filter( 'http_request_timeout', array( 'Jetpack_Cxn_Tests', 'increase_timeout' ) );
416
@@ 473-475 (lines=3) @@
470
		$name = __FUNCTION__;
471
472
		$status = new Status();
473
		if ( ! Jetpack::is_active() || $status->is_development_mode() || $status->is_staging_site() || ! $this->pass ) {
474
			return self::skipped_test( array( 'name' => $name ) );
475
		}
476
477
		add_filter( 'http_request_timeout', array( 'Jetpack_Cxn_Tests', 'increase_timeout' ) );
478
@@ 541-543 (lines=3) @@
538
		$name = __FUNCTION__;
539
540
		$status = new Status();
541
		if ( ! Jetpack::is_active() || $status->is_development_mode() || $status->is_staging_site() || ! $this->pass ) {
542
			return self::skipped_test( array( 'name' => $name ) );
543
		}
544
545
		add_filter( 'http_request_timeout', array( 'Jetpack_Cxn_Tests', 'increase_timeout' ) );
546
		$response = Client::wpcom_json_api_request_as_blog(
@@ 908-910 (lines=3) @@
905
		$name = 'test__wpcom_self_test';
906
907
		$status = new Status();
908
		if ( ! Jetpack::is_active() || $status->is_development_mode() || $status->is_staging_site() || ! $this->pass ) {
909
			return self::skipped_test( array( 'name' => $name ) );
910
		}
911
912
		$self_xml_rpc_url = site_url( 'xmlrpc.php' );
913