@@ -56,7 +56,7 @@ |
||
56 | 56 | { |
57 | 57 | $apiKey = config('open-weather.api_token'); |
58 | 58 | |
59 | - if (! is_string($apiKey) || empty($apiKey)) { |
|
59 | + if (!is_string($apiKey) || empty($apiKey)) { |
|
60 | 60 | throw new \InvalidArgumentException('You must provide valid API key.'); |
61 | 61 | } |
62 | 62 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public function register() |
19 | 19 | { |
20 | - $this->app->singleton(WeatherClient::class, function () { |
|
20 | + $this->app->singleton(WeatherClient::class, function() { |
|
21 | 21 | return new WeatherClient( |
22 | 22 | [ |
23 | 23 | 'base_uri' => config('open-weather.base_uri'), |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $data = $this->queryOrFail($this->apiCall, $this->params); |
33 | 33 | $this->list = []; |
34 | 34 | |
35 | - collect($data->list)->map(function ($result, $key) { |
|
35 | + collect($data->list)->map(function($result, $key) { |
|
36 | 36 | $this->list[$key] = new CurrentWeather($result); |
37 | 37 | }); |
38 | 38 |