@@ -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 |
@@ -56,7 +56,7 @@ discard block |
||
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 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * @param \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed $unitType |
94 | 94 | */ |
95 | 95 | public |
96 | - function setUnitType( $unitType ) |
|
96 | + function setUnitType($unitType) |
|
97 | 97 | : void |
98 | 98 | { |
99 | 99 | $this->unitType = $unitType; |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * @param \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed $language |
104 | 104 | */ |
105 | 105 | public |
106 | - function setLanguage( $language ) |
|
106 | + function setLanguage($language) |
|
107 | 107 | : void |
108 | 108 | { |
109 | 109 | $this->language = $language; |