Completed
Branch master (3f174d)
by Yannick
13:43
created
ident-detailed.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,8 +71,12 @@  discard block
 block discarded – undo
71 71
 	{
72 72
 		$title = sprintf(_("Detailed View for %s"),$spotter_array[0]['ident']);
73 73
 		$ident = $spotter_array[0]['ident'];
74
-		if (isset($spotter_array[0]['latitude'])) $latitude = $spotter_array[0]['latitude'];
75
-		if (isset($spotter_array[0]['longitude'])) $longitude = $spotter_array[0]['longitude'];
74
+		if (isset($spotter_array[0]['latitude'])) {
75
+			$latitude = $spotter_array[0]['latitude'];
76
+		}
77
+		if (isset($spotter_array[0]['longitude'])) {
78
+			$longitude = $spotter_array[0]['longitude'];
79
+		}
76 80
 		require_once('header.php');
77 81
 		if (isset($globalArchive) && $globalArchive) {
78 82
 			// Requirement for altitude graph
@@ -80,7 +84,9 @@  discard block
 block discarded – undo
80 84
 			$all_data = $SpotterArchive->getAltitudeSpeedArchiveSpotterDataById($spotter_array[0]['flightaware_id']);
81 85
 			if (isset($globalTimezone)) {
82 86
 				date_default_timezone_set($globalTimezone);
83
-			} else date_default_timezone_set('UTC');
87
+			} else {
88
+				date_default_timezone_set('UTC');
89
+			}
84 90
 			if (count($all_data) > 0) {
85 91
 				print '<div id="chart6" class="chart" width="100%"></div>
86 92
                     <script> 
Please login to merge, or discard this patch.
search-csv.php 1 patch
Braces   +18 added lines, -7 removed lines patch added patch discarded remove patch
@@ -16,8 +16,12 @@  discard block
 block discarded – undo
16 16
         } else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){
17 17
                 $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date'].":00";
18 18
                 $sql_date = $end_date;
19
-        } else $sql_date = '';
20
-} else $sql_date = '';
19
+        } else {
20
+        	$sql_date = '';
21
+        }
22
+        } else {
23
+	$sql_date = '';
24
+}
21 25
 
22 26
 if (isset($_GET['highest_altitude'])) {
23 27
         //for altitude manipulation
@@ -31,8 +35,12 @@  discard block
 block discarded – undo
31 35
         } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){
32 36
                 $start_altitude = $_GET['lowest_altitude'].",60000";
33 37
                 $sql_altitude = $start_altitude;
34
-        } else $sql_altitude = '';
35
-} else $sql_altitude = '';
38
+        } else {
39
+        	$sql_altitude = '';
40
+        }
41
+        } else {
42
+	$sql_altitude = '';
43
+}
36 44
 
37 45
 //calculuation for the pagination
38 46
 if(!isset($_GET['limit']))
@@ -50,7 +58,7 @@  discard block
 block discarded – undo
50 58
                 $limit_end = $_GET['number_results'];
51 59
                 $absolute_difference = $_GET['number_results'];
52 60
         }
53
-}  else {
61
+} else {
54 62
         $limit_explode = explode(",", $_GET['limit']);
55 63
         $limit_start = $limit_explode[0];
56 64
         $limit_end = $limit_explode[1];
@@ -67,8 +75,11 @@  discard block
 block discarded – undo
67 75
 
68 76
 header("Content-type: text/csv");
69 77
 
70
-if (isset($_GET['sort'])) $sort = $_GET['sort'];
71
-else $sort = '';
78
+if (isset($_GET['sort'])) {
79
+	$sort = $_GET['sort'];
80
+} else {
81
+	$sort = '';
82
+}
72 83
 
73 84
 $q = filter_input(INPUT_GET,'q',FILTER_SANITIZE_STRING);
74 85
 $registration = filter_input(INPUT_GET,'registratrion',FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
manufacturer-detailed.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 		$limit_start = 0;
13 13
 		$limit_end = 25;
14 14
 		$absolute_difference = 25;
15
-	}  else {
15
+	} else {
16 16
 		$limit_explode = explode(",", $_GET['limit']);
17 17
 		$limit_start = $limit_explode[0];
18 18
 		$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.
date-statistics-airline.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,11 @@
 block discarded – undo
5 5
 
6 6
 $Spotter = new Spotter();
7 7
 $sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
8
-if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
9
-else $spotter_array = '';
8
+if (isset($_GET['date'])) {
9
+	$spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
10
+} else {
11
+	$spotter_array = '';
12
+}
10 13
 
11 14
 if (!empty($spotter_array))
12 15
 {
Please login to merge, or discard this patch.
highlights-table.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	$limit_start = 0;
13 13
 	$limit_end = 25;
14 14
 	$absolute_difference = 25;
15
-}  else {
15
+} else {
16 16
 	$limit_explode = explode(",", $_GET['limit']);
17 17
 	$limit_start = $limit_explode[0];
18 18
 	$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.
airline-statistics-registration.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
 			if ($globalIVAO && @getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.gif'))
42 42
 			{
43 43
 				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" />';
44
-			}
45
-			elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
44
+			} elseif (@getimagesize($globalURL.'/images/airlines/'.$spotter_array[0]['airline_icao'].'.png'))
46 45
 			{
47 46
 				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" />';
48 47
 			}
Please login to merge, or discard this patch.
highlights-display.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	$limit_start = 0;
13 13
 	$limit_end = 28;
14 14
 	$absolute_difference = 28;
15
-}  else {
15
+} else {
16 16
 	$limit_explode = explode(",", $_GET['limit']);
17 17
 	$limit_start = $limit_explode[0];
18 18
 	$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.
search-kml.php 1 patch
Braces   +18 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,8 +15,12 @@  discard block
 block discarded – undo
15 15
         } else if($_GET['start_date'] == "" && $_GET['end_date'] != ""){
16 16
                 $end_date = date("Y-m-d H:i:s", strtotime("2014-04-12")).",".$_GET['end_date'].":00";
17 17
                 $sql_date = $end_date;
18
-        } else $sql_date = '';
19
-} else $sql_date = '';
18
+        } else {
19
+        	$sql_date = '';
20
+        }
21
+        } else {
22
+	$sql_date = '';
23
+}
20 24
 
21 25
 if (isset($_GET['highest_altitude'])) {
22 26
         //for altitude manipulation
@@ -30,8 +34,12 @@  discard block
 block discarded – undo
30 34
         } else if($_GET['highest_altitude'] == "" && $_GET['lowest_altitude'] != ""){
31 35
                 $start_altitude = $_GET['lowest_altitude'].",60000";
32 36
                 $sql_altitude = $start_altitude;
33
-        } else $sql_altitude = '';
34
-} else $sql_altitude = '';
37
+        } else {
38
+        	$sql_altitude = '';
39
+        }
40
+        } else {
41
+	$sql_altitude = '';
42
+}
35 43
 
36 44
 //calculuation for the pagination
37 45
 if(!isset($_GET['limit']))
@@ -49,7 +57,7 @@  discard block
 block discarded – undo
49 57
                 $limit_end = $_GET['number_results'];
50 58
                 $absolute_difference = $_GET['number_results'];
51 59
         }
52
-}  else {
60
+} else {
53 61
         $limit_explode = explode(",", $_GET['limit']);
54 62
         $limit_start = $limit_explode[0];
55 63
         $limit_end = $limit_explode[1];
@@ -67,8 +75,11 @@  discard block
 block discarded – undo
67 75
 
68 76
 header('Content-Type: text/xml');
69 77
 
70
-if (isset($_GET['sort'])) $sort = $_GET['sort'];
71
-else $sort = '';
78
+if (isset($_GET['sort'])) {
79
+	$sort = $_GET['sort'];
80
+} else {
81
+	$sort = '';
82
+}
72 83
 $q = filter_input(INPUT_GET,'q',FILTER_SANITIZE_STRING);
73 84
 $registration = filter_input(INPUT_GET,'registratrion',FILTER_SANITIZE_STRING);
74 85
 $aircraft = filter_input(INPUT_GET,'aircraft',FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
upcoming.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	$limit_start = 0;
13 13
 	$limit_end = 25;
14 14
 	$absolute_difference = 25;
15
-}  else {
15
+} else {
16 16
 	$limit_explode = explode(",", $_GET['limit']);
17 17
 	$limit_start = $limit_explode[0];
18 18
 	$limit_end = $limit_explode[1];
Please login to merge, or discard this patch.