@@ -33,7 +33,7 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | for ($i = 0; $i < count($dates); $i++) { |
36 | - $details = json_decode(file_get_contents("https://api.darksky.net/forecast/{$apiKey["darksky"]["key"]}/{$lat},{$long},{$dates[$i]}?lang=sv&units=si")); |
|
36 | + $details = json_decode(file_get_contents("https://api.darksky.net/forecast/{$apiKey["darksky"]["key"]}/{$lat},{$long},{$dates[$i]}?lang=sv&units=si")); |
|
37 | 37 | |
38 | 38 | $time[] = $details->currently->time; |
39 | 39 | $weather[] = $details->currently->summary; |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // Callback executed when service is activated |
19 | 19 | // Create the service, load its configuration (if any) |
20 | 20 | // and set it up. |
21 | - "callback" => function () { |
|
21 | + "callback" => function() { |
|
22 | 22 | $cfg = $this->get("configuration"); |
23 | 23 | $config = $cfg->load("api.php"); |
24 | 24 | $coordinates = new \Anax\Model\Coordinates($config["config"]["opencage"]); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // Callback executed when service is activated |
19 | 19 | // Create the service, load its configuration (if any) |
20 | 20 | // and set it up. |
21 | - "callback" => function () { |
|
21 | + "callback" => function() { |
|
22 | 22 | $cfg = $this->get("configuration"); |
23 | 23 | $config = $cfg->load("api.php"); |
24 | 24 | $ip = new \Anax\Model\IpValidator($config["config"]["ipstack"]); |
@@ -18,7 +18,7 @@ |
||
18 | 18 | // Callback executed when service is activated |
19 | 19 | // Create the service, load its configuration (if any) |
20 | 20 | // and set it up. |
21 | - "callback" => function () { |
|
21 | + "callback" => function() { |
|
22 | 22 | $cfg = $this->get("configuration"); |
23 | 23 | $config = $cfg->load("api.php"); |
24 | 24 | $weather = new \Anax\Model\GeoTag($config["config"]["darksky"]); |