Completed
Push — master ( 8e51f6...557b77 )
by Yannick
12:09 queued 04:29
created
country-detailed.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 	  $limit_start = 0;
14 14
 	  $limit_end = 25;
15 15
 	  $absolute_difference = 25;
16
-	}  else {
16
+	} else {
17 17
 		$limit_explode = explode(",", $_GET['limit']);
18 18
 		$limit_start = $limit_explode[0];
19 19
 		$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.
aircraft-detailed.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 		$limit_start = 0;
14 14
 		$limit_end = 25;
15 15
 		$absolute_difference = 25;
16
-	}  else {
16
+	} else {
17 17
 		$limit_explode = explode(",", $_GET['limit']);
18 18
 		$limit_start = $limit_explode[0];
19 19
 		$limit_end = $limit_explode[1];
@@ -63,7 +63,9 @@  discard block
 block discarded – undo
63 63
 	      		print '<h1>'.$spotter_array[0]['aircraft_name'].' ('.$spotter_array[0]['aircraft_type'].')</h1>';
64 64
 	      		print '<div><span class="label">'._("Name").'</span>'.$spotter_array[0]['aircraft_name'].'</div>';
65 65
 	      		print '<div><span class="label">'._("ICAO").'</span>'.$spotter_array[0]['aircraft_type'].'</div>'; 
66
-	      		if (isset($spotter_array[0]['aircraft_manufacturer'])) print '<div><span class="label">'._("Manufacturer").'</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>';
66
+	      		if (isset($spotter_array[0]['aircraft_manufacturer'])) {
67
+	      			print '<div><span class="label">'._("Manufacturer").'</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>';
68
+	      		}
67 69
 	    		print '</div>';
68 70
 		} else {
69 71
 			print '<div class="alert alert-warning">'._("This special aircraft profile shows all flights in where the aircraft type is unknown.").'</div>';
Please login to merge, or discard this patch.
airline.php 1 patch
Braces   +21 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,13 +23,21 @@  discard block
 block discarded – undo
23 23
 
24 24
 	print '<div class="select-item"><form action="'.$globalURL.'/airline" method="post"><select name="airline_type" class="selectpicker" data-live-search="true">';
25 25
 	print '<option value="all"';
26
-	if ($airline_type == 'all') print 'selected="selected" ';
26
+	if ($airline_type == 'all') {
27
+		print 'selected="selected" ';
28
+	}
27 29
 	print '>'._("All").'</option><option value="passenger"';
28
-	if ($airline_type == 'passenger') print 'selected="selected" ';
30
+	if ($airline_type == 'passenger') {
31
+		print 'selected="selected" ';
32
+	}
29 33
 	print '>'._("Passenger").'</option><option value="cargo"';
30
-	if ($airline_type == 'cargo') print 'selected="selected" ';
34
+	if ($airline_type == 'cargo') {
35
+		print 'selected="selected" ';
36
+	}
31 37
 	print '>'._("Cargo").'</option><option value="military"';
32
-	if ($airline_type == 'military') print 'selected="selected" ';
38
+	if ($airline_type == 'military') {
39
+		print 'selected="selected" ';
40
+	}
33 41
 	print '>'._("Military").'</option></select>';
34 42
 	print '<button type="submit"><i class="fa fa-angle-double-right"></i></button></form></div>';
35 43
 
@@ -41,7 +49,9 @@  discard block
 block discarded – undo
41 49
 		$Stats = new Stats();
42 50
 		//$airline_names = $Spotter->getAllAirlineNames();
43 51
 		$airline_names = $Stats->getAllAirlineNames();
44
-		if (empty($airline_names)) $airline_names = $Spotter->getAllAirlineNames();
52
+		if (empty($airline_names)) {
53
+			$airline_names = $Spotter->getAllAirlineNames();
54
+		}
45 55
 	}
46 56
 	$previous = null;
47 57
 	print '<div class="alphabet-legend">';
@@ -52,7 +62,9 @@  discard block
 block discarded – undo
52 62
 		$firstLetter = mb_strtoupper(mb_substr($value['airline_name'], 0, 1),'UTF-8');
53 63
 		if($previous !== $firstLetter)
54 64
 		{
55
-			if ($previous !== null) print ' | ';
65
+			if ($previous !== null) {
66
+				print ' | ';
67
+			}
56 68
 			print '<a href="#'.$firstLetter.'">'.$firstLetter.'</a>';
57 69
 		}
58 70
 		$previous = $firstLetter;
@@ -65,7 +77,9 @@  discard block
 block discarded – undo
65 77
 		{
66 78
 			if($previous !== $firstLetter)
67 79
 			{
68
-				if ($previous !== null) print '</div>';
80
+				if ($previous !== null) {
81
+					print '</div>';
82
+				}
69 83
 				print '<a name="'.$firstLetter.'"></a><h4 class="alphabet-header">'.$firstLetter.'</h4><div class="alphabet">';
70 84
 			}
71 85
 			$previous = $firstLetter;
Please login to merge, or discard this patch.
acars-archive.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,12 @@
 block discarded – undo
36 36
 if (!empty($spotter_array)) {
37 37
 	include('table-output.php');
38 38
 	print '<div class="pagination">';
39
-	if ($limit_previous_1 >= 0) print '<a href="'.$page_url.'/'.$limit_previous_1.','.$limit_previous_2.'/'.$_GET['sort'].'">&laquo;'._("Previous Page").'</a>';
40
-	if ($spotter_array[0]['query_number_rows'] == $absolute_difference) print '<a href="'.$page_url.'/'.$limit_end.','.$limit_next.'/'.$_GET['sort'].'">'._("Next Page").'&raquo;</a>';
39
+	if ($limit_previous_1 >= 0) {
40
+		print '<a href="'.$page_url.'/'.$limit_previous_1.','.$limit_previous_2.'/'.$_GET['sort'].'">&laquo;'._("Previous Page").'</a>';
41
+	}
42
+	if ($spotter_array[0]['query_number_rows'] == $absolute_difference) {
43
+		print '<a href="'.$page_url.'/'.$limit_end.','.$limit_next.'/'.$_GET['sort'].'">'._("Next Page").'&raquo;</a>';
44
+	}
41 45
 	print '</div>';
42 46
 }
43 47
 print '</div>';
Please login to merge, or discard this patch.
airport-data.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,9 @@
 block discarded – undo
12 12
 		$METAR = new METAR();
13 13
 		$metar_info = $METAR->getMETAR($icao);
14 14
 		//print_r($metar_info);
15
-		if (isset($metar_info[0]['metar'])) $metar_parse = $METAR->parse($metar_info[0]['metar']);
15
+		if (isset($metar_info[0]['metar'])) {
16
+			$metar_parse = $METAR->parse($metar_info[0]['metar']);
17
+		}
16 18
 		//print_r($metar_parse);
17 19
 	}
18 20
 }
Please login to merge, or discard this patch.
airline-statistics-arrival-airport.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 		if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif'))
41 41
 		{
42 42
 			print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />';
43
-		}
44
-		elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
43
+		} elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
45 44
 		{
46 45
 			print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />';
47 46
 		}
Please login to merge, or discard this patch.
airline-statistics-departure-airport.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 			if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif'))
41 41
 			{
42 42
 				print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />';
43
-			}
44
-			elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
43
+			} elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
45 44
 			{
46 45
 				print '<img src="'.$globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png" alt="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" title="'.$spotter_array[0]['airline_name'].' ('.$spotter_array[0]['airline_icao'].')" class="logo" />';
47 46
 			}
Please login to merge, or discard this patch.
airport.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	  $limit_start = 0;
16 16
 	  $limit_end = 25;
17 17
 	  $absolute_difference = 25;
18
-	}  else {
18
+	} else {
19 19
 		$limit_explode = explode(",", $_GET['limit']);
20 20
 		$limit_start = $limit_explode[0];
21 21
 		$limit_end = $limit_explode[1];
@@ -109,7 +109,9 @@  discard block
 block discarded – undo
109 109
 	print '<div class="column">';
110 110
 	print '<h1>'._("Airports").'</h1>';
111 111
 	$airport_names = $Stats->getAllAirportNames();
112
-	if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames();
112
+	if (empty($airport_names)) {
113
+		$airport_names = $Spotter->getAllAirportNames();
114
+	}
113 115
 	ksort($airport_names);
114 116
 	$previous = null;
115 117
 	print '<div class="alphabet-legend">';
Please login to merge, or discard this patch.
archive-country.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,11 @@
 block discarded – undo
8 8
 $date = filter_input(INPUT_GET,'date',FILTER_SANITIZE_STRING);
9 9
 
10 10
 $Spotter = new Spotter();
11
-if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($date,"0,1", $sort);
12
-else $spotter_array = array();
11
+if (isset($_GET['date'])) {
12
+	$spotter_array = $Spotter->getSpotterDataByDate($date,"0,1", $sort);
13
+} else {
14
+	$spotter_array = array();
15
+}
13 16
 
14 17
 if (!empty($spotter_array))
15 18
 {
Please login to merge, or discard this patch.