Code Duplication    Length = 1-1 lines in 2 locations

require/class.SpotterImport.php 2 locations

@@ 605-605 (lines=1) @@
602
			    {
603
				if ($globalDebug) echo "\o/ Add ".$this->all_flights[$id]['ident']." in archive DB : ";
604
				if ($this->all_flights[$id]['departure_airport'] == "") { $this->all_flights[$id]['departure_airport'] = "NA"; }
605
				if ($this->all_flights[$id]['arrival_airport'] == "") { $this->all_flights[$id]['arrival_airport'] = "NA"; }
606
				//adds the spotter data for the archive
607
				$ignoreImport = false;
608
				foreach($globalAirportIgnore as $airportIgnore) {
@@ 739-739 (lines=1) @@
736
		    }
737
		    $ignoreImport = false;
738
		    if ($this->all_flights[$id]['departure_airport'] == "") { $this->all_flights[$id]['departure_airport'] = "NA"; }
739
		    if ($this->all_flights[$id]['arrival_airport'] == "") { $this->all_flights[$id]['arrival_airport'] = "NA"; }
740
741
		    foreach($globalAirportIgnore as $airportIgnore) {
742
		        if (($this->all_flights[$id]['departure_airport'] == $airportIgnore) || ($this->all_flights[$id]['arrival_airport'] == $airportIgnore)) {