@@ -109,7 +109,8 @@ discard block |
||
109 | 109 | ) ) ) ) |
110 | 110 | ?> |
111 | 111 | <?php endforeach ?> |
112 | -<?php else : ?> |
|
112 | +<?php else { |
|
113 | + : ?> |
|
113 | 114 | <?= $this->translate( 'controller/jobs', 'like billing address' ) ?> |
114 | 115 | <?php endif ?> |
115 | 116 | |
@@ -124,6 +125,7 @@ discard block |
||
124 | 125 | <?php foreach( $service->getAttributeItems() as $attribute ) |
125 | 126 | { |
126 | 127 | $name = ( $attribute->getName() != '' ? $attribute->getName() : $this->translate( 'controller/jobs', $attribute->getCode() ) ); |
128 | +} |
|
127 | 129 | |
128 | 130 | switch( $attribute->getValue() ) |
129 | 131 | { |
@@ -65,8 +65,7 @@ |
||
65 | 65 | { |
66 | 66 | $item = $propMap[$value][$type]; |
67 | 67 | $items->remove( $item->getId() ); |
68 | - } |
|
69 | - else |
|
68 | + } else |
|
70 | 69 | { |
71 | 70 | $item = $manager->create()->setType( $type ); |
72 | 71 | } |
@@ -162,8 +162,7 @@ |
||
162 | 162 | $listItem = $listMap[$url][$type][$listtype]; |
163 | 163 | $refItem = $listItem->getRefItem(); |
164 | 164 | unset( $listItems[$listItem->getId()] ); |
165 | - } |
|
166 | - else |
|
165 | + } else |
|
167 | 166 | { |
168 | 167 | $listItem = $manager->createListItem()->setType( $listtype ); |
169 | 168 | $refItem = $refManager->create()->setType( $type ); |
@@ -139,8 +139,7 @@ |
||
139 | 139 | $listItem = $listMap[$content][$type][$listtype]; |
140 | 140 | $refItem = $listItem->getRefItem(); |
141 | 141 | unset( $listItems[$listItem->getId()] ); |
142 | - } |
|
143 | - else |
|
142 | + } else |
|
144 | 143 | { |
145 | 144 | $listItem = $manager->createListItem()->setType( $listtype ); |
146 | 145 | $refItem = $refManager->create()->setType( $type ); |
@@ -592,8 +592,7 @@ |
||
592 | 592 | { |
593 | 593 | $manager->move( $item->getId(), $item->getParentId(), $parentid ); |
594 | 594 | $item = $manager->save( $item ); |
595 | - } |
|
596 | - else |
|
595 | + } else |
|
597 | 596 | { |
598 | 597 | $item = $manager->insert( $item, $parentid ); |
599 | 598 | } |
@@ -155,7 +155,9 @@ |
||
155 | 155 | } |
156 | 156 | } |
157 | 157 | } |
158 | - catch( \Exception $e ) { ; } // no price available |
|
158 | + catch( \Exception $e ) |
|
159 | + { |
|
160 | +; } // no price available |
|
159 | 161 | } |
160 | 162 | |
161 | 163 | return $result; |
@@ -270,8 +270,7 @@ |
||
270 | 270 | $subList = self::createControllers( $it, $context, $aimeos, $pref ); |
271 | 271 | |
272 | 272 | $list = array_merge( $list, $subList ); |
273 | - } |
|
274 | - else if( $prefix !== '' && $entry->getType() === 'file' |
|
273 | + } else if( $prefix !== '' && $entry->getType() === 'file' |
|
275 | 274 | && !in_array( $entry->getBaseName( '.php' ), ['Base'] ) ) |
276 | 275 | { |
277 | 276 | $list[$prefix] = self::create( $context, $aimeos, $prefix ); |
@@ -227,9 +227,12 @@ |
||
227 | 227 | |
228 | 228 | foreach( $items as $item ) |
229 | 229 | { |
230 | - try { |
|
230 | + try |
|
231 | + { |
|
231 | 232 | $manager->save( $manager->scale( $item, $force ) ); |
232 | - } catch( \Exception $e ) { |
|
233 | + } |
|
234 | + catch( \Exception $e ) |
|
235 | + { |
|
233 | 236 | $msg = sprintf( 'Scaling media item "%1$s" failed: %2$s', $item->getId(), $e->getMessage() ); |
234 | 237 | $logger->error( $msg, 'media/scale' ); |
235 | 238 | } |
@@ -265,9 +265,12 @@ discard block |
||
265 | 265 | { |
266 | 266 | foreach( $codes as $code ) |
267 | 267 | { |
268 | - try { |
|
268 | + try |
|
269 | + { |
|
269 | 270 | $newOrder->addCoupon( $code ); |
270 | - } catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e ) { |
|
271 | + } |
|
272 | + catch( \Aimeos\MShop\Plugin\Provider\Exception | \Aimeos\MShop\Coupon\Exception $e ) |
|
273 | + { |
|
271 | 274 | $newOrder->deleteCoupon( $code ); |
272 | 275 | } |
273 | 276 | } |
@@ -383,7 +386,9 @@ discard block |
||
383 | 386 | $context->setUserId( $order->getCustomerId() ); |
384 | 387 | $context->setGroupIds( $customerItem->getGroups() ); |
385 | 388 | } |
386 | - catch( \Exception $e ) {} // Subscription without account |
|
389 | + catch( \Exception $e ) |
|
390 | + { |
|
391 | +} // Subscription without account |
|
387 | 392 | |
388 | 393 | return $context; |
389 | 394 | } |
@@ -569,9 +574,11 @@ discard block |
||
569 | 574 | } |
570 | 575 | catch( \Exception $e ) |
571 | 576 | { |
572 | - if( $e->getCode() < 1 ) // not a soft error |
|
577 | + if( $e->getCode() < 1 ) { |
|
578 | + // not a soft error |
|
573 | 579 | { |
574 | 580 | $item->setReason( \Aimeos\MShop\Subscription\Item\Iface::REASON_PAYMENT ); |
581 | + } |
|
575 | 582 | |
576 | 583 | if( $this->ends() ) { |
577 | 584 | $item->setDateEnd( date_create()->format( 'Y-m-d' ) ); |