Code Duplication    Length = 10-12 lines in 2 locations

require/class.Spotter.php 2 locations

@@ 2986-2997 (lines=12) @@
2983
			if (!is_string($aircraft_icao))
2984
			{
2985
				return false;
2986
			} else {
2987
				if ($aircraft_icao == "" || $aircraft_icao == "XXXX")
2988
				{
2989
					$timeelapsed = microtime(true);
2990
					$aircraft_array = $this->getAllAircraftInfo("NA");
2991
					if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftInfo(NA) : '.round(microtime(true)-$timeelapsed,2).'s'."\n";
2992
				} else {
2993
					$timeelapsed = microtime(true);
2994
					$aircraft_array = $this->getAllAircraftInfo($aircraft_icao);
2995
					if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftInfo : '.round(microtime(true)-$timeelapsed,2).'s'."\n";
2996
				}
2997
			}
2998
		} else {
2999
			if ($ModeS != '') {
3000
				$timeelapsed = microtime(true);
@@ 3003-3012 (lines=10) @@
3000
				$timeelapsed = microtime(true);
3001
				$aircraft_icao = $this->getAllAircraftType($ModeS);
3002
				if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAllAircraftType : '.round(microtime(true)-$timeelapsed,2).'s'."\n";
3003
				if ($aircraft_icao == "" || $aircraft_icao == "XXXX")
3004
				{
3005
					$timeelapsed = microtime(true);
3006
					$aircraft_array = $this->getAllAircraftInfo("NA");
3007
					if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftInfo(NA) : '.round(microtime(true)-$timeelapsed,2).'s'."\n";
3008
				} else {
3009
					$timeelapsed = microtime(true);
3010
					$aircraft_array = $this->getAllAircraftInfo($aircraft_icao);
3011
					if ($globalDebugTimeElapsed) echo 'ADD SPOTTER DATA : Time elapsed for getAircraftInfo : '.round(microtime(true)-$timeelapsed,2).'s'."\n";
3012
				}
3013
			}
3014
		}
3015