| @@ -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; | 
| @@ -351,8 +351,7 @@ | ||
| 351 | 351 |  			{ | 
| 352 | 352 | $list['product.lists.siteid'] = (string) $map[$attrId]->getSiteId(); | 
| 353 | 353 | $list['product.lists.id'] = (string) $map[$attrId]->getId(); | 
| 354 | - } | |
| 355 | - else | |
| 354 | + } else | |
| 356 | 355 |  			{ | 
| 357 | 356 | $list['product.lists.siteid'] = $siteId; | 
| 358 | 357 | $list['product.lists.id'] = ''; | 
| @@ -21,8 +21,7 @@ discard block | ||
| 21 | 21 | */ | 
| 22 | 22 | |
| 23 | 23 | |
| 24 | -$pgroup = function( array $params, $group ) | |
| 25 | -{ | |
| 24 | +$pgroup = function( array $params, $group ) { | |
| 26 | 25 |  	if( $group != null ) { | 
| 27 | 26 | return [$group => ['page' => $params]]; | 
| 28 | 27 | } | 
| @@ -56,16 +55,14 @@ discard block | ||
| 56 | 55 | $controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); | 
| 57 | 56 | $action = $this->config( 'admin/jqadm/url/get/action', 'get' ); | 
| 58 | 57 | $config = $this->config( 'admin/jqadm/url/get/config', [] ); | 
| 59 | - } | |
| 60 | - else | |
| 58 | + } else | |
| 61 | 59 |  	{ | 
| 62 | 60 | $target = $this->config( 'admin/jqadm/url/create/target' ); | 
| 63 | 61 | $controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); | 
| 64 | 62 | $action = $this->config( 'admin/jqadm/url/create/action', 'create' ); | 
| 65 | 63 | $config = $this->config( 'admin/jqadm/url/create/config', [] ); | 
| 66 | 64 | } | 
| 67 | -} | |
| 68 | -else | |
| 65 | +} else | |
| 69 | 66 |  { | 
| 70 | 67 | $target = $this->config( 'admin/jqadm/url/search/target' ); | 
| 71 | 68 | $controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); | 
| @@ -56,16 +56,14 @@ | ||
| 56 | 56 | $controller = $this->config( 'admin/jqadm/url/get/controller', 'Jqadm' ); | 
| 57 | 57 | $action = $this->config( 'admin/jqadm/url/get/action', 'get' ); | 
| 58 | 58 | $config = $this->config( 'admin/jqadm/url/get/config', [] ); | 
| 59 | - } | |
| 60 | - else | |
| 59 | + } else | |
| 61 | 60 |  	{ | 
| 62 | 61 | $target = $this->config( 'admin/jqadm/url/create/target' ); | 
| 63 | 62 | $controller = $this->config( 'admin/jqadm/url/create/controller', 'Jqadm' ); | 
| 64 | 63 | $action = $this->config( 'admin/jqadm/url/create/action', 'create' ); | 
| 65 | 64 | $config = $this->config( 'admin/jqadm/url/create/config', [] ); | 
| 66 | 65 | } | 
| 67 | -} | |
| 68 | -else | |
| 66 | +} else | |
| 69 | 67 |  { | 
| 70 | 68 | $target = $this->config( 'admin/jqadm/url/search/target' ); | 
| 71 | 69 | $controller = $this->config( 'admin/jqadm/url/search/controller', 'Jqadm' ); | 
| @@ -294,8 +294,7 @@ | ||
| 294 | 294 | $propItem->setValue( $value ); | 
| 295 | 295 | |
| 296 | 296 | $item->addPropertyItem( $propItem ); | 
| 297 | - } | |
| 298 | - else | |
| 297 | + } else | |
| 299 | 298 |  			{ | 
| 300 | 299 | $item->deletePropertyItems( $propItems->toArray() ); | 
| 301 | 300 | } |