Passed
Push — master ( 52a2f7...efc5ae )
by Evgenii
03:10
created
examples/SendOrdersToCart.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,6 +53,7 @@
 block discarded – undo
53 53
 
54 54
 $apiBody->add($order);
55 55
 
56
-if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString()))
56
+if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString())) {
57 57
     foreach ($dalliClient->getErrors() as $error)
58 58
         echo $error;
59
+}
Please login to merge, or discard this patch.
examples/ClearCart.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,7 @@
 block discarded – undo
10 10
 $token = '<ваш token>';
11 11
 $apiBody = new DalliApiBody(DalliApiMethod::BASKET_CLEAR, $token);
12 12
 
13
-if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString()))
13
+if (!$dalliClient->sendApiRequest($apiBody->getAsXmlString())) {
14 14
     foreach ($dalliClient->getErrors() as $error)
15 15
         echo $error;
16
+}
Please login to merge, or discard this patch.