@@ -20,13 +20,13 @@ |
||
20 | 20 | $hostname = "undefined host"; |
21 | 21 | |
22 | 22 | if (filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) { |
23 | - $result = $ipAddress . " is a valid IPv6 Address."; |
|
23 | + $result = $ipAddress." is a valid IPv6 Address."; |
|
24 | 24 | $hostname = gethostbyaddr($ipAddress); |
25 | 25 | } else if (filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { |
26 | - $result = $ipAddress . " is a valid IPv4 Address."; |
|
26 | + $result = $ipAddress." is a valid IPv4 Address."; |
|
27 | 27 | $hostname = gethostbyaddr($ipAddress); |
28 | 28 | } else { |
29 | - $result = $ipAddress . " is not a valid IP Address."; |
|
29 | + $result = $ipAddress." is not a valid IP Address."; |
|
30 | 30 | } |
31 | 31 | $data = [ |
32 | 32 | "result" => $result, |
@@ -89,7 +89,7 @@ |
||
89 | 89 | for ($i = 0; $i < 30; $i++) { |
90 | 90 | $url = 'https://api.darksky.net/forecast/'.$this->weatherKey.'/'.$lat.','.$long.','.$today.'?units=si&lang=sv&exclude=minutely'; |
91 | 91 | array_push($data, $url); |
92 | - $today -= 24*60*60; |
|
92 | + $today -= 24 * 60 * 60; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | // Call multi-curl function with populated url array |
@@ -176,7 +176,7 @@ |
||
176 | 176 | "longitud" => $longitud ?? null, |
177 | 177 | ]; |
178 | 178 | |
179 | - $json= array_merge($valid, array_merge($weather, $info)); |
|
179 | + $json = array_merge($valid, array_merge($weather, $info)); |
|
180 | 180 | return [$json]; |
181 | 181 | } |
182 | 182 |
@@ -51,14 +51,14 @@ |
||
51 | 51 | "region" => "header-col-2", |
52 | 52 | "template" => "anax/v2/navbar/navbar_submenus", |
53 | 53 | "data" => [ |
54 | - "navbarConfig" => require __DIR__ . "/navbar/header.php", |
|
54 | + "navbarConfig" => require __DIR__."/navbar/header.php", |
|
55 | 55 | ], |
56 | 56 | ], |
57 | 57 | [ |
58 | 58 | "region" => "header-col-3", |
59 | 59 | "template" => "anax/v2/navbar/responsive_submenus", |
60 | 60 | "data" => [ |
61 | - "navbarConfig" => require __DIR__ . "/navbar/responsive.php", |
|
61 | + "navbarConfig" => require __DIR__."/navbar/responsive.php", |
|
62 | 62 | ], |
63 | 63 | ], |
64 | 64 | [ |
@@ -7,7 +7,7 @@ |
||
7 | 7 | "services" => [ |
8 | 8 | "curl" => [ |
9 | 9 | "shared" => true, |
10 | - "callback" => function () { |
|
10 | + "callback" => function() { |
|
11 | 11 | $curl = new \Jodn14\Curl\Curl(); |
12 | 12 | |
13 | 13 | //Load Configuration Files |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "page" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $page = new \Anax\Page\Page(); |
13 | 13 | $page->setDI($this); |
14 | 14 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | "services" => [ |
7 | 7 | "url" => [ |
8 | 8 | "shared" => true, |
9 | - "callback" => function () { |
|
9 | + "callback" => function() { |
|
10 | 10 | $url = new \Anax\Url\Url(); |
11 | 11 | $request = $this->get("request"); |
12 | 12 | $url->setSiteUrl($request->getSiteUrl()); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | "view" => [ |
8 | 8 | "active" => false, |
9 | 9 | "shared" => true, |
10 | - "callback" => function () { |
|
10 | + "callback" => function() { |
|
11 | 11 | $view = new \Anax\View\ViewCollection(); |
12 | 12 | $view->setDI($this); |
13 | 13 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "cache" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $cache = new \Anax\Cache\FileCache(); |
13 | 13 | |
14 | 14 | // Load the configuration files |