Passed
Branch master (32e99d)
by Lucas
10:41
created
src/Core/Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,6 +194,6 @@
 block discarded – undo
194 194
 
195 195
     private function incrementRequestCounter(): int
196 196
     {
197
-        return ++self::$requestCounter;
197
+        return++self::$requestCounter;
198 198
     }
199 199
 }
200 200
\ No newline at end of file
Please login to merge, or discard this patch.
src/Core/Endpoint.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -128,21 +128,25 @@
 block discarded – undo
128 128
     {
129 129
         $responseData = $response->getParsedPath('message');
130 130
 
131
-        if (is_string($responseData))
132
-            return [$responseData];
131
+        if (is_string($responseData)) {
132
+                    return [$responseData];
133
+        }
133 134
 
134
-        if (is_array($responseData))
135
-            return ArrayUtil::extractStrings($responseData);
135
+        if (is_array($responseData)) {
136
+                    return ArrayUtil::extractStrings($responseData);
137
+        }
136 138
 
137 139
         $responseData = $response->getParsedPath('error');
138 140
 
139
-        if (is_array($responseData))
140
-            return ArrayUtil::extractStrings($responseData);
141
+        if (is_array($responseData)) {
142
+                    return ArrayUtil::extractStrings($responseData);
143
+        }
141 144
 
142 145
         $responseData = $response->getParsedPath('data');
143 146
 
144
-        if (is_array($responseData))
145
-            return ArrayUtil::extractStrings($responseData);
147
+        if (is_array($responseData)) {
148
+                    return ArrayUtil::extractStrings($responseData);
149
+        }
146 150
     }
147 151
 
148 152
 }
149 153
\ No newline at end of file
Please login to merge, or discard this patch.
src/Core/IpagEnvironment.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,9 @@
 block discarded – undo
13 13
 
14 14
     public function __construct(string $environment)
15 15
     {
16
-        if (!$this->isValidEnv($environment))
17
-            throw new \UnexpectedValueException("The environment must be valid");
16
+        if (!$this->isValidEnv($environment)) {
17
+                    throw new \UnexpectedValueException("The environment must be valid");
18
+        }
18 19
 
19 20
         parent::__construct($environment);
20 21
     }
Please login to merge, or discard this patch.