@@ -33,7 +33,10 @@ |
||
33 | 33 | |
34 | 34 | <?php if ($domainName) : ?> |
35 | 35 | <p><b>Domännamn: </b> <?= $domainName ?> </p> |
36 | - <?php else : ?> |
|
36 | + <?php else { |
|
37 | + : ?> |
|
37 | 38 | <p><b>Domännamn: </b> inget domännamn funnet </p> |
38 | - <?php endif; ?> |
|
39 | + <?php endif; |
|
40 | +} |
|
41 | +?> |
|
39 | 42 | <?php endif; ?> |
@@ -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 |
@@ -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"; |
@@ -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: |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "ipHandler" => [ |
9 | 9 | "shared" => true, |
10 | 10 | "active" => false, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $ipHandler = new \Ylvan\Models\IpHandler(); |
13 | 13 | |
14 | 14 | return $ipHandler; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "weatherHandler" => [ |
9 | 9 | "shared" => true, |
10 | 10 | "active" => false, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $weatherHandler = new \Ylvan\Models\WeatherHandler(); |
13 | 13 | |
14 | 14 | return $weatherHandler; |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "ipPosition" => [ |
9 | 9 | "shared" => true, |
10 | 10 | "active" => false, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $ipPosition = new \Ylvan\Models\IpPosition(); |
13 | 13 | |
14 | 14 | return $ipPosition; |
@@ -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", [ |