@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | public function fetchApiKey() |
| 16 | 16 | { |
| 17 | - $access_key = require ANAX_INSTALL_PATH . "/config/weatherapi.php"; |
|
| 17 | + $access_key = require ANAX_INSTALL_PATH."/config/weatherapi.php"; |
|
| 18 | 18 | $access_key = $access_key["weatherKeyHolder"]["weatherKey"]; |
| 19 | 19 | return $access_key; |
| 20 | 20 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | foreach ($week as $value) { |
| 43 | 43 | $current = [ |
| 44 | 44 | "date" => gmdate("Y-m-d", $value["dt"]), |
| 45 | - "temp" => $value["temp"]["min"] . " - " . $value["temp"]["max"], |
|
| 45 | + "temp" => $value["temp"]["min"]." - ".$value["temp"]["max"], |
|
| 46 | 46 | "description" => $value["weather"][0]["description"] |
| 47 | 47 | ]; |
| 48 | 48 | $this->oneWeek[] = $current; |