@@ -14,7 +14,7 @@ |
||
| 14 | 14 | // Callback executed when service is activated |
| 15 | 15 | // Create the service, load its configuration (if any) |
| 16 | 16 | // and set it up. |
| 17 | - "callback" => function () { |
|
| 17 | + "callback" => function() { |
|
| 18 | 18 | $cfg = $this->get("configuration"); |
| 19 | 19 | $config = $cfg->load("api.php"); |
| 20 | 20 | $res = new \Anax\Model\Coordinates($config["config"]["opencage"]["key"]); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | // Callback executed when service is activated |
| 15 | 15 | // Create the service, load its configuration (if any) |
| 16 | 16 | // and set it up. |
| 17 | - "callback" => function () { |
|
| 17 | + "callback" => function() { |
|
| 18 | 18 | $cfg = $this->get("configuration"); |
| 19 | 19 | $config = $cfg->load("api.php"); |
| 20 | 20 | $res = new \Anax\Model\IpValidator($config["config"]["ipstack"]["key"]); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | // Callback executed when service is activated |
| 15 | 15 | // Create the service, load its configuration (if any) |
| 16 | 16 | // and set it up. |
| 17 | - "callback" => function () { |
|
| 17 | + "callback" => function() { |
|
| 18 | 18 | $cfg = $this->get("configuration"); |
| 19 | 19 | $config = $cfg->load("api.php"); |
| 20 | 20 | $res = new \Anax\Model\GeoTag($config["config"]["darksky"]["key"]); |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | for ($i = 0; $i < count($dates); $i++) { |
| 48 | - $details = json_decode(file_get_contents("https://api.darksky.net/forecast/{$this->config}/{$lat},{$long},{$dates[$i]}?lang=sv&units=si")); |
|
| 48 | + $details = json_decode(file_get_contents("https://api.darksky.net/forecast/{$this->config}/{$lat},{$long},{$dates[$i]}?lang=sv&units=si")); |
|
| 49 | 49 | |
| 50 | 50 | $time[] = $details->currently->time; |
| 51 | 51 | $weather[] = $details->currently->summary; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | if (filter_var($search, FILTER_VALIDATE_IP)) { |
| 41 | 41 | $valid = "IP"; |
| 42 | 42 | $ipverify = $this->di->get("ipverify"); |
| 43 | - $validator = new \Anax\Model\IpValidator((array)$ipverify); |
|
| 43 | + $validator = new \Anax\Model\IpValidator((array) $ipverify); |
|
| 44 | 44 | $res = $validator->getIp($search); |
| 45 | 45 | |
| 46 | 46 | $lat = $res["lat"]; |