@@ -68,6 +68,10 @@ |
||
68 | 68 | private $id; |
69 | 69 | private $label; |
70 | 70 | |
71 | + /** |
|
72 | + * @param integer $id |
|
73 | + * @param string $label |
|
74 | + */ |
|
71 | 75 | public function __construct( $id, $label ) |
72 | 76 | { |
73 | 77 | $this->id = $id; |
@@ -87,9 +87,12 @@ |
||
87 | 87 | <div class="item-actions"> |
88 | 88 | <?php if( isset( $this->itemData ) ) : ?> |
89 | 89 | <?= $this->partial( $this->config( 'admin/jqadm/partial/itemactions', 'common/partials/itemactions-standard' ), ['params' => $params] ); ?> |
90 | - <?php else : ?> |
|
90 | + <?php else { |
|
91 | + : ?> |
|
91 | 92 | <span class="placeholder"> </span> |
92 | - <?php endif; ?> |
|
93 | + <?php endif; |
|
94 | +} |
|
95 | +?> |
|
93 | 96 | </div> |
94 | 97 | </nav> |
95 | 98 |
@@ -305,6 +305,9 @@ |
||
305 | 305 | } |
306 | 306 | |
307 | 307 | |
308 | + /** |
|
309 | + * @param string $method |
|
310 | + */ |
|
308 | 311 | public function getClientMock( $method ) |
309 | 312 | { |
310 | 313 | $object = $this->getMockBuilder( \Aimeos\Admin\JQAdm\Order\Standard::class ) |
@@ -83,6 +83,9 @@ |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | |
86 | + /** |
|
87 | + * @return Aimeos\Bootstrap |
|
88 | + */ |
|
86 | 89 | public static function getAimeos() |
87 | 90 | { |
88 | 91 | if( !isset( self::$aimeos ) ) |
@@ -442,9 +442,12 @@ |
||
442 | 442 | { |
443 | 443 | $manager = \Aimeos\MShop::create( $this->getContext(), 'service' ); |
444 | 444 | |
445 | - try { |
|
445 | + try |
|
446 | + { |
|
446 | 447 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); |
447 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
448 | + } |
|
449 | + catch( \Aimeos\MShop\Exception $e ) |
|
450 | + { |
|
448 | 451 | return []; |
449 | 452 | } |
450 | 453 | } |
@@ -434,9 +434,12 @@ |
||
434 | 434 | { |
435 | 435 | $manager = \Aimeos\MShop::create( $this->getContext(), 'coupon' ); |
436 | 436 | |
437 | - try { |
|
437 | + try |
|
438 | + { |
|
438 | 439 | return $manager->getProvider( $item, '' )->getConfigBE(); |
439 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
440 | + } |
|
441 | + catch( \Aimeos\MShop\Exception $e ) |
|
442 | + { |
|
440 | 443 | return []; |
441 | 444 | } |
442 | 445 | } |
@@ -441,9 +441,12 @@ |
||
441 | 441 | { |
442 | 442 | $manager = \Aimeos\MShop::create( $this->getContext(), 'plugin' ); |
443 | 443 | |
444 | - try { |
|
444 | + try |
|
445 | + { |
|
445 | 446 | return $manager->getProvider( $item, $item->getType() )->getConfigBE(); |
446 | - } catch( \Aimeos\MShop\Exception $e ) { |
|
447 | + } |
|
448 | + catch( \Aimeos\MShop\Exception $e ) |
|
449 | + { |
|
447 | 450 | return []; |
448 | 451 | } |
449 | 452 | } |
@@ -421,9 +421,12 @@ |
||
421 | 421 | { |
422 | 422 | $manager = \Aimeos\MShop::create( $this->getContext(), 'catalog' ); |
423 | 423 | |
424 | - try { |
|
424 | + try |
|
425 | + { |
|
425 | 426 | return $manager->getTree( null, [], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE )->getId(); |
426 | - } catch( \Exception $e ) { |
|
427 | + } |
|
428 | + catch( \Exception $e ) |
|
429 | + { |
|
427 | 430 | return null; |
428 | 431 | } |
429 | 432 | } |
@@ -407,7 +407,7 @@ |
||
407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
409 | 409 | } |
410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
410 | + catch( \Exception $e ) {; } // Show product even if file isn't available any more |
|
411 | 411 | } |
412 | 412 | |
413 | 413 | return $data; |
@@ -407,7 +407,9 @@ |
||
407 | 407 | $data['time'] = $fs->time( $data['attribute.code'] ); |
408 | 408 | $data['size'] = $fs->size( $data['attribute.code'] ); |
409 | 409 | } |
410 | - catch( \Exception $e ) { ; } // Show product even if file isn't available any more |
|
410 | + catch( \Exception $e ) |
|
411 | + { |
|
412 | +; } // Show product even if file isn't available any more |
|
411 | 413 | } |
412 | 414 | |
413 | 415 | return $data; |