Passed
Push — master ( 1fcf08...b6e803 )
by Evgenii
16:32 queued 13:25
created
src/Models/DalliApiBody.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,11 +20,13 @@
 block discarded – undo
20 20
 
21 21
     public function __construct(?string $apiMethodName, ?string $authToken)
22 22
     {
23
-        if (empty($apiMethodName))
24
-            throw new ErrorException('Api method name is empty.');
23
+        if (empty($apiMethodName)) {
24
+                    throw new ErrorException('Api method name is empty.');
25
+        }
25 26
 
26
-        if (empty($authToken))
27
-            throw new ErrorException('Auth token is empty.');
27
+        if (empty($authToken)) {
28
+                    throw new ErrorException('Auth token is empty.');
29
+        }
28 30
         
29 31
         $this->apiMethodName = $apiMethodName;
30 32
         $this->authToken = $authToken;
Please login to merge, or discard this patch.