@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | Luftfuktighet: <?= json_encode($data["humidity"]) ?>% |
73 | 73 | Vindstyrka: <?= json_encode($data["wind_speed"]) ?> m/s |
74 | 74 | </p> |
75 | - <?php endforeach;?> |
|
75 | + <?php endforeach; ?> |
|
76 | 76 | <?php endif; ?> |
77 | 77 | |
78 | 78 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | <br> |
92 | 92 | Vindstyrka: <?= json_encode($data["current"]["wind_speed"]) ?> m/s |
93 | 93 | </p> |
94 | - <?php endforeach;?> |
|
94 | + <?php endforeach; ?> |
|
95 | 95 | <?php endif; ?> |
96 | 96 | |
97 | 97 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | */ |
10 | 10 | class WeatherHandler |
11 | 11 | { |
12 | - private $accessKey='31e4a45c184fb9ee516a7e276edafb79'; |
|
12 | + private $accessKey = '31e4a45c184fb9ee516a7e276edafb79'; |
|
13 | 13 | |
14 | 14 | |
15 | 15 | /** |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $key = $this->accessKey; |
174 | 174 | |
175 | 175 | // {layer}/{z}/{x}/{y}.png?appid={API key} |
176 | - $params = 'clouds_new/3/'.$lat.'/'.$long.'.png?'; |
|
176 | + $params = 'clouds_new/3/' . $lat . '/' . $long . '.png?'; |
|
177 | 177 | |
178 | 178 | try { |
179 | 179 | // Initialize CURL: |
@@ -21,7 +21,6 @@ |
||
21 | 21 | * @param array $args as a variadic to catch all arguments. |
22 | 22 | * |
23 | 23 | * @throws Anax\Route\Exception\NotFoundException when route is not found. |
24 | - |
|
25 | 24 | * @return object as the response. |
26 | 25 | * |
27 | 26 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $latitude = $userPosition['latitude']; |
29 | 29 | $longitude = $userPosition['longitude']; |
30 | 30 | $city = $userPosition['city']; |
31 | - $coordinates = 'Latitude: '.$latitude . ' ' . 'Longitude: ' . $longitude; |
|
31 | + $coordinates = 'Latitude: ' . $latitude . ' ' . 'Longitude: ' . $longitude; |
|
32 | 32 | |
33 | 33 | $ipv4 = $ip->ipv4($userIp); |
34 | 34 | $ipv6 = $ip->ipv6($userIp); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $latitude = $ipPosition['latitude']; |
42 | 42 | $longitude = $ipPosition['longitude']; |
43 | 43 | $city = $ipPosition['city']; |
44 | - $coordinates = 'Latitude: '.$latitude . ' ' . 'Longitude: ' . $longitude; |
|
44 | + $coordinates = 'Latitude: ' . $latitude . ' ' . 'Longitude: ' . $longitude; |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | $page->add("ip/location", [ |
@@ -22,7 +22,6 @@ |
||
22 | 22 | * @param string $message with details. |
23 | 23 | * |
24 | 24 | * @throws Anax\Route\Exception\NotFoundException |
25 | - |
|
26 | 25 | * @return object as the response. |
27 | 26 | */ |
28 | 27 | public function catchAll(...$args) : object |
@@ -47,7 +47,7 @@ |
||
47 | 47 | $latitude = $ipPosition['latitude']; |
48 | 48 | $longitude = $ipPosition['longitude']; |
49 | 49 | $city = $ipPosition['city']; |
50 | - $coordinates = 'Latitude: '.$latitude . ' ' . 'Longitude: ' . $longitude; |
|
50 | + $coordinates = 'Latitude: ' . $latitude . ' ' . 'Longitude: ' . $longitude; |
|
51 | 51 | |
52 | 52 | if ($searchIP) { |
53 | 53 | $contentText = "Dagens väder"; |