Code Duplication    Length = 8-8 lines in 2 locations

src/wp-includes/ID3/module.audio-video.riff.php 2 locations

@@ 482-489 (lines=8) @@
479
				if (isset($thisfile_riff_raw['fmt ']['wFormatTag'])) {
480
					switch ($thisfile_riff_raw['fmt ']['wFormatTag']) {
481
						case 0x0001: // PCM
482
							if (!empty($info['ac3'])) {
483
								// Dolby Digital WAV files masquerade as PCM-WAV, but they're not
484
								$thisfile_audio['wformattag']  = 0x2000;
485
								$thisfile_audio['codec']       = self::wFormatTagLookup($thisfile_audio['wformattag']);
486
								$thisfile_audio['lossless']    = false;
487
								$thisfile_audio['bitrate']     = $info['ac3']['bitrate'];
488
								$thisfile_audio['sample_rate'] = $info['ac3']['sample_rate'];
489
							}
490
							if (!empty($info['dts'])) {
491
								// Dolby DTS files masquerade as PCM-WAV, but they're not
492
								$thisfile_audio['wformattag']  = 0x2001;
@@ 490-497 (lines=8) @@
487
								$thisfile_audio['bitrate']     = $info['ac3']['bitrate'];
488
								$thisfile_audio['sample_rate'] = $info['ac3']['sample_rate'];
489
							}
490
							if (!empty($info['dts'])) {
491
								// Dolby DTS files masquerade as PCM-WAV, but they're not
492
								$thisfile_audio['wformattag']  = 0x2001;
493
								$thisfile_audio['codec']       = self::wFormatTagLookup($thisfile_audio['wformattag']);
494
								$thisfile_audio['lossless']    = false;
495
								$thisfile_audio['bitrate']     = $info['dts']['bitrate'];
496
								$thisfile_audio['sample_rate'] = $info['dts']['sample_rate'];
497
							}
498
							break;
499
						case 0x08AE: // ClearJump LiteWave
500
							$thisfile_audio['bitrate_mode'] = 'vbr';