Code Duplication    Length = 6-6 lines in 2 locations

src/wp-includes/ID3/getid3.php 2 locations

@@ 395-400 (lines=6) @@
392
393
			// check for illegal ID3 tags
394
			if (isset($determined_format['fail_id3']) && (in_array('id3v1', $this->info['tags']) || in_array('id3v2', $this->info['tags']))) {
395
				if ($determined_format['fail_id3'] === 'ERROR') {
396
					fclose($this->fp);
397
					return $this->error('ID3 tags not allowed on this file type.');
398
				} elseif ($determined_format['fail_id3'] === 'WARNING') {
399
					$this->warning('ID3 tags not allowed on this file type.');
400
				}
401
			}
402
403
			// check for illegal APE tags
@@ 405-410 (lines=6) @@
402
403
			// check for illegal APE tags
404
			if (isset($determined_format['fail_ape']) && in_array('ape', $this->info['tags'])) {
405
				if ($determined_format['fail_ape'] === 'ERROR') {
406
					fclose($this->fp);
407
					return $this->error('APE tags not allowed on this file type.');
408
				} elseif ($determined_format['fail_ape'] === 'WARNING') {
409
					$this->warning('APE tags not allowed on this file type.');
410
				}
411
			}
412
413
			// set mime type