Test Failed
Push — master ( 61a68c...8715ef )
by Evgenii
09:40
created
src/Models/DalliApiBody.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,9 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function __construct(?string $apiMethodName, ?array $params = [], ?int $user_id = null, ?int $order_id = null)
31 31
     {
32
-        if (empty($apiMethodName))
33
-            throw new EmptyApiMethodException();
32
+        if (empty($apiMethodName)) {
33
+                    throw new EmptyApiMethodException();
34
+        }
34 35
 
35 36
         $this->apiMethodName = $apiMethodName;
36 37
         $this->mainElement = new SimpleXMLElement("<$this->apiMethodName></$this->apiMethodName>");
@@ -43,8 +44,9 @@  discard block
 block discarded – undo
43 44
 
44 45
     private function parseParamsToXml(): void
45 46
     {
46
-        if (empty($this->params))
47
-            return;
47
+        if (empty($this->params)) {
48
+                    return;
49
+        }
48 50
         $this->addParamArrayToElement($this->mainElement, $this->params);
49 51
     }
50 52
 
Please login to merge, or discard this patch.