@@ -8,7 +8,7 @@ |
||
| 8 | 8 | "session" => [ |
| 9 | 9 | "active" => defined("ANAX_WITH_SESSION") && ANAX_WITH_SESSION, // true|false |
| 10 | 10 | "shared" => true, |
| 11 | - "callback" => function () { |
|
| 11 | + "callback" => function() { |
|
| 12 | 12 | $session = new \Anax\Session\Session(); |
| 13 | 13 | |
| 14 | 14 | // Load the configuration files |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | "services" => [ |
| 9 | 9 | "cache" => [ |
| 10 | 10 | "shared" => true, |
| 11 | - "callback" => function () { |
|
| 11 | + "callback" => function() { |
|
| 12 | 12 | $cache = new \Anax\Cache\FileCache(); |
| 13 | 13 | |
| 14 | 14 | // Load the configuration files |
@@ -108,6 +108,6 @@ |
||
| 108 | 108 | } |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - return [ $data ]; |
|
| 111 | + return [$data]; |
|
| 112 | 112 | } |
| 113 | 113 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | public function fetch(String $method, String $url, Array $params = [], Array $data = []) |
| 46 | 46 | { |
| 47 | 47 | $curl = curl_init(); |
| 48 | - $url = str_replace(array_keys($this->sweChars), $this->sweChars, $url);; |
|
| 48 | + $url = str_replace(array_keys($this->sweChars), $this->sweChars, $url); ; |
|
| 49 | 49 | switch ($method) { |
| 50 | 50 | case "GET": |
| 51 | 51 | break; |
@@ -26,9 +26,12 @@ |
||
| 26 | 26 | <?php foreach ($coords as $coord) : ?> |
| 27 | 27 | <?php if (strlen($coord[1][1]) > 0) : ?> |
| 28 | 28 | <li><p><?= $coord[1][1] ?></p></li> |
| 29 | - <?php else : ?> |
|
| 29 | + <?php else { |
|
| 30 | + : ?> |
|
| 30 | 31 | <!-- <?php var_dump($coord[0]) ?> --> |
| 31 | - <?php $dayNr = 1; ?> |
|
| 32 | + <?php $dayNr = 1; |
|
| 33 | +} |
|
| 34 | +?> |
|
| 32 | 35 | <?php foreach ($coord[0]->daily->data ?? [] as $day) : ?> |
| 33 | 36 | <li>Weather day <?= $dayNr . " " . $coord[1][2] . ": " . $day->summary?></li> |
| 34 | 37 | <?php $dayNr += 1; ?> |