Code Duplication    Length = 9-9 lines in 2 locations

require/class.Spotter.php 2 locations

@@ 2464-2472 (lines=9) @@
2461
		$sth = $this->db->prepare($query);
2462
		$sth->execute();
2463
		
2464
		while($row = $sth->fetch(PDO::FETCH_ASSOC))
2465
		{
2466
			if (isset($airport_array[$row['airport_country']]['airport_country']) && $airport_array[$row['airport_country']]['airport_country'] != $row['airport_country'])
2467
			{
2468
				$temp_array['airport_country'] = $row['airport_country'];
2469
				
2470
				$airport_array[$row['airport_country']] = $temp_array;
2471
			}
2472
		}
2473
2474
		return $airport_array;
2475
	} 
@@ 2552-2560 (lines=9) @@
2549
		$sth = $this->db->prepare($query);
2550
		$sth->execute();
2551
		
2552
		while($row = $sth->fetch(PDO::FETCH_ASSOC))
2553
		{
2554
			if (isset($country_array[$row['airline_country']]['country']) && $country_array[$row['airline_country']]['country'] != $row['airline_country'])
2555
			{
2556
				$temp_array['country'] = $row['airline_country'];
2557
				
2558
				$country_array[$row['country']] = $temp_array;
2559
			}
2560
		}
2561
		}  
2562
		return $country_array;
2563
	}