@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "curl" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $cache = $this->get("cache"); |
13 | 13 | $curl = new \Anax\Curl\Curl($cache); |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "weather" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $curl = $this->get("curl"); |
13 | 13 | $cfg = $this->get("configuration"); |
14 | 14 | $locationProvider = $this->get("location"); |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "location" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $curl = $this->get("curl"); |
13 | 13 | $cfg = $this->get("configuration"); |
14 | 14 |
@@ -78,7 +78,7 @@ |
||
78 | 78 | $data = []; |
79 | 79 | |
80 | 80 | |
81 | - for ($i=1; $i < 31; $i++) { |
|
81 | + for ($i = 1; $i < 31; $i++) { |
|
82 | 82 | $old = date_create($today)->modify(-$i . ' days')->format('Y-m-d'); |
83 | 83 | $fetchURL = $baseUrl . $this->apiKey . "/" . $this->lat . "," . $this->long . "," . $old . "T12:00:00" . "?units=si"; |
84 | 84 | array_push($urls, $fetchURL); |