Code Duplication    Length = 3-3 lines in 4 locations

modules/videopress/utility-functions.php 4 locations

@@ 334-336 (lines=3) @@
331
	}
332
333
	// These are explicitly declared to avoid doing unnecessary loops across two levels of arrays.
334
	if ( isset( $meta['videopress']['files_status']['hd'] ) && $meta['videopress']['files_status']['hd'] != 'DONE' ) {
335
		return false;
336
	}
337
338
	if ( isset( $meta['videopress']['files_status']['dvd'] ) && $meta['videopress']['files_status']['dvd'] != 'DONE' ) {
339
		return false;
@@ 338-340 (lines=3) @@
335
		return false;
336
	}
337
338
	if ( isset( $meta['videopress']['files_status']['dvd'] ) && $meta['videopress']['files_status']['dvd'] != 'DONE' ) {
339
		return false;
340
	}
341
342
	if ( isset( $meta['videopress']['files_status']['std']['mp4'] ) && $meta['videopress']['files_status']['std']['mp4'] != 'DONE' ) {
343
		return false;
@@ 342-344 (lines=3) @@
339
		return false;
340
	}
341
342
	if ( isset( $meta['videopress']['files_status']['std']['mp4'] ) && $meta['videopress']['files_status']['std']['mp4'] != 'DONE' ) {
343
		return false;
344
	}
345
346
	if ( isset( $meta['videopress']['files_status']['std']['ogg'] ) && $meta['videopress']['files_status']['std']['ogg'] != 'DONE' ) {
347
		return false;
@@ 346-348 (lines=3) @@
343
		return false;
344
	}
345
346
	if ( isset( $meta['videopress']['files_status']['std']['ogg'] ) && $meta['videopress']['files_status']['std']['ogg'] != 'DONE' ) {
347
		return false;
348
	}
349
350
	return true;
351
}