Code Duplication    Length = 10-10 lines in 5 locations

3rdparty/getID3/getid3/module.audio-video.quicktime.php 5 locations

@@ 1683-1692 (lines=10) @@
1680
						$uuid_bytes_read = unpack('C*', $sensor_data_type);
1681
						$sensor_data_array = array();
1682
						switch ($uuid_bytes_read[1]) {
1683
							case 250:
1684
								$atom_structure['sensor_data']['data_type']['fusion_count']++;
1685
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
1686
								$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1687
								$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1688
								$sensor_data_array['yaw']       = $uuid_bytes_read['yaw'];
1689
								$sensor_data_array['pitch']     = $uuid_bytes_read['pitch'];
1690
								$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1691
								array_push($atom_structure['sensor_data']['data_type']['fusion_data'], $sensor_data_array);
1692
								break;
1693
							case 1:
1694
								$atom_structure['sensor_data']['data_type']['accel_count']++;
1695
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
@@ 1693-1702 (lines=10) @@
1690
								$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1691
								array_push($atom_structure['sensor_data']['data_type']['fusion_data'], $sensor_data_array);
1692
								break;
1693
							case 1:
1694
								$atom_structure['sensor_data']['data_type']['accel_count']++;
1695
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
1696
								$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1697
								$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1698
								$sensor_data_array['yaw']       = $uuid_bytes_read['yaw'];
1699
								$sensor_data_array['pitch']     = $uuid_bytes_read['pitch'];
1700
								$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1701
								array_push($atom_structure['sensor_data']['data_type']['accel_data'], $sensor_data_array);
1702
								break;
1703
							case 2:
1704
								$atom_structure['sensor_data']['data_type']['gyro_count']++;
1705
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
@@ 1703-1712 (lines=10) @@
1700
								$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1701
								array_push($atom_structure['sensor_data']['data_type']['accel_data'], $sensor_data_array);
1702
								break;
1703
							case 2:
1704
								$atom_structure['sensor_data']['data_type']['gyro_count']++;
1705
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
1706
								$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1707
								$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1708
								$sensor_data_array['yaw']       = $uuid_bytes_read['yaw'];
1709
								$sensor_data_array['pitch']     = $uuid_bytes_read['pitch'];
1710
								$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1711
								array_push($atom_structure['sensor_data']['data_type']['gyro_data'], $sensor_data_array);
1712
								break;
1713
							case 3:
1714
								$atom_structure['sensor_data']['data_type']['magno_count']++;
1715
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gmagx/Gmagy/Gmagz/x*', $sensor_data_content);
@@ 1713-1722 (lines=10) @@
1710
								$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1711
								array_push($atom_structure['sensor_data']['data_type']['gyro_data'], $sensor_data_array);
1712
								break;
1713
							case 3:
1714
								$atom_structure['sensor_data']['data_type']['magno_count']++;
1715
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Gmagx/Gmagy/Gmagz/x*', $sensor_data_content);
1716
								$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1717
								$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1718
								$sensor_data_array['magx']      = $uuid_bytes_read['magx'];
1719
								$sensor_data_array['magy']      = $uuid_bytes_read['magy'];
1720
								$sensor_data_array['magz']      = $uuid_bytes_read['magz'];
1721
								array_push($atom_structure['sensor_data']['data_type']['magno_data'], $sensor_data_array);
1722
								break;
1723
							case 5:
1724
								$atom_structure['sensor_data']['data_type']['gps_count']++;
1725
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Glat/Glon/Galt/Gspeed/nbearing/nacc/x*', $sensor_data_content);
@@ 1738-1747 (lines=10) @@
1735
								array_push($atom_structure['sensor_data']['data_type']['gps_data'], $sensor_data_array);
1736
								//array_push($debug_structure['debug_items'], $uuid_bytes_read['timestamp']);
1737
								break;
1738
							case 6:
1739
								$atom_structure['sensor_data']['data_type']['rotation_count']++;
1740
								$uuid_bytes_read = unpack('cmode/Jtimestamp/Grotx/Groty/Grotz/x*', $sensor_data_content);
1741
								$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1742
								$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1743
								$sensor_data_array['rotx']      = $uuid_bytes_read['rotx'];
1744
								$sensor_data_array['roty']      = $uuid_bytes_read['roty'];
1745
								$sensor_data_array['rotz']      = $uuid_bytes_read['rotz'];
1746
								array_push($atom_structure['sensor_data']['data_type']['rotation_data'], $sensor_data_array);
1747
								break;
1748
							default:
1749
								$atom_structure['sensor_data']['data_type']['unknown_count']++;
1750
								break;