Code Duplication    Length = 3-3 lines in 3 locations

_inc/lib/class.core-rest-api-endpoints.php 3 locations

@@ 1408-1410 (lines=3) @@
1405
			);
1406
		}
1407
1408
		if ( $rewind_data->get_error_code() === 'rewind_data_fetch_failed' ) {
1409
			return new WP_Error( 'rewind_data_fetch_failed', esc_html__( 'Failed fetching rewind data. Try again later.', 'jetpack' ), array( 'status' => 400 ) );
1410
		}
1411
1412
		if ( $rewind_data->get_error_code() === 'site_id_missing' ) {
1413
			return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) );
@@ 1412-1414 (lines=3) @@
1409
			return new WP_Error( 'rewind_data_fetch_failed', esc_html__( 'Failed fetching rewind data. Try again later.', 'jetpack' ), array( 'status' => 400 ) );
1410
		}
1411
1412
		if ( $rewind_data->get_error_code() === 'site_id_missing' ) {
1413
			return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) );
1414
		}
1415
1416
		return new WP_Error(
1417
			'error_get_rewind_data',
@@ 1495-1497 (lines=3) @@
1492
			return new WP_Error( 'scan_state_fetch_failed', esc_html__( 'Failed fetching rewind data. Try again later.', 'jetpack' ), array( 'status' => 400 ) );
1493
		}
1494
1495
		if ( $scan_state->get_error_code() === 'site_id_missing' ) {
1496
			return new WP_Error( 'site_id_missing', esc_html__( 'The ID of this site does not exist.', 'jetpack' ), array( 'status' => 404 ) );
1497
		}
1498
1499
		return new WP_Error(
1500
			'error_get_rewind_data',