Passed
Push — master ( e85e4e...fa12a2 )
by Christoffer
02:29
created
view/weather/resultpage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
     var map = new mapboxgl.Map({
29 29
     container: 'map',
30 30
     style: 'mapbox://styles/mapbox/streets-v11',
31
-    center: [<?= $data['lon'] . ", " . $data['lat'] ?>],
31
+    center: [<?= $data['lon'].", ".$data['lat'] ?>],
32 32
     zoom: 14
33 33
     });
34 34
 
35 35
     var marker = new mapboxgl.Marker()
36
-    .setLngLat([<?= $lon . ", " . $lat ?>])
36
+    .setLngLat([<?= $lon.", ".$lat ?>])
37 37
     .addTo(map);
38 38
     </script>
39 39
 </article>
Please login to merge, or discard this patch.
src/Weather/WeatherJSONController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
 
55 55
         json_encode($data, true);
56 56
 
57
-        return [[ $data ]];
57
+        return [[$data]];
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
config/di/weather.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     "services" => [
8 8
         "weather" => [
9 9
             "shared" => true,
10
-            "callback" => function () {
10
+            "callback" => function() {
11 11
                 return new \Anax\Models\WeatherForecast();
12 12
             }
13 13
         ],
Please login to merge, or discard this patch.
src/Models/WeatherForecast.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function fetchApiKey()
16 16
     {
17
-        $access_key = require ANAX_INSTALL_PATH . "/config/weatherapi.php";
17
+        $access_key = require ANAX_INSTALL_PATH."/config/weatherapi.php";
18 18
         $access_key = $access_key["weatherKeyHolder"]["weatherKey"];
19 19
         return $access_key;
20 20
     }
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
             foreach ($week as $value) {
43 43
                 $current = [
44 44
                     "date" => gmdate("Y-m-d", $value["dt"]),
45
-                    "temp" => $value["temp"]["min"] . " - " . $value["temp"]["max"],
45
+                    "temp" => $value["temp"]["min"]." - ".$value["temp"]["max"],
46 46
                     "description" => $value["weather"][0]["description"]
47 47
                 ];
48 48
                 $this->oneWeek[] = $current;
Please login to merge, or discard this patch.