@@ -302,8 +302,7 @@ discard block |
||
| 302 | 302 | $attributes[$attribute->getParentId()][] = $attribute; |
| 303 | 303 | $attribute->setParentId( null ); |
| 304 | 304 | $attribute->setId( null ); |
| 305 | - } |
|
| 306 | - else |
|
| 305 | + } else |
|
| 307 | 306 | { |
| 308 | 307 | $attributes[$attribute->getParentId()][$id] = $attribute; |
| 309 | 308 | } |
@@ -322,8 +321,7 @@ discard block |
||
| 322 | 321 | $map[$item->getParentId()][$item->getPosition()] = $item; |
| 323 | 322 | |
| 324 | 323 | $subProducts = []; |
| 325 | - } |
|
| 326 | - else |
|
| 324 | + } else |
|
| 327 | 325 | { // in case it's a sub-product |
| 328 | 326 | $subProducts[$item->getPosition()] = $item; |
| 329 | 327 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | protected function address() |
| 27 | 27 | { |
| 28 | - $db =$this->db( 'db-order' ); |
|
| 28 | + $db = $this->db( 'db-order' ); |
|
| 29 | 29 | |
| 30 | 30 | if( !$db->hasColumn( 'mshop_order_base_address', 'baseid' ) ) { |
| 31 | 31 | return $this; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | protected function coupon() |
| 53 | 53 | { |
| 54 | - $db =$this->db( 'db-order' ); |
|
| 54 | + $db = $this->db( 'db-order' ); |
|
| 55 | 55 | |
| 56 | 56 | if( !$db->hasColumn( 'mshop_order_base_coupon', 'baseid' ) ) { |
| 57 | 57 | return $this; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | protected function product() |
| 78 | 78 | { |
| 79 | - $db =$this->db( 'db-order' ); |
|
| 79 | + $db = $this->db( 'db-order' ); |
|
| 80 | 80 | |
| 81 | 81 | if( !$db->hasColumn( 'mshop_order_base_product', 'baseid' ) ) { |
| 82 | 82 | return $this; |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | protected function service() |
| 104 | 104 | { |
| 105 | - $db =$this->db( 'db-order' ); |
|
| 105 | + $db = $this->db( 'db-order' ); |
|
| 106 | 106 | |
| 107 | 107 | if( !$db->hasColumn( 'mshop_order_base_service', 'baseid' ) ) { |
| 108 | 108 | return $this; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | protected function subscription() |
| 130 | 130 | { |
| 131 | - $db =$this->db( 'db-order' ); |
|
| 131 | + $db = $this->db( 'db-order' ); |
|
| 132 | 132 | |
| 133 | 133 | if( !$db->hasColumn( 'mshop_subscription', 'baseid' ) ) { |
| 134 | 134 | return $this; |