Code Duplication    Length = 8-10 lines in 2 locations

3rdparty/getID3/getid3/module.audio.flac.php 1 location

@@ 381-390 (lines=10) @@
378
			$info['flac']['CUESHEET']['tracks'][$TrackNumber]['index_points']          = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
379
			$offset += 1;
380
381
			for ($index = 0; $index < $info['flac']['CUESHEET']['tracks'][$TrackNumber]['index_points']; $index++) {
382
				$IndexSampleOffset = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 8));
383
				$offset += 8;
384
				$IndexNumber       = getid3_lib::BigEndian2Int(substr($BlockData, $offset, 1));
385
				$offset += 1;
386
387
				$offset += 3; // reserved
388
389
				$info['flac']['CUESHEET']['tracks'][$TrackNumber]['indexes'][$IndexNumber] = $IndexSampleOffset;
390
			}
391
		}
392
393
		return true;

3rdparty/getID3/getid3/module.audio-video.quicktime.php 1 location

@@ 1066-1073 (lines=8) @@
1063
						$atom_structure['flags_raw']      = getid3_lib::BigEndian2Int(substr($atom_data,  1, 3)); // hardcoded: 0x0000
1064
						$atom_structure['number_entries'] = getid3_lib::BigEndian2Int(substr($atom_data,  4, 4));
1065
						$stscEntriesDataOffset = 8;
1066
						for ($i = 0; $i < $atom_structure['number_entries']; $i++) {
1067
							$atom_structure['sample_to_chunk_table'][$i]['first_chunk']        = getid3_lib::BigEndian2Int(substr($atom_data, $stscEntriesDataOffset, 4));
1068
							$stscEntriesDataOffset += 4;
1069
							$atom_structure['sample_to_chunk_table'][$i]['samples_per_chunk']  = getid3_lib::BigEndian2Int(substr($atom_data, $stscEntriesDataOffset, 4));
1070
							$stscEntriesDataOffset += 4;
1071
							$atom_structure['sample_to_chunk_table'][$i]['sample_description'] = getid3_lib::BigEndian2Int(substr($atom_data, $stscEntriesDataOffset, 4));
1072
							$stscEntriesDataOffset += 4;
1073
						}
1074
					}
1075
					break;
1076