Code Duplication    Length = 10-10 lines in 5 locations

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

@@ 1732-1741 (lines=10) @@
1729
								$uuid_bytes_read = unpack('C*', $sensor_data_type);
1730
								$sensor_data_array = array();
1731
								switch ($uuid_bytes_read[1]) {
1732
									case 250:
1733
										$atom_structure['sensor_data']['data_type']['fusion_count']++;
1734
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
1735
										$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1736
										$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1737
										$sensor_data_array['yaw']       = $uuid_bytes_read['yaw'];
1738
										$sensor_data_array['pitch']     = $uuid_bytes_read['pitch'];
1739
										$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1740
										array_push($atom_structure['sensor_data']['data_type']['fusion_data'], $sensor_data_array);
1741
										break;
1742
									case 1:
1743
										$atom_structure['sensor_data']['data_type']['accel_count']++;
1744
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
@@ 1742-1751 (lines=10) @@
1739
										$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1740
										array_push($atom_structure['sensor_data']['data_type']['fusion_data'], $sensor_data_array);
1741
										break;
1742
									case 1:
1743
										$atom_structure['sensor_data']['data_type']['accel_count']++;
1744
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
1745
										$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1746
										$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1747
										$sensor_data_array['yaw']       = $uuid_bytes_read['yaw'];
1748
										$sensor_data_array['pitch']     = $uuid_bytes_read['pitch'];
1749
										$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1750
										array_push($atom_structure['sensor_data']['data_type']['accel_data'], $sensor_data_array);
1751
										break;
1752
									case 2:
1753
										$atom_structure['sensor_data']['data_type']['gyro_count']++;
1754
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
@@ 1752-1761 (lines=10) @@
1749
										$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1750
										array_push($atom_structure['sensor_data']['data_type']['accel_data'], $sensor_data_array);
1751
										break;
1752
									case 2:
1753
										$atom_structure['sensor_data']['data_type']['gyro_count']++;
1754
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gyaw/Gpitch/Groll/x*', $sensor_data_content);
1755
										$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1756
										$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1757
										$sensor_data_array['yaw']       = $uuid_bytes_read['yaw'];
1758
										$sensor_data_array['pitch']     = $uuid_bytes_read['pitch'];
1759
										$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1760
										array_push($atom_structure['sensor_data']['data_type']['gyro_data'], $sensor_data_array);
1761
										break;
1762
									case 3:
1763
										$atom_structure['sensor_data']['data_type']['magno_count']++;
1764
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gmagx/Gmagy/Gmagz/x*', $sensor_data_content);
@@ 1762-1771 (lines=10) @@
1759
										$sensor_data_array['roll']      = $uuid_bytes_read['roll'];
1760
										array_push($atom_structure['sensor_data']['data_type']['gyro_data'], $sensor_data_array);
1761
										break;
1762
									case 3:
1763
										$atom_structure['sensor_data']['data_type']['magno_count']++;
1764
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Gmagx/Gmagy/Gmagz/x*', $sensor_data_content);
1765
										$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1766
										$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1767
										$sensor_data_array['magx']      = $uuid_bytes_read['magx'];
1768
										$sensor_data_array['magy']      = $uuid_bytes_read['magy'];
1769
										$sensor_data_array['magz']      = $uuid_bytes_read['magz'];
1770
										array_push($atom_structure['sensor_data']['data_type']['magno_data'], $sensor_data_array);
1771
										break;
1772
									case 5:
1773
										$atom_structure['sensor_data']['data_type']['gps_count']++;
1774
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Glat/Glon/Galt/Gspeed/nbearing/nacc/x*', $sensor_data_content);
@@ 1786-1795 (lines=10) @@
1783
										array_push($atom_structure['sensor_data']['data_type']['gps_data'], $sensor_data_array);
1784
										//array_push($debug_structure['debug_items'], $uuid_bytes_read['timestamp']);
1785
										break;
1786
									case 6:
1787
										$atom_structure['sensor_data']['data_type']['rotation_count']++;
1788
										$uuid_bytes_read = unpack('cmode/Jtimestamp/Grotx/Groty/Grotz/x*', $sensor_data_content);
1789
										$sensor_data_array['mode']      = $uuid_bytes_read['mode'];
1790
										$sensor_data_array['timestamp'] = $uuid_bytes_read['timestamp'];
1791
										$sensor_data_array['rotx']      = $uuid_bytes_read['rotx'];
1792
										$sensor_data_array['roty']      = $uuid_bytes_read['roty'];
1793
										$sensor_data_array['rotz']      = $uuid_bytes_read['rotz'];
1794
										array_push($atom_structure['sensor_data']['data_type']['rotation_data'], $sensor_data_array);
1795
										break;
1796
									default:
1797
										$atom_structure['sensor_data']['data_type']['unknown_count']++;
1798
										break;