Completed
Push — master ( f4d543...e6fc8e )
by Lawrence
02:34
created
src/Prestashop.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
                 $data = substr($msg, strpos($msg,'|') + 1);
43 43
                 switch($type) {
44 44
                     case 'cart' : $result = getCartData($data);
45
-                                  break;
45
+                                    break;
46 46
                     case 'prod' : $result = getProductData($data);
47
-                                  break;
47
+                                    break;
48 48
                     case 'comb' : $result = getCombinationData($data);
49
-                                  break;
49
+                                    break;
50 50
                     case default: break;
51 51
 
52 52
                 }
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
 
97 97
 
98 98
 /**
99
-     * @param string $cart
100
-     * @param string $cust
101
-     */
99
+ * @param string $cart
100
+ * @param string $cust
101
+ */
102 102
     private function processFindCarts($cart, $cust)
103 103
     {
104 104
         $sql = 'SELECT DISTINCT pc.id_cart as id, DATE_FORMAT(pc.date_upd,"%a %D %b %Y, %l:%i %p") as timer from '._DB_PREFIX_.'cart as pc
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     }
285 285
 
286 286
 
287
-   private function getProducts($category)
287
+    private function getProducts($category)
288 288
     {
289 289
         $product_ids = $this->getProductIDs($category);
290 290
         $products = $this->getProduct($product_ids);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
         foreach ($this->clients as $client) {
40 40
             if ($from == $client) {
41 41
                 $type = strtolower(substr($msg, 0, strpos($msg, '|')));
42
-                $data = substr($msg, strpos($msg,'|') + 1);
43
-                switch($type) {
42
+                $data = substr($msg, strpos($msg, '|') + 1);
43
+                switch ($type) {
44 44
                     case 'cart' : $result = getCartData($data);
45 45
                                   break;
46 46
                     case 'prod' : $result = getProductData($data);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                     case default: break;
51 51
 
52 52
                 }
53
-                if(!empty($result)) {
53
+                if (!empty($result)) {
54 54
                 $client->send(json_encode($result));
55 55
                 }
56 56
             }
Please login to merge, or discard this patch.