Code Duplication    Length = 3-3 lines in 2 locations

projects/plugins/jetpack/sal/class.json-api-post-base.php 1 location

@@ 670-672 (lines=3) @@
667
668
		// add VideoPress link to the meta
669
		if ( in_array( $ext, array( 'ogv', 'mp4', 'mov', 'wmv', 'avi', 'mpg', '3gp', '3g2', 'm4v' ) ) ) {
670
			if ( function_exists( 'video_get_info_by_blogpostid' ) ) {
671
				$response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' );
672
			}
673
		}
674
675
		if ( $media_item->post_parent > 0 ) {

projects/plugins/jetpack/class.json-api-endpoints.php 1 location

@@ 1501-1503 (lines=3) @@
1498
1499
		// add VideoPress link to the meta
1500
		if ( isset( $response['videopress_guid'] ) ) {
1501
			if ( function_exists( 'video_get_info_by_blogpostid' ) ) {
1502
				$response['meta']->links->videopress = (string) $this->links->get_link( '/videos/%s', $response['videopress_guid'], '' );
1503
			}
1504
		}
1505
1506
		if ( $media_item->post_parent > 0 ) {