Code Duplication    Length = 3-4 lines in 2 locations

modules/videopress/videopress.php 2 locations

@@ 198-200 (lines=3) @@
195
		$endpoint = "sites/{$options['id']}/media/token";
196
		$result = Jetpack_Client::wpcom_json_api_request_as_blog( $endpoint, Jetpack_Client::WPCOM_JSON_API_VERSION, $args );
197
198
		if ( is_wp_error( $result ) ) {
199
			return wp_send_json_error( array( 'message' => __( 'Could not obtain a VideoPress upload token. Please try again later.', 'jetpack' ), 'result' => $result ) );
200
		}
201
202
		$response = json_decode( $result['body'], true );
203
@@ 274-277 (lines=4) @@
271
272
		$result = wp_remote_get( $this->make_video_get_path( $info->guid ) );
273
274
		if ( is_wp_error( $result ) ) {
275
			var_dump($result);
276
			return wp_send_json_error( array( 'message' => __( 'Could not update the VideoPress video status. Please try again later.', 'jetpack' ) ) );
277
		}
278
279
		$response = json_decode( $result['body'], true );
280
		var_dump($response);