@@ -119,8 +119,7 @@ |
||
119 | 119 | { |
120 | 120 | $capdate = date( 'Y-m-d 00:00:00', time() - 86400 * $capDays ); |
121 | 121 | $expr[] = $orderSearch->compare( '<=', 'order.datepayment', $capdate ); |
122 | - } |
|
123 | - else |
|
122 | + } else |
|
124 | 123 | { |
125 | 124 | $expr[] = $orderSearch->compare( '==', 'order.statusdelivery', $status ); |
126 | 125 | } |
@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | foreach( $manager->searchItems( $search ) as $item ) { |
82 | 82 | $this->listTypes[$item->getCode()] = $item->getCode(); |
83 | 83 | } |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $this->listTypes = array_flip( $this->listTypes ); |
88 | 87 | } |
@@ -164,8 +163,7 @@ discard block |
||
164 | 163 | { |
165 | 164 | $listItem = $listMap[$catid][$listtype]; |
166 | 165 | unset( $listItems[ $listItem->getId() ] ); |
167 | - } |
|
168 | - else |
|
166 | + } else |
|
169 | 167 | { |
170 | 168 | $listItem = $listManager->createItem()->setType( $listtype ); |
171 | 169 | } |
@@ -170,9 +170,12 @@ discard block |
||
170 | 170 | { |
171 | 171 | foreach( $codes as $code ) |
172 | 172 | { |
173 | - try { |
|
173 | + try |
|
174 | + { |
|
174 | 175 | $basket->addCoupon( $code ); |
175 | - } catch( \Aimeos\MShop\Plugin\Provider\Exception $e ) { |
|
176 | + } |
|
177 | + catch( \Aimeos\MShop\Plugin\Provider\Exception $e ) |
|
178 | + { |
|
176 | 179 | $basket->deleteCoupon( $code ); |
177 | 180 | } |
178 | 181 | } |
@@ -282,7 +285,9 @@ discard block |
||
282 | 285 | $context->setUserId( $baseItem->getCustomerId() ); |
283 | 286 | $context->setGroupIds( $customerItem->getGroups() ); |
284 | 287 | } |
285 | - catch( \Exception $e ) {} // Subscription without account |
|
288 | + catch( \Exception $e ) |
|
289 | + { |
|
290 | +} // Subscription without account |
|
286 | 291 | |
287 | 292 | return $context; |
288 | 293 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | |
29 | 29 | $context->getConfig()->set( 'controller/common/subscription/process/processor/cgroup/groupids', ['1', '2'] ); |
30 | 30 | |
31 | - $fcn = function( $subject ){ |
|
31 | + $fcn = function( $subject ) { |
|
32 | 32 | return $subject->getGroups() === ['1', '2']; |
33 | 33 | }; |
34 | 34 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $context->getConfig()->set( 'controller/common/subscription/process/processor/cgroup/groupids', ['1', '2'] ); |
60 | 60 | |
61 | - $fcn = function( $subject ){ |
|
61 | + $fcn = function( $subject ) { |
|
62 | 62 | return $subject->getGroups() === []; |
63 | 63 | }; |
64 | 64 |