@@ -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); |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | "services" => [ |
| 9 | 9 | "weather" => [ |
| 10 | 10 | "shared" => true, |
| 11 | - "callback" => function () { |
|
| 11 | + "callback" => function() { |
|
| 12 | 12 | $weather = new \Anax\Weather\WeatherModel(); |
| 13 | 13 | |
| 14 | 14 | // Load the configuration files |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | "services" => [ |
| 9 | 9 | "curl" => [ |
| 10 | 10 | "shared" => true, |
| 11 | - "callback" => function () { |
|
| 11 | + "callback" => function() { |
|
| 12 | 12 | $curl = new \Anax\Curl\CurlModel(); |
| 13 | 13 | |
| 14 | 14 | return $curl; |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | function slugify($str) |
| 165 | 165 | { |
| 166 | 166 | $str = mb_strtolower(trim($str)); |
| 167 | - $str = str_replace(['å','ä'], 'a', $str); |
|
| 167 | + $str = str_replace(['å', 'ä'], 'a', $str); |
|
| 168 | 168 | $str = str_replace('ö', 'o', $str); |
| 169 | 169 | $str = preg_replace('/[^a-z0-9-]/', '-', $str); |
| 170 | 170 | $str = trim(preg_replace('/-+/', '-', $str), '-'); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | "message" => "Unvalid amount of days." |
| 109 | 109 | ]; |
| 110 | 110 | } |
| 111 | - for ($i=1; $i < $days + 1; $i++) { |
|
| 111 | + for ($i = 1; $i < $days + 1; $i++) { |
|
| 112 | 112 | $time = time() - ($i * 60 * 60 * 24); |
| 113 | 113 | $allRequests[] = $url . "," . $time . $this->options; |
| 114 | 114 | } |