Code Duplication    Length = 1-3 lines in 2 locations

require/class.Spotter.php 1 location

@@ 339-339 (lines=1) @@
336
			if (isset($row['pilot_id']) && $row['pilot_id'] != '') $temp_array['pilot_id'] = $row['pilot_id'];
337
			if (isset($row['pilot_name']) && $row['pilot_name'] != '') $temp_array['pilot_name'] = $row['pilot_name'];
338
			if (isset($row['source_name']) && $row['source_name'] != '') $temp_array['source_name'] = $row['source_name'];
339
			if (isset($row['over_country']) && $row['over_country'] != '') $temp_array['over_country'] = $row['over_country'];
340
			if (isset($row['distance']) && $row['distance'] != '') $temp_array['distance'] = $row['distance'];
341
			if (isset($row['squawk'])) {
342
				$temp_array['squawk'] = $row['squawk'];

require/class.SpotterServer.php 1 location

@@ 101-103 (lines=3) @@
98
		if (isset($line['source_name']) && $line['source_name'] != '') {
99
		    $data['source_name'] = $line['source_name'];
100
  		} else $data['source_name'] = null;
101
		if (isset($line['over_country']) && $line['over_country'] != '') {
102
		    $data['over_country'] = $line['over_country'];
103
  		} else $data['over_country'] = null;
104
  		if (isset($line['noarchive']) && $line['noarchive']) {
105
  		    $data['noarchive'] = true;
106
  		} else $data['noarchive'] = false;