@@ -77,14 +77,12 @@ |
||
77 | 77 | foreach( $this->getSubClients() as $client ) { |
78 | 78 | $view->ordercountpaystatusBody .= $client->search(); |
79 | 79 | } |
80 | - } |
|
81 | - catch( \Aimeos\MShop\Exception $e ) |
|
80 | + } catch( \Aimeos\MShop\Exception $e ) |
|
82 | 81 | { |
83 | 82 | $error = array( 'order-countpaystatus' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
84 | 83 | $view->errors = $view->get( 'errors', [] ) + $error; |
85 | 84 | $this->logException( $e ); |
86 | - } |
|
87 | - catch( \Exception $e ) |
|
85 | + } catch( \Exception $e ) |
|
88 | 86 | { |
89 | 87 | $error = array( 'order-countpaystatus' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
90 | 88 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Dashboard\Order\Countpaystatus; |
12 | 12 | |
13 | -sprintf( 'countpaystatus' ); // for translation |
|
13 | +sprintf('countpaystatus'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -49,21 +49,21 @@ discard block |
||
49 | 49 | { |
50 | 50 | $view->ordercountpaystatusBody = ''; |
51 | 51 | |
52 | - foreach( $this->getSubClients() as $client ) { |
|
52 | + foreach ($this->getSubClients() as $client) { |
|
53 | 53 | $view->ordercountpaystatusBody .= $client->search(); |
54 | 54 | } |
55 | 55 | } |
56 | - catch( \Aimeos\MShop\Exception $e ) |
|
56 | + catch (\Aimeos\MShop\Exception $e) |
|
57 | 57 | { |
58 | - $error = array( 'order-countpaystatus' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
59 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
60 | - $this->logException( $e ); |
|
58 | + $error = array('order-countpaystatus' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
59 | + $view->errors = $view->get('errors', []) + $error; |
|
60 | + $this->logException($e); |
|
61 | 61 | } |
62 | - catch( \Exception $e ) |
|
62 | + catch (\Exception $e) |
|
63 | 63 | { |
64 | - $error = array( 'order-countpaystatus' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
65 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
66 | - $this->logException( $e ); |
|
64 | + $error = array('order-countpaystatus' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
65 | + $view->errors = $view->get('errors', []) + $error; |
|
66 | + $this->logException($e); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** admin/jqadm/dashboard/order/countpaystatus/template-item |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $tplconf = 'admin/jqadm/dashboard/order/countpaystatus/template-item'; |
89 | 89 | $default = 'dashboard/item-order-countpaystatus-standard'; |
90 | 90 | |
91 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
91 | + return $view->render($view->config($tplconf, $default)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|null $name Name of the sub-client (Default if null) |
100 | 100 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
101 | 101 | */ |
102 | - public function getSubClient( $type, $name = null ) |
|
102 | + public function getSubClient($type, $name = null) |
|
103 | 103 | { |
104 | 104 | /** admin/jqadm/dashboard/order/countpaystatus/decorators/excludes |
105 | 105 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @see admin/jqadm/dashboard/order/countpaystatus/decorators/excludes |
175 | 175 | * @see admin/jqadm/dashboard/order/countpaystatus/decorators/global |
176 | 176 | */ |
177 | - return $this->createSubClient( 'dashboard/order/countpaystatus/' . $type, $name ); |
|
177 | + return $this->createSubClient('dashboard/order/countpaystatus/' . $type, $name); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | |
@@ -218,6 +218,6 @@ discard block |
||
218 | 218 | * @since 2018.01 |
219 | 219 | * @category Developer |
220 | 220 | */ |
221 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/countpaystatus/standard/subparts', [] ); |
|
221 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/countpaystatus/standard/subparts', []); |
|
222 | 222 | } |
223 | 223 | } |
@@ -77,14 +77,12 @@ |
||
77 | 77 | foreach( $this->getSubClients() as $client ) { |
78 | 78 | $view->orderlatestBody .= $client->search(); |
79 | 79 | } |
80 | - } |
|
81 | - catch( \Aimeos\MShop\Exception $e ) |
|
80 | + } catch( \Aimeos\MShop\Exception $e ) |
|
82 | 81 | { |
83 | 82 | $error = array( 'order-latest' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
84 | 83 | $view->errors = $view->get( 'errors', [] ) + $error; |
85 | 84 | $this->logException( $e ); |
86 | - } |
|
87 | - catch( \Exception $e ) |
|
85 | + } catch( \Exception $e ) |
|
88 | 86 | { |
89 | 87 | $error = array( 'order-latest' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
90 | 88 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Dashboard\Order\Latest; |
12 | 12 | |
13 | -sprintf( 'latest' ); // for translation |
|
13 | +sprintf('latest'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -46,24 +46,24 @@ discard block |
||
46 | 46 | |
47 | 47 | try |
48 | 48 | { |
49 | - $this->addOrders( $view ); |
|
49 | + $this->addOrders($view); |
|
50 | 50 | $view->orderlatestBody = ''; |
51 | 51 | |
52 | - foreach( $this->getSubClients() as $client ) { |
|
52 | + foreach ($this->getSubClients() as $client) { |
|
53 | 53 | $view->orderlatestBody .= $client->search(); |
54 | 54 | } |
55 | 55 | } |
56 | - catch( \Aimeos\MShop\Exception $e ) |
|
56 | + catch (\Aimeos\MShop\Exception $e) |
|
57 | 57 | { |
58 | - $error = array( 'order-latest' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
59 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
60 | - $this->logException( $e ); |
|
58 | + $error = array('order-latest' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage())); |
|
59 | + $view->errors = $view->get('errors', []) + $error; |
|
60 | + $this->logException($e); |
|
61 | 61 | } |
62 | - catch( \Exception $e ) |
|
62 | + catch (\Exception $e) |
|
63 | 63 | { |
64 | - $error = array( 'order-latest' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
65 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
66 | - $this->logException( $e ); |
|
64 | + $error = array('order-latest' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
65 | + $view->errors = $view->get('errors', []) + $error; |
|
66 | + $this->logException($e); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** admin/jqadm/dashboard/order/latest/template-item |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $tplconf = 'admin/jqadm/dashboard/order/latest/template-item'; |
89 | 89 | $default = 'dashboard/item-order-latest-standard'; |
90 | 90 | |
91 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
91 | + return $view->render($view->config($tplconf, $default)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|null $name Name of the sub-client (Default if null) |
100 | 100 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
101 | 101 | */ |
102 | - public function getSubClient( $type, $name = null ) |
|
102 | + public function getSubClient($type, $name = null) |
|
103 | 103 | { |
104 | 104 | /** admin/jqadm/dashboard/order/latest/decorators/excludes |
105 | 105 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @see admin/jqadm/dashboard/order/latest/decorators/excludes |
175 | 175 | * @see admin/jqadm/dashboard/order/latest/decorators/global |
176 | 176 | */ |
177 | - return $this->createSubClient( 'dashboard/order/latest/' . $type, $name ); |
|
177 | + return $this->createSubClient('dashboard/order/latest/' . $type, $name); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | |
@@ -183,28 +183,28 @@ discard block |
||
183 | 183 | * |
184 | 184 | * @param \Aimeos\MW\View\Iface $view View object to add the parameters to |
185 | 185 | */ |
186 | - protected function addOrders( \Aimeos\MW\View\Iface $view ) |
|
186 | + protected function addOrders(\Aimeos\MW\View\Iface $view) |
|
187 | 187 | { |
188 | - $manager = \Aimeos\MShop::create( $this->getContext(), 'order' ); |
|
188 | + $manager = \Aimeos\MShop::create($this->getContext(), 'order'); |
|
189 | 189 | |
190 | 190 | $search = $manager->createSearch(); |
191 | - $search->setSortations( [$search->sort( '-', 'order.ctime' ), $search->sort( '-', 'order.id' )] ); |
|
192 | - $search->setSlice( 0, 10 ); |
|
191 | + $search->setSortations([$search->sort('-', 'order.ctime'), $search->sort('-', 'order.id')]); |
|
192 | + $search->setSlice(0, 10); |
|
193 | 193 | |
194 | - $items = $manager->searchItems( $search ); |
|
194 | + $items = $manager->searchItems($search); |
|
195 | 195 | |
196 | 196 | $baseIds = []; |
197 | - foreach( $items as $item ) { |
|
197 | + foreach ($items as $item) { |
|
198 | 198 | $baseIds[] = $item->getBaseId(); |
199 | 199 | } |
200 | 200 | |
201 | 201 | |
202 | - $baseManager = \Aimeos\MShop::create( $this->getContext(), 'order/base' ); |
|
202 | + $baseManager = \Aimeos\MShop::create($this->getContext(), 'order/base'); |
|
203 | 203 | |
204 | - $baseSearch = $manager->createSearch()->setSlice( 0, count( $baseIds ) ); |
|
205 | - $baseSearch->setConditions( $baseSearch->compare( '==', 'order.base.id', $baseIds ) ); |
|
204 | + $baseSearch = $manager->createSearch()->setSlice(0, count($baseIds)); |
|
205 | + $baseSearch->setConditions($baseSearch->compare('==', 'order.base.id', $baseIds)); |
|
206 | 206 | |
207 | - $basketItems = $baseManager->searchItems( $baseSearch, ['order/base/address', 'order/base/service'] ); |
|
207 | + $basketItems = $baseManager->searchItems($baseSearch, ['order/base/address', 'order/base/service']); |
|
208 | 208 | |
209 | 209 | |
210 | 210 | $view->orderlatestBaskets = $basketItems; |
@@ -252,6 +252,6 @@ discard block |
||
252 | 252 | * @since 2016.07 |
253 | 253 | * @category Developer |
254 | 254 | */ |
255 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/latest/standard/subparts', [] ); |
|
255 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/latest/standard/subparts', []); |
|
256 | 256 | } |
257 | 257 | } |
@@ -77,14 +77,12 @@ |
||
77 | 77 | foreach( $this->getSubClients() as $client ) { |
78 | 78 | $view->orderpaymenttypeBody .= $client->search(); |
79 | 79 | } |
80 | - } |
|
81 | - catch( \Aimeos\MShop\Exception $e ) |
|
80 | + } catch( \Aimeos\MShop\Exception $e ) |
|
82 | 81 | { |
83 | 82 | $error = array( 'order-counthour' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
84 | 83 | $view->errors = $view->get( 'errors', [] ) + $error; |
85 | 84 | $this->logException( $e ); |
86 | - } |
|
87 | - catch( \Exception $e ) |
|
85 | + } catch( \Exception $e ) |
|
88 | 86 | { |
89 | 87 | $error = array( 'order-counthour' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
90 | 88 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Dashboard\Order\Counthour; |
12 | 12 | |
13 | -sprintf( 'counthour' ); // for translation |
|
13 | +sprintf('counthour'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -49,21 +49,21 @@ discard block |
||
49 | 49 | { |
50 | 50 | $view->orderpaymenttypeBody = ''; |
51 | 51 | |
52 | - foreach( $this->getSubClients() as $client ) { |
|
52 | + foreach ($this->getSubClients() as $client) { |
|
53 | 53 | $view->orderpaymenttypeBody .= $client->search(); |
54 | 54 | } |
55 | 55 | } |
56 | - catch( \Aimeos\MShop\Exception $e ) |
|
56 | + catch (\Aimeos\MShop\Exception $e) |
|
57 | 57 | { |
58 | - $error = array( 'order-counthour' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
59 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
60 | - $this->logException( $e ); |
|
58 | + $error = array('order-counthour' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
59 | + $view->errors = $view->get('errors', []) + $error; |
|
60 | + $this->logException($e); |
|
61 | 61 | } |
62 | - catch( \Exception $e ) |
|
62 | + catch (\Exception $e) |
|
63 | 63 | { |
64 | - $error = array( 'order-counthour' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
65 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
66 | - $this->logException( $e ); |
|
64 | + $error = array('order-counthour' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
65 | + $view->errors = $view->get('errors', []) + $error; |
|
66 | + $this->logException($e); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** admin/jqadm/dashboard/order/counthour/template-item |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $tplconf = 'admin/jqadm/dashboard/order/counthour/template-item'; |
89 | 89 | $default = 'dashboard/item-order-counthour-standard'; |
90 | 90 | |
91 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
91 | + return $view->render($view->config($tplconf, $default)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|null $name Name of the sub-client (Default if null) |
100 | 100 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
101 | 101 | */ |
102 | - public function getSubClient( $type, $name = null ) |
|
102 | + public function getSubClient($type, $name = null) |
|
103 | 103 | { |
104 | 104 | /** admin/jqadm/dashboard/order/counthour/decorators/excludes |
105 | 105 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @see admin/jqadm/dashboard/order/counthour/decorators/excludes |
175 | 175 | * @see admin/jqadm/dashboard/order/counthour/decorators/global |
176 | 176 | */ |
177 | - return $this->createSubClient( 'dashboard/order/counthour/' . $type, $name ); |
|
177 | + return $this->createSubClient('dashboard/order/counthour/' . $type, $name); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | |
@@ -218,6 +218,6 @@ discard block |
||
218 | 218 | * @since 2018.01 |
219 | 219 | * @category Developer |
220 | 220 | */ |
221 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/counthour/standard/subparts', [] ); |
|
221 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/counthour/standard/subparts', []); |
|
222 | 222 | } |
223 | 223 | } |
@@ -77,14 +77,12 @@ |
||
77 | 77 | foreach( $this->getSubClients() as $client ) { |
78 | 78 | $view->orderpaymenttypeBody .= $client->search(); |
79 | 79 | } |
80 | - } |
|
81 | - catch( \Aimeos\MShop\Exception $e ) |
|
80 | + } catch( \Aimeos\MShop\Exception $e ) |
|
82 | 81 | { |
83 | 82 | $error = array( 'order-countday' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
84 | 83 | $view->errors = $view->get( 'errors', [] ) + $error; |
85 | 84 | $this->logException( $e ); |
86 | - } |
|
87 | - catch( \Exception $e ) |
|
85 | + } catch( \Exception $e ) |
|
88 | 86 | { |
89 | 87 | $error = array( 'order-countday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
90 | 88 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Dashboard\Order\Countday; |
12 | 12 | |
13 | -sprintf( 'countday' ); // for translation |
|
13 | +sprintf('countday'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -49,21 +49,21 @@ discard block |
||
49 | 49 | { |
50 | 50 | $view->orderpaymenttypeBody = ''; |
51 | 51 | |
52 | - foreach( $this->getSubClients() as $client ) { |
|
52 | + foreach ($this->getSubClients() as $client) { |
|
53 | 53 | $view->orderpaymenttypeBody .= $client->search(); |
54 | 54 | } |
55 | 55 | } |
56 | - catch( \Aimeos\MShop\Exception $e ) |
|
56 | + catch (\Aimeos\MShop\Exception $e) |
|
57 | 57 | { |
58 | - $error = array( 'order-countday' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
59 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
60 | - $this->logException( $e ); |
|
58 | + $error = array('order-countday' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
59 | + $view->errors = $view->get('errors', []) + $error; |
|
60 | + $this->logException($e); |
|
61 | 61 | } |
62 | - catch( \Exception $e ) |
|
62 | + catch (\Exception $e) |
|
63 | 63 | { |
64 | - $error = array( 'order-countday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
65 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
66 | - $this->logException( $e ); |
|
64 | + $error = array('order-countday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
65 | + $view->errors = $view->get('errors', []) + $error; |
|
66 | + $this->logException($e); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** admin/jqadm/dashboard/order/countday/template-item |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $tplconf = 'admin/jqadm/dashboard/order/countday/template-item'; |
89 | 89 | $default = 'dashboard/item-order-countday-standard'; |
90 | 90 | |
91 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
91 | + return $view->render($view->config($tplconf, $default)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|null $name Name of the sub-client (Default if null) |
100 | 100 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
101 | 101 | */ |
102 | - public function getSubClient( $type, $name = null ) |
|
102 | + public function getSubClient($type, $name = null) |
|
103 | 103 | { |
104 | 104 | /** admin/jqadm/dashboard/order/countday/decorators/excludes |
105 | 105 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @see admin/jqadm/dashboard/order/countday/decorators/excludes |
175 | 175 | * @see admin/jqadm/dashboard/order/countday/decorators/global |
176 | 176 | */ |
177 | - return $this->createSubClient( 'dashboard/order/countday/' . $type, $name ); |
|
177 | + return $this->createSubClient('dashboard/order/countday/' . $type, $name); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | |
@@ -218,6 +218,6 @@ discard block |
||
218 | 218 | * @since 2018.01 |
219 | 219 | * @category Developer |
220 | 220 | */ |
221 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/countday/standard/subparts', [] ); |
|
221 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/countday/standard/subparts', []); |
|
222 | 222 | } |
223 | 223 | } |
@@ -77,14 +77,12 @@ |
||
77 | 77 | foreach( $this->getSubClients() as $client ) { |
78 | 78 | $view->orderpaymenttypeBody .= $client->search(); |
79 | 79 | } |
80 | - } |
|
81 | - catch( \Aimeos\MShop\Exception $e ) |
|
80 | + } catch( \Aimeos\MShop\Exception $e ) |
|
82 | 81 | { |
83 | 82 | $error = array( 'order-salesweekday' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
84 | 83 | $view->errors = $view->get( 'errors', [] ) + $error; |
85 | 84 | $this->logException( $e ); |
86 | - } |
|
87 | - catch( \Exception $e ) |
|
85 | + } catch( \Exception $e ) |
|
88 | 86 | { |
89 | 87 | $error = array( 'order-salesweekday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
90 | 88 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Dashboard\Order\Salesweekday; |
12 | 12 | |
13 | -sprintf( 'salesweekday' ); // for translation |
|
13 | +sprintf('salesweekday'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -49,21 +49,21 @@ discard block |
||
49 | 49 | { |
50 | 50 | $view->orderpaymenttypeBody = ''; |
51 | 51 | |
52 | - foreach( $this->getSubClients() as $client ) { |
|
52 | + foreach ($this->getSubClients() as $client) { |
|
53 | 53 | $view->orderpaymenttypeBody .= $client->search(); |
54 | 54 | } |
55 | 55 | } |
56 | - catch( \Aimeos\MShop\Exception $e ) |
|
56 | + catch (\Aimeos\MShop\Exception $e) |
|
57 | 57 | { |
58 | - $error = array( 'order-salesweekday' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
59 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
60 | - $this->logException( $e ); |
|
58 | + $error = array('order-salesweekday' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
59 | + $view->errors = $view->get('errors', []) + $error; |
|
60 | + $this->logException($e); |
|
61 | 61 | } |
62 | - catch( \Exception $e ) |
|
62 | + catch (\Exception $e) |
|
63 | 63 | { |
64 | - $error = array( 'order-salesweekday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
65 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
66 | - $this->logException( $e ); |
|
64 | + $error = array('order-salesweekday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
65 | + $view->errors = $view->get('errors', []) + $error; |
|
66 | + $this->logException($e); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** admin/jqadm/dashboard/order/salesweekday/template-item |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $tplconf = 'admin/jqadm/dashboard/order/salesweekday/template-item'; |
89 | 89 | $default = 'dashboard/item-order-salesweekday-standard'; |
90 | 90 | |
91 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
91 | + return $view->render($view->config($tplconf, $default)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|null $name Name of the sub-client (Default if null) |
100 | 100 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
101 | 101 | */ |
102 | - public function getSubClient( $type, $name = null ) |
|
102 | + public function getSubClient($type, $name = null) |
|
103 | 103 | { |
104 | 104 | /** admin/jqadm/dashboard/order/salesweekday/decorators/excludes |
105 | 105 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @see admin/jqadm/dashboard/order/salesweekday/decorators/excludes |
175 | 175 | * @see admin/jqadm/dashboard/order/salesweekday/decorators/global |
176 | 176 | */ |
177 | - return $this->createSubClient( 'dashboard/order/salesweekday/' . $type, $name ); |
|
177 | + return $this->createSubClient('dashboard/order/salesweekday/' . $type, $name); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | |
@@ -218,6 +218,6 @@ discard block |
||
218 | 218 | * @since 2018.01 |
219 | 219 | * @category Developer |
220 | 220 | */ |
221 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/salesweekday/standard/subparts', [] ); |
|
221 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/salesweekday/standard/subparts', []); |
|
222 | 222 | } |
223 | 223 | } |
@@ -75,14 +75,12 @@ |
||
75 | 75 | foreach( $this->getSubClients() as $client ) { |
76 | 76 | $view->ordersalesdayBody .= $client->search(); |
77 | 77 | } |
78 | - } |
|
79 | - catch( \Aimeos\MShop\Exception $e ) |
|
78 | + } catch( \Aimeos\MShop\Exception $e ) |
|
80 | 79 | { |
81 | 80 | $error = array( 'order-salesday' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
82 | 81 | $view->errors = $view->get( 'errors', [] ) + $error; |
83 | 82 | $this->logException( $e ); |
84 | - } |
|
85 | - catch( \Exception $e ) |
|
83 | + } catch( \Exception $e ) |
|
86 | 84 | { |
87 | 85 | $error = array( 'order-salesday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
88 | 86 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -47,21 +47,21 @@ discard block |
||
47 | 47 | { |
48 | 48 | $view->ordersalesdayBody = ''; |
49 | 49 | |
50 | - foreach( $this->getSubClients() as $client ) { |
|
50 | + foreach ($this->getSubClients() as $client) { |
|
51 | 51 | $view->ordersalesdayBody .= $client->search(); |
52 | 52 | } |
53 | 53 | } |
54 | - catch( \Aimeos\MShop\Exception $e ) |
|
54 | + catch (\Aimeos\MShop\Exception $e) |
|
55 | 55 | { |
56 | - $error = array( 'order-salesday' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
57 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
58 | - $this->logException( $e ); |
|
56 | + $error = array('order-salesday' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
57 | + $view->errors = $view->get('errors', []) + $error; |
|
58 | + $this->logException($e); |
|
59 | 59 | } |
60 | - catch( \Exception $e ) |
|
60 | + catch (\Exception $e) |
|
61 | 61 | { |
62 | - $error = array( 'order-salesday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
63 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
64 | - $this->logException( $e ); |
|
62 | + $error = array('order-salesday' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
63 | + $view->errors = $view->get('errors', []) + $error; |
|
64 | + $this->logException($e); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** admin/jqadm/dashboard/order/salesday/template-item |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $tplconf = 'admin/jqadm/dashboard/order/salesday/template-item'; |
87 | 87 | $default = 'dashboard/item-order-salesday-standard'; |
88 | 88 | |
89 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
89 | + return $view->render($view->config($tplconf, $default)); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param string|null $name Name of the sub-client (Default if null) |
98 | 98 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
99 | 99 | */ |
100 | - public function getSubClient( $type, $name = null ) |
|
100 | + public function getSubClient($type, $name = null) |
|
101 | 101 | { |
102 | 102 | /** admin/jqadm/dashboard/order/salesday/decorators/excludes |
103 | 103 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * @see admin/jqadm/dashboard/order/salesday/decorators/excludes |
173 | 173 | * @see admin/jqadm/dashboard/order/salesday/decorators/global |
174 | 174 | */ |
175 | - return $this->createSubClient( 'dashboard/order/salesday/' . $type, $name ); |
|
175 | + return $this->createSubClient('dashboard/order/salesday/' . $type, $name); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | |
@@ -216,6 +216,6 @@ discard block |
||
216 | 216 | * @since 2018.01 |
217 | 217 | * @category Developer |
218 | 218 | */ |
219 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/salesday/standard/subparts', [] ); |
|
219 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/salesday/standard/subparts', []); |
|
220 | 220 | } |
221 | 221 | } |
@@ -75,14 +75,12 @@ |
||
75 | 75 | foreach( $this->getSubClients() as $client ) { |
76 | 76 | $view->ordersalesmonthBody .= $client->search(); |
77 | 77 | } |
78 | - } |
|
79 | - catch( \Aimeos\MShop\Exception $e ) |
|
78 | + } catch( \Aimeos\MShop\Exception $e ) |
|
80 | 79 | { |
81 | 80 | $error = array( 'order-salesmonth' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
82 | 81 | $view->errors = $view->get( 'errors', [] ) + $error; |
83 | 82 | $this->logException( $e ); |
84 | - } |
|
85 | - catch( \Exception $e ) |
|
83 | + } catch( \Exception $e ) |
|
86 | 84 | { |
87 | 85 | $error = array( 'order-salesmonth' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
88 | 86 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -47,21 +47,21 @@ discard block |
||
47 | 47 | { |
48 | 48 | $view->ordersalesmonthBody = ''; |
49 | 49 | |
50 | - foreach( $this->getSubClients() as $client ) { |
|
50 | + foreach ($this->getSubClients() as $client) { |
|
51 | 51 | $view->ordersalesmonthBody .= $client->search(); |
52 | 52 | } |
53 | 53 | } |
54 | - catch( \Aimeos\MShop\Exception $e ) |
|
54 | + catch (\Aimeos\MShop\Exception $e) |
|
55 | 55 | { |
56 | - $error = array( 'order-salesmonth' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
57 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
58 | - $this->logException( $e ); |
|
56 | + $error = array('order-salesmonth' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
57 | + $view->errors = $view->get('errors', []) + $error; |
|
58 | + $this->logException($e); |
|
59 | 59 | } |
60 | - catch( \Exception $e ) |
|
60 | + catch (\Exception $e) |
|
61 | 61 | { |
62 | - $error = array( 'order-salesmonth' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
63 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
64 | - $this->logException( $e ); |
|
62 | + $error = array('order-salesmonth' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
63 | + $view->errors = $view->get('errors', []) + $error; |
|
64 | + $this->logException($e); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** admin/jqadm/dashboard/order/salesmonth/template-item |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | $tplconf = 'admin/jqadm/dashboard/order/salesmonth/template-item'; |
87 | 87 | $default = 'dashboard/item-order-salesmonth-standard'; |
88 | 88 | |
89 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
89 | + return $view->render($view->config($tplconf, $default)); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param string|null $name Name of the sub-client (Default if null) |
98 | 98 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
99 | 99 | */ |
100 | - public function getSubClient( $type, $name = null ) |
|
100 | + public function getSubClient($type, $name = null) |
|
101 | 101 | { |
102 | 102 | /** admin/jqadm/dashboard/order/salesmonth/decorators/excludes |
103 | 103 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * @see admin/jqadm/dashboard/order/salesmonth/decorators/excludes |
173 | 173 | * @see admin/jqadm/dashboard/order/salesmonth/decorators/global |
174 | 174 | */ |
175 | - return $this->createSubClient( 'dashboard/order/salesmonth/' . $type, $name ); |
|
175 | + return $this->createSubClient('dashboard/order/salesmonth/' . $type, $name); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | |
@@ -216,6 +216,6 @@ discard block |
||
216 | 216 | * @since 2018.01 |
217 | 217 | * @category Developer |
218 | 218 | */ |
219 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/salesmonth/standard/subparts', [] ); |
|
219 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/salesmonth/standard/subparts', []); |
|
220 | 220 | } |
221 | 221 | } |
@@ -77,14 +77,12 @@ |
||
77 | 77 | foreach( $this->getSubClients() as $client ) { |
78 | 78 | $view->orderpaymenttypeBody .= $client->search(); |
79 | 79 | } |
80 | - } |
|
81 | - catch( \Aimeos\MShop\Exception $e ) |
|
80 | + } catch( \Aimeos\MShop\Exception $e ) |
|
82 | 81 | { |
83 | 82 | $error = array( 'order-servicedelivery' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
84 | 83 | $view->errors = $view->get( 'errors', [] ) + $error; |
85 | 84 | $this->logException( $e ); |
86 | - } |
|
87 | - catch( \Exception $e ) |
|
85 | + } catch( \Exception $e ) |
|
88 | 86 | { |
89 | 87 | $error = array( 'order-servicedelivery' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
90 | 88 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Dashboard\Order\Servicedelivery; |
12 | 12 | |
13 | -sprintf( 'servicedelivery' ); // for translation |
|
13 | +sprintf('servicedelivery'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -49,21 +49,21 @@ discard block |
||
49 | 49 | { |
50 | 50 | $view->orderpaymenttypeBody = ''; |
51 | 51 | |
52 | - foreach( $this->getSubClients() as $client ) { |
|
52 | + foreach ($this->getSubClients() as $client) { |
|
53 | 53 | $view->orderpaymenttypeBody .= $client->search(); |
54 | 54 | } |
55 | 55 | } |
56 | - catch( \Aimeos\MShop\Exception $e ) |
|
56 | + catch (\Aimeos\MShop\Exception $e) |
|
57 | 57 | { |
58 | - $error = array( 'order-servicedelivery' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
59 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
60 | - $this->logException( $e ); |
|
58 | + $error = array('order-servicedelivery' => $context->getI18n()->dt('mshop', $e->getMessage())); |
|
59 | + $view->errors = $view->get('errors', []) + $error; |
|
60 | + $this->logException($e); |
|
61 | 61 | } |
62 | - catch( \Exception $e ) |
|
62 | + catch (\Exception $e) |
|
63 | 63 | { |
64 | - $error = array( 'order-servicedelivery' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
65 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
66 | - $this->logException( $e ); |
|
64 | + $error = array('order-servicedelivery' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
65 | + $view->errors = $view->get('errors', []) + $error; |
|
66 | + $this->logException($e); |
|
67 | 67 | } |
68 | 68 | |
69 | 69 | /** admin/jqadm/dashboard/order/servicedelivery/template-item |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $tplconf = 'admin/jqadm/dashboard/order/servicedelivery/template-item'; |
89 | 89 | $default = 'dashboard/item-order-servicedelivery-standard'; |
90 | 90 | |
91 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
91 | + return $view->render($view->config($tplconf, $default)); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * @param string|null $name Name of the sub-client (Default if null) |
100 | 100 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
101 | 101 | */ |
102 | - public function getSubClient( $type, $name = null ) |
|
102 | + public function getSubClient($type, $name = null) |
|
103 | 103 | { |
104 | 104 | /** admin/jqadm/dashboard/order/servicedelivery/decorators/excludes |
105 | 105 | * Excludes decorators added by the "common" option from the dashboard JQAdm client |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @see admin/jqadm/dashboard/order/servicedelivery/decorators/excludes |
175 | 175 | * @see admin/jqadm/dashboard/order/servicedelivery/decorators/global |
176 | 176 | */ |
177 | - return $this->createSubClient( 'dashboard/order/servicedelivery/' . $type, $name ); |
|
177 | + return $this->createSubClient('dashboard/order/servicedelivery/' . $type, $name); |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | |
@@ -218,6 +218,6 @@ discard block |
||
218 | 218 | * @since 2018.01 |
219 | 219 | * @category Developer |
220 | 220 | */ |
221 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/dashboard/order/servicedelivery/standard/subparts', [] ); |
|
221 | + return $this->getContext()->getConfig()->get('admin/jqadm/dashboard/order/servicedelivery/standard/subparts', []); |
|
222 | 222 | } |
223 | 223 | } |
@@ -166,14 +166,12 @@ |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | return; |
169 | - } |
|
170 | - catch( \Aimeos\MShop\Exception $e ) |
|
169 | + } catch( \Aimeos\MShop\Exception $e ) |
|
171 | 170 | { |
172 | 171 | $error = array( 'product-item-characteristic' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
173 | 172 | $view->errors = $view->get( 'errors', [] ) + $error; |
174 | 173 | $this->logException( $e ); |
175 | - } |
|
176 | - catch( \Exception $e ) |
|
174 | + } catch( \Exception $e ) |
|
177 | 175 | { |
178 | 176 | $error = array( 'product-item-characteristic' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
179 | 177 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | |
11 | 11 | namespace Aimeos\Admin\JQAdm\Product\Characteristic; |
12 | 12 | |
13 | -sprintf( 'characteristic' ); // for translation |
|
13 | +sprintf('characteristic'); // for translation |
|
14 | 14 | |
15 | 15 | |
16 | 16 | /** |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | |
47 | 47 | $view->characteristicBody = ''; |
48 | 48 | |
49 | - foreach( $this->getSubClients() as $client ) { |
|
49 | + foreach ($this->getSubClients() as $client) { |
|
50 | 50 | $view->characteristicBody .= $client->copy(); |
51 | 51 | } |
52 | 52 | |
53 | - return $this->render( $view ); |
|
53 | + return $this->render($view); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | |
66 | 66 | $view->characteristicBody = ''; |
67 | 67 | |
68 | - foreach( $this->getSubClients() as $client ) { |
|
68 | + foreach ($this->getSubClients() as $client) { |
|
69 | 69 | $view->characteristicBody .= $client->create(); |
70 | 70 | } |
71 | 71 | |
72 | - return $this->render( $view ); |
|
72 | + return $this->render($view); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | |
85 | 85 | $view->characteristicBody = ''; |
86 | 86 | |
87 | - foreach( $this->getSubClients() as $client ) { |
|
87 | + foreach ($this->getSubClients() as $client) { |
|
88 | 88 | $view->characteristicBody .= $client->get(); |
89 | 89 | } |
90 | 90 | |
91 | - return $this->render( $view ); |
|
91 | + return $this->render($view); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | |
@@ -103,23 +103,23 @@ discard block |
||
103 | 103 | { |
104 | 104 | $view->characteristicBody = ''; |
105 | 105 | |
106 | - foreach( $this->getSubClients() as $client ) { |
|
106 | + foreach ($this->getSubClients() as $client) { |
|
107 | 107 | $view->characteristicBody .= $client->save(); |
108 | 108 | } |
109 | 109 | |
110 | 110 | return; |
111 | 111 | } |
112 | - catch( \Aimeos\MShop\Exception $e ) |
|
112 | + catch (\Aimeos\MShop\Exception $e) |
|
113 | 113 | { |
114 | - $error = array( 'product-item-characteristic' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
|
115 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
116 | - $this->logException( $e ); |
|
114 | + $error = array('product-item-characteristic' => $this->getContext()->getI18n()->dt('mshop', $e->getMessage())); |
|
115 | + $view->errors = $view->get('errors', []) + $error; |
|
116 | + $this->logException($e); |
|
117 | 117 | } |
118 | - catch( \Exception $e ) |
|
118 | + catch (\Exception $e) |
|
119 | 119 | { |
120 | - $error = array( 'product-item-characteristic' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
|
121 | - $view->errors = $view->get( 'errors', [] ) + $error; |
|
122 | - $this->logException( $e ); |
|
120 | + $error = array('product-item-characteristic' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine()); |
|
121 | + $view->errors = $view->get('errors', []) + $error; |
|
122 | + $this->logException($e); |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | throw new \Aimeos\Admin\JQAdm\Exception(); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @param string|null $name Name of the sub-client (Default if null) |
134 | 134 | * @return \Aimeos\Admin\JQAdm\Iface Sub-client object |
135 | 135 | */ |
136 | - public function getSubClient( $type, $name = null ) |
|
136 | + public function getSubClient($type, $name = null) |
|
137 | 137 | { |
138 | 138 | /** admin/jqadm/product/characteristic/decorators/excludes |
139 | 139 | * Excludes decorators added by the "common" option from the product JQAdm client |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | * @see admin/jqadm/product/characteristic/decorators/excludes |
209 | 209 | * @see admin/jqadm/product/characteristic/decorators/global |
210 | 210 | */ |
211 | - return $this->createSubClient( 'product/characteristic/' . $type, $name ); |
|
211 | + return $this->createSubClient('product/characteristic/' . $type, $name); |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | * @since 2016.01 |
253 | 253 | * @category Developer |
254 | 254 | */ |
255 | - return $this->getContext()->getConfig()->get( 'admin/jqadm/product/characteristic/standard/subparts', [] ); |
|
255 | + return $this->getContext()->getConfig()->get('admin/jqadm/product/characteristic/standard/subparts', []); |
|
256 | 256 | } |
257 | 257 | |
258 | 258 | |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * @param \Aimeos\MW\View\Iface $view View object with data assigned |
263 | 263 | * @return string HTML output |
264 | 264 | */ |
265 | - protected function render( \Aimeos\MW\View\Iface $view ) |
|
265 | + protected function render(\Aimeos\MW\View\Iface $view) |
|
266 | 266 | { |
267 | 267 | /** admin/jqadm/product/characteristic/template-item |
268 | 268 | * Relative path to the HTML body template of the characteristic subpart for products. |
@@ -286,6 +286,6 @@ discard block |
||
286 | 286 | $tplconf = 'admin/jqadm/product/characteristic/template-item'; |
287 | 287 | $default = 'product/item-characteristic-standard'; |
288 | 288 | |
289 | - return $view->render( $view->config( $tplconf, $default ) ); |
|
289 | + return $view->render($view->config($tplconf, $default)); |
|
290 | 290 | } |
291 | 291 | } |
292 | 292 | \ No newline at end of file |