Completed
Push — main ( 3fb186...e43c94 )
by Mahmoud
14:03 queued 10:03
created
src/WeatherFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Providers/OpenWeatherServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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'),
Please login to merge, or discard this patch.
src/Traits/CWMultiResultTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.