@@ -374,9 +374,12 @@ |
||
374 | 374 | { |
375 | 375 | $manager = \Aimeos\MShop::create( $this->context(), 'plugin' ); |
376 | 376 | |
377 | - try { |
|
377 | + try |
|
378 | + { |
|
378 | 379 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); |
379 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
380 | + } |
|
381 | + catch( \Aimeos\MShop\Exception $e ) |
|
382 | + { |
|
380 | 383 | return []; |
381 | 384 | } |
382 | 385 | } |
@@ -366,9 +366,12 @@ |
||
366 | 366 | { |
367 | 367 | $manager = \Aimeos\MShop::create( $this->context(), 'catalog' ); |
368 | 368 | |
369 | - try { |
|
369 | + try |
|
370 | + { |
|
370 | 371 | return $manager->getTree( null, [], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->getId(); |
371 | - } catch( \Exception $e ) { |
|
372 | + } |
|
373 | + catch( \Exception $e ) |
|
374 | + { |
|
372 | 375 | return null; |
373 | 376 | } |
374 | 377 | } |
@@ -375,9 +375,12 @@ |
||
375 | 375 | { |
376 | 376 | $manager = \Aimeos\MShop::create( $this->context(), 'service' ); |
377 | 377 | |
378 | - try { |
|
378 | + try |
|
379 | + { |
|
379 | 380 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); |
380 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
381 | + } |
|
382 | + catch( \Aimeos\MShop\Exception $e ) |
|
383 | + { |
|
381 | 384 | return []; |
382 | 385 | } |
383 | 386 | } |
@@ -374,9 +374,12 @@ |
||
374 | 374 | { |
375 | 375 | $manager = \Aimeos\MShop::create( $this->context(), 'rule' ); |
376 | 376 | |
377 | - try { |
|
377 | + try |
|
378 | + { |
|
378 | 379 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); |
379 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
380 | + } |
|
381 | + catch( \Aimeos\MShop\Exception $e ) |
|
382 | + { |
|
380 | 383 | return []; |
381 | 384 | } |
382 | 385 | } |
@@ -489,8 +489,7 @@ discard block |
||
489 | 489 | { |
490 | 490 | $attrItem = $attrItems[$array['order.base.service.attribute.id']]; |
491 | 491 | unset( $attrItems[$array['order.base.service.attribute.id']] ); |
492 | - } |
|
493 | - else |
|
492 | + } else |
|
494 | 493 | { |
495 | 494 | $attrItem = $attrManager->create(); |
496 | 495 | } |
@@ -525,9 +524,13 @@ discard block |
||
525 | 524 | { |
526 | 525 | $manager = \Aimeos\MShop::create( $this->context(), 'customer' ); |
527 | 526 | |
528 | - try { |
|
527 | + try |
|
528 | + { |
|
529 | 529 | $data += $manager->get( $item->getCustomerId() )->toArray(); |
530 | - } catch( \Exception $e ) {}; |
|
530 | + } |
|
531 | + catch( \Exception $e ) |
|
532 | + { |
|
533 | +}; |
|
531 | 534 | } |
532 | 535 | |
533 | 536 |
@@ -365,9 +365,12 @@ |
||
365 | 365 | { |
366 | 366 | $manager = \Aimeos\MShop::create( $this->context(), 'coupon' ); |
367 | 367 | |
368 | - try { |
|
368 | + try |
|
369 | + { |
|
369 | 370 | return $manager->getProvider( $item, '' )->getConfigBE(); |
370 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
371 | + } |
|
372 | + catch( \Aimeos\MShop\Exception $e ) |
|
373 | + { |
|
371 | 374 | return []; |
372 | 375 | } |
373 | 376 | } |
@@ -375,7 +375,7 @@ |
||
375 | 375 | } |
376 | 376 | |
377 | 377 | $msg = $this->context()->translate( 'admin', 'Permission denied' ); |
378 | - throw new \Aimeos\Admin\JQAdm\Exception( $msg); |
|
378 | + throw new \Aimeos\Admin\JQAdm\Exception( $msg ); |
|
379 | 379 | } |
380 | 380 | |
381 | 381 |