Completed
Push — main ( aea140...3fb186 )
by Mahmoud
05:41
created
src/WeatherFactory.php 2 patches
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -89,51 +89,51 @@
 block discarded – undo
89 89
     }
90 90
     
91 91
 	
92
-	/**
93
-	 * @param \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed $unitType
94
-	 */
95
-	public
96
-	function setUnitType( $unitType )
97
-	: void
98
-	{
99
-		$this->unitType = $unitType;
100
-	}
92
+ /**
93
+  * @param \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed $unitType
94
+  */
95
+ public
96
+ function setUnitType( $unitType )
97
+ : void
98
+ {
99
+  $this->unitType = $unitType;
100
+ }
101 101
 	
102
-	/**
103
-	 * @param \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed $language
104
-	 */
105
-	public
106
-	function setLanguage( $language )
107
-	: void
108
-	{
109
-		$this->language = $language;
110
-	}
102
+ /**
103
+  * @param \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed $language
104
+  */
105
+ public
106
+ function setLanguage( $language )
107
+ : void
108
+ {
109
+  $this->language = $language;
110
+ }
111 111
 	
112
-	/**
113
-	 * @return \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed
114
-	 */
115
-	public
116
-	function getLanguage()
117
-	{
118
-		return $this->language;
119
-	}
112
+ /**
113
+  * @return \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed
114
+  */
115
+ public
116
+ function getLanguage()
117
+ {
118
+  return $this->language;
119
+ }
120 120
 	
121
-	/**
122
-	 * @return \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed
123
-	 */
124
-	public
125
-	function getUnitType()
126
-	{
127
-		return $this->unitType;
128
-	}
121
+ /**
122
+  * @return \Illuminate\Config\Repository|\Illuminate\Contracts\Foundation\Application|mixed
123
+  */
124
+ public
125
+ function getUnitType()
126
+ {
127
+  return $this->unitType;
128
+ }
129 129
 	
130
-	/**
131
-     * @param $apiCall
132
-     * @param array $queryData
133
-     * @throws NotFoundException
134
-     * @throws \GuzzleHttp\Exception\GuzzleException
135
-     * @throws \Exception
136
-     */
130
+ /**
131
+  * @param $apiCall
132
+  * @param array $queryData
133
+  * @throws NotFoundException
134
+  * @throws \GuzzleHttp\Exception\GuzzleException
135
+  * @throws \Exception
136
+  */
137 137
     protected function queryOrFail($apiCall, array $queryData = []): object
138 138
     {
139 139
         $query = [
Please login to merge, or discard this 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.