Code Duplication    Length = 7-7 lines in 2 locations

modules/videopress-v2/class.videopress-video.php 1 location

@@ 236-242 (lines=7) @@
233
		if ( isset( $data->posterframe ) && $data->posterframe !== '' )
234
			$this->poster_frame_uri = esc_url_raw( $data->posterframe, array( 'http', 'https' ) );
235
236
		if ( isset( $data->mp4 ) || isset( $data->ogv ) ) {
237
			$this->videos = new stdClass();
238
			if ( isset( $data->mp4 ) )
239
				$this->videos->mp4 = $data->mp4;
240
			if ( isset( $data->ogv ) )
241
				$this->videos->ogv = $data->ogv;
242
		}
243
244
		if ( isset( $data->swf ) ) {
245
			if ( ! isset( $this->players ) )

modules/videopress/class.videopress-video.php 1 location

@@ 225-231 (lines=7) @@
222
		if ( isset( $data->posterframe ) && $data->posterframe !== '' )
223
			$this->poster_frame_uri = esc_url_raw( $data->posterframe, array( 'http', 'https' ) );
224
225
		if ( isset( $data->mp4 ) || isset( $data->ogv ) ) {
226
			$this->videos = new stdClass();
227
			if ( isset( $data->mp4 ) )
228
				$this->videos->mp4 = $data->mp4;
229
			if ( isset( $data->ogv ) )
230
				$this->videos->ogv = $data->ogv;
231
		}
232
233
		if ( isset( $data->swf ) ) {
234
			if ( ! isset( $this->players ) )