Completed
Push — develop ( 3d5a51...2dc442 )
by Aleksey
03:34
created
src/SpeckCatalog/Mapper/Product.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
 
46 46
     public function find(array $data)
47 47
     {
48
-        $table  = $this->getTableName();
48
+        $table = $this->getTableName();
49 49
         if (isset($data['product_id'])) {
50
-            $where  = ['product_id' => $data['product_id']];
50
+            $where = ['product_id' => $data['product_id']];
51 51
         } else {
52 52
             $where = ['item_number' => $data['item_number']];
53 53
         }
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
 
153 153
         $select = $this->getSelect($c_b_p)
154 154
             ->columns(['product_id', 'choice_id', 'option_id'])
155
-            ->join($c_p_o, $c_p_o.'.option_id='.$c_b_p.'.option_id', [])
155
+            ->join($c_p_o, $c_p_o . '.option_id=' . $c_b_p . '.option_id', [])
156 156
             ->where([
157
-                $c_b_p.'.product_id' => $builderProductId,
158
-                $c_p_o.'.product_id' => $productId,
157
+                $c_b_p . '.product_id' => $builderProductId,
158
+                $c_p_o . '.product_id' => $productId,
159 159
             ]);
160 160
         $rows = $this->selectMany($select);
161 161
 
Please login to merge, or discard this patch.
src/SpeckCatalog/Model/CartItemMeta.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
     public function __construct(array $config = [])
16 16
     {
17 17
         if (count($config)) {
18
-            $this->parentOptionId   = isset($config['parent_option_id'])   ? $config['parent_option_id']   : null;
19
-            $this->productId        = isset($config['product_id'])         ? $config['product_id']         : null;
20
-            $this->itemNumber       = isset($config['item_number'])        ? $config['item_number']        : null;
18
+            $this->parentOptionId   = isset($config['parent_option_id']) ? $config['parent_option_id'] : null;
19
+            $this->productId        = isset($config['product_id']) ? $config['product_id'] : null;
20
+            $this->itemNumber       = isset($config['item_number']) ? $config['item_number'] : null;
21 21
             $this->parentOptionName = isset($config['parent_option_name']) ? $config['parent_option_name'] : null;
22
-            $this->flatOptions      = isset($config['flat_options'])       ? $config['flat_options']       : [];
23
-            $this->image            = isset($config['image'])              ? $config['image']              : null;
24
-            $this->uom              = isset($config['uom'])                ? $config['uom']                : null;
22
+            $this->flatOptions      = isset($config['flat_options']) ? $config['flat_options'] : [];
23
+            $this->image            = isset($config['image']) ? $config['image'] : null;
24
+            $this->uom              = isset($config['uom']) ? $config['uom'] : null;
25 25
         }
26 26
     }
27 27
 
Please login to merge, or discard this patch.