Test Failed
Branch main (87f516)
by Åsa
11:13 queued 08:26
created
src/Weather/LocationService.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
                 "Country" => $res["country_name"],
62 62
             ];
63 63
             return [$json];
64
-        }
65
-        else {
64
+        } else {
66 65
             $json = [
67 66
                 "Message" => "IP-adressen är tom. Försök igen"
68 67
             ];
Please login to merge, or discard this patch.
src/Weather/ForecastController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
                 ];
51 51
                 $page->add("weather/weather_search", $data);
52 52
                 return $page->render($data);
53
-            }
54
-            elseif (isset($ipAdr) && isset($resWeather) && $type == "Prognos") {
53
+            } elseif (isset($ipAdr) && isset($resWeather) && $type == "Prognos") {
55 54
                 $data = [
56 55
                     "long" => $resIp[0]["Longitude"],
57 56
                     "lat" => $resIp[0]["Latitude"],
Please login to merge, or discard this patch.
view/weather/weather_search.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,8 @@  discard block
 block discarded – undo
27 27
             </p>
28 28
         </fieldset>
29 29
     </form>
30
-<?php else : ?>
30
+<?php else {
31
+    : ?>
31 32
 
32 33
 <form method="get">
33 34
     <fieldset>
@@ -45,4 +46,6 @@  discard block
 block discarded – undo
45 46
         </p>
46 47
     </fieldset>
47 48
 </form>
48
-<?php endif; ?>
49
+<?php endif;
50
+}
51
+?>
Please login to merge, or discard this patch.