Passed
Push — master ( ae9f90...a4f03f )
by Patrik
06:17
created
view/anax/weather/result.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
88 88
             </tr>
89 89
         <?php } ?>
90 90
     </table>
91
-<?php else : ?>
91
+<?php else {
92
+    : ?>
92 93
     <span style="color: red;"><?= $geolocation['message'] ?></span>
93
-<?php endif; ?>
94
+<?php endif;
95
+}
96
+?>
Please login to merge, or discard this patch.
src/Models/weather.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,13 +60,15 @@
 block discarded – undo
60 60
                 "status" => "error",
61 61
                 "message" => "{$location} couldnt be converted to a lontitud, latitude"
62 62
             );
63
-        else :
63
+        else {
64
+            :
64 65
             $this->geolocation = array(
65 66
                 "latitude" => $geoArr[0]['lat'],
66 67
                 "longitude" => $geoArr[0]['lon'],
67 68
                 "status" => "success",
68 69
                 "geolocation" => $geoArr[0]['address']
69 70
             );
71
+        }
70 72
         endif;
71 73
 
72 74
         return $this->geolocation;
Please login to merge, or discard this patch.