Code Duplication    Length = 15-18 lines in 2 locations

src/wp-includes/ID3/module.audio-video.riff.php 1 location

@@ 1156-1170 (lines=15) @@
1153
				$info['fileformat'] = 'vcd'; // Asume Video CD
1154
				$info['mime_type']  = 'video/mpeg';
1155
1156
				if (!empty($thisfile_riff['CDXA']['data'][0]['size'])) {
1157
					getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio-video.mpeg.php', __FILE__, true);
1158
1159
					$getid3_temp = new getID3();
1160
					$getid3_temp->openfile($this->getid3->filename);
1161
					$getid3_mpeg = new getid3_mpeg($getid3_temp);
1162
					$getid3_mpeg->Analyze();
1163
					if (empty($getid3_temp->info['error'])) {
1164
						$info['audio']   = $getid3_temp->info['audio'];
1165
						$info['video']   = $getid3_temp->info['video'];
1166
						$info['mpeg']    = $getid3_temp->info['mpeg'];
1167
						$info['warning'] = $getid3_temp->info['warning'];
1168
					}
1169
					unset($getid3_temp, $getid3_mpeg);
1170
				}
1171
				break;
1172
1173

src/wp-includes/ID3/module.tag.lyrics3.php 1 location

@@ 104-121 (lines=18) @@
101
			$this->getLyrics3Data($lyrics3offset, $lyrics3version, $lyrics3size);
102
103
			if (!isset($info['ape'])) {
104
				if (isset($info['lyrics3']['tag_offset_start'])) {
105
					$GETID3_ERRORARRAY = &$info['warning'];
106
					getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.apetag.php', __FILE__, true);
107
					$getid3_temp = new getID3();
108
					$getid3_temp->openfile($this->getid3->filename);
109
					$getid3_apetag = new getid3_apetag($getid3_temp);
110
					$getid3_apetag->overrideendoffset = $info['lyrics3']['tag_offset_start'];
111
					$getid3_apetag->Analyze();
112
					if (!empty($getid3_temp->info['ape'])) {
113
						$info['ape'] = $getid3_temp->info['ape'];
114
					}
115
					if (!empty($getid3_temp->info['replay_gain'])) {
116
						$info['replay_gain'] = $getid3_temp->info['replay_gain'];
117
					}
118
					unset($getid3_temp, $getid3_apetag);
119
				} else {
120
					$info['warning'][] = 'Lyrics3 and APE tags appear to have become entangled (most likely due to updating the APE tags with a non-Lyrics3-aware tagger)';
121
				}
122
			}
123
124
		}