@@ -9,7 +9,7 @@ |
||
9 | 9 | "response" => [ |
10 | 10 | "shared" => true, |
11 | 11 | //"callback" => "\Anax\Response\Response", |
12 | - "callback" => function () { |
|
12 | + "callback" => function() { |
|
13 | 13 | $obj = new \Anax\Response\ResponseUtility(); |
14 | 14 | $obj->setDI($this); |
15 | 15 | return $obj; |
@@ -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 | } |
@@ -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 | <li><?= $coord[1][2] ?> weather: <?= $coord[0]->hourly->summary ?></li> |
31 | - <?php endif; ?> |
|
32 | + <?php endif; |
|
33 | +} |
|
34 | +?> |
|
32 | 35 | <?php endforeach; ?> |
33 | 36 | </ul> |
34 | 37 | <?php endif; ?> |
@@ -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; |