Completed
Push — master ( 56054c...3b6993 )
by Yannick
30:25
created
sitemap.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,9 @@  discard block
 block discarded – undo
30 30
 	$output .= '<?xml version="1.0" encoding="UTF-8"?>';
31 31
 	$output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">';
32 32
 		$aircraft_types = $Stats->getAllAircraftTypes();
33
-		if (empty($aircraft_types)) $aircraft_types = $Spotter->getAllAircraftTypes();
33
+		if (empty($aircraft_types)) {
34
+			$aircraft_types = $Spotter->getAllAircraftTypes();
35
+		}
34 36
 		foreach($aircraft_types as $aircraft_item)
35 37
 		{
36 38
 			$output .= '<url>';
@@ -80,7 +82,9 @@  discard block
 block discarded – undo
80 82
 	$output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">';
81 83
 
82 84
 		$airport_names = $Stats->getAllAirportNames();
83
-		if (empty($airport_names)) $airport_names = $Spotter->getAllAirportNames();
85
+		if (empty($airport_names)) {
86
+			$airport_names = $Spotter->getAllAirportNames();
87
+		}
84 88
 		foreach($airport_names as $airport_item)
85 89
 		{
86 90
 			$output .= '<url>';
@@ -97,7 +101,9 @@  discard block
 block discarded – undo
97 101
 	$output .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">';
98 102
 
99 103
 		$manufacturer_names = $Stats->getAllManufacturers();
100
-		if (empty($manufacturer_names)) $manufacturer_names = $Spotter->getAllManufacturers();
104
+		if (empty($manufacturer_names)) {
105
+			$manufacturer_names = $Spotter->getAllManufacturers();
106
+		}
101 107
 		foreach($manufacturer_names as $manufacturer_item)
102 108
 		{
103 109
 			$output .= '<url>';
Please login to merge, or discard this patch.