Code Duplication    Length = 2-2 lines in 2 locations

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

@@ 202-203 (lines=2) @@
199
		if ( isset( $data->post_id ) )
200
			$this->post_id = absint( $data->post_id );
201
202
		if ( isset( $data->title ) && $data->title !== '' )
203
			$this->title = trim( str_replace( ' ', ' ', $data->title ) );
204
205
		if ( isset( $data->description ) && $data->description !== '' )
206
			$this->description = trim( $data->description );

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

@@ 194-195 (lines=2) @@
191
		if ( isset( $data->post_id ) )
192
			$this->post_id = absint( $data->post_id );
193
194
		if ( isset( $data->title ) && $data->title !== '' )
195
			$this->title = trim( str_replace( ' ', ' ', $data->title ) );
196
197
		if ( isset( $data->text_direction ) && $data->text_direction === 'rtl' )
198
			$this->text_direction = 'rtl';