Completed
Push — main ( aea140...3fb186 )
by Mahmoud
05:41
created
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.
src/WeatherFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 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
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.