@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function ipType(string $ipnumber) |
| 13 | 13 | { |
| 14 | - $type = (filter_var($ipnumber, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) ? "ipv4" : "ipv6" ); |
|
| 14 | + $type = (filter_var($ipnumber, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) ? "ipv4" : "ipv6"); |
|
| 15 | 15 | // $domainname = gethostbyaddr($ipnumber); |
| 16 | 16 | // $domainname = ($domainname == $ipnumber ? "none" : $domainname); |
| 17 | 17 | return $type; |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | "jsonWeather" => [ |
| 10 | 10 | "shared" => true, |
| 11 | 11 | "active" => true, |
| 12 | - "callback" => function () { |
|
| 12 | + "callback" => function() { |
|
| 13 | 13 | $obj = new \KW\Models\JsonWeather(); |
| 14 | 14 | return $obj; |
| 15 | 15 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | "services" => [ |
| 8 | 8 | "request" => [ |
| 9 | 9 | "shared" => true, |
| 10 | - "callback" => function () { |
|
| 10 | + "callback" => function() { |
|
| 11 | 11 | $obj = new \Anax\Request\Request(); |
| 12 | 12 | $obj->init(); |
| 13 | 13 | return $obj; |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | "services" => [ |
| 7 | 7 | "apikeys" => [ |
| 8 | 8 | "shared" => true, |
| 9 | - "callback" => function () { |
|
| 9 | + "callback" => function() { |
|
| 10 | 10 | // Load the configuration files |
| 11 | 11 | $cfg = $this->get("configuration"); |
| 12 | 12 | $config = $cfg->load("apikeys.php"); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | "services" => [ |
| 9 | 9 | "configuration" => [ |
| 10 | 10 | "shared" => true, |
| 11 | - "callback" => function () { |
|
| 11 | + "callback" => function() { |
|
| 12 | 12 | $config = new \Anax\Configure\Configuration(); |
| 13 | 13 | $dirs = require ANAX_INSTALL_PATH . "/config/configuration.php"; |
| 14 | 14 | $config->setBaseDirectories($dirs); |