@@ -110,9 +110,12 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function createItem( $type = null, $domain = null, array $values = [] ) |
112 | 112 | { |
113 | - try { |
|
113 | + try |
|
114 | + { |
|
114 | 115 | $values['locale.currency.siteid'] = $this->getContext()->getLocale()->getSiteId(); |
115 | - } catch( \Exception $e ) { |
|
116 | + } |
|
117 | + catch( \Exception $e ) |
|
118 | + { |
|
116 | 119 | $values['locale.currency.siteid'] = null; |
117 | 120 | } |
118 | 121 | |
@@ -182,8 +185,7 @@ discard block |
||
182 | 185 | * @see mshop/locale/manager/currency/standard/count/ansi |
183 | 186 | */ |
184 | 187 | $path = 'mshop/locale/manager/currency/standard/insert'; |
185 | - } |
|
186 | - else |
|
188 | + } else |
|
187 | 189 | { |
188 | 190 | /** mshop/locale/manager/currency/standard/update/mysql |
189 | 191 | * Updates an existing currency record in the database |
@@ -110,9 +110,12 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function createItem( $type = null, $domain = null, array $values = [] ) |
112 | 112 | { |
113 | - try { |
|
113 | + try |
|
114 | + { |
|
114 | 115 | $values['locale.language.siteid'] = $this->getContext()->getLocale()->getSiteId(); |
115 | - } catch( \Exception $ex ) { |
|
116 | + } |
|
117 | + catch( \Exception $ex ) |
|
118 | + { |
|
116 | 119 | $values['locale.language.siteid'] = null; |
117 | 120 | } |
118 | 121 | |
@@ -179,8 +182,7 @@ discard block |
||
179 | 182 | * @see mshop/locale/manager/language/standard/count/ansi |
180 | 183 | */ |
181 | 184 | $path = 'mshop/locale/manager/language/standard/insert'; |
182 | - } |
|
183 | - else |
|
185 | + } else |
|
184 | 186 | { |
185 | 187 | /** mshop/locale/manager/language/standard/update/mysql |
186 | 188 | * Updates an existing language record in the database |
@@ -317,8 +317,7 @@ |
||
317 | 317 | * @see mshop/locale/manager/standard/count/ansi |
318 | 318 | */ |
319 | 319 | $path = 'mshop/locale/manager/standard/insert'; |
320 | - } |
|
321 | - else |
|
320 | + } else |
|
322 | 321 | { |
323 | 322 | /** mshop/locale/manager/standard/update/mysql |
324 | 323 | * Updates an existing locale record in the database |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'media/property/type' => array( |
10 | 10 | 'media/property/type/size' => array( 'domain' => 'media', 'code' => 'size', 'label' => 'Size', 'status' => 1 ), |
11 | 11 | 'media/property/type/mtime' => array( 'domain' => 'media', 'code' => 'mtime', 'label' => 'Modification time', 'status' => 1 ), |
@@ -5,7 +5,7 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2017-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
8 | +return array( |
|
9 | 9 | 'attribute/property/type' => array( |
10 | 10 | 'attribute/property/type/size' => array( 'domain' => 'attribute', 'code' => 'size', 'label' => 'Size', 'position' => 0, 'status' => 1 ), |
11 | 11 | 'attribute/property/type/mtime' => array( 'domain' => 'attribute', 'code' => 'mtime', 'label' => 'Modification time', 'position' => 1, 'status' => 1 ), |
@@ -5,15 +5,15 @@ |
||
5 | 5 | * @copyright Aimeos (aimeos.org), 2015-2018 |
6 | 6 | */ |
7 | 7 | |
8 | -return array ( |
|
9 | - 'supplier/lists/type' => array ( |
|
8 | +return array( |
|
9 | + 'supplier/lists/type' => array( |
|
10 | 10 | 'attribute/default' => array( 'domain' => 'attribute', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
11 | 11 | 'media/default' => array( 'domain' => 'media', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
12 | 12 | 'product/default' => array( 'domain' => 'product', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
13 | 13 | 'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
14 | 14 | ), |
15 | 15 | |
16 | - 'supplier/lists' => array ( |
|
16 | + 'supplier/lists' => array( |
|
17 | 17 | array( 'parentid' => 'supplier/unitCode001', 'typeid' => 'product/default', 'domain' => 'product', 'refid' => 'product/CNC', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 1, 'status' => 1 ), |
18 | 18 | array( 'parentid' => 'supplier/unitCode001', 'typeid' => 'product/default', 'domain' => 'product', 'refid' => 'product/CNE', 'start' => '2010-01-01 00:00:00', 'end' => null, 'config' => [], 'pos' => 2, 'status' => 1 ), |
19 | 19 |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | * @copyright Aimeos (aimeos.org), 2015-2018 |
7 | 7 | */ |
8 | 8 | |
9 | -return array ( |
|
10 | - 'text/type' => array ( |
|
9 | +return array( |
|
10 | + 'text/type' => array( |
|
11 | 11 | 'attribute/name' => array( 'domain' => 'attribute', 'code' => 'name', 'label' => 'Name', 'status' => 1 ), |
12 | 12 | 'attribute/short' => array( 'domain' => 'attribute', 'code' => 'short', 'label' => 'Short description', 'status' => 1 ), |
13 | 13 | 'attribute/long' => array( 'domain' => 'attribute', 'code' => 'long', 'label' => 'Long description', 'status' => 1 ), |
@@ -48,13 +48,13 @@ discard block |
||
48 | 48 | 'supplier/long' => array( 'domain' => 'supplier', 'code' => 'long', 'label' => 'Long description', 'status' => 1 ), |
49 | 49 | ), |
50 | 50 | |
51 | - 'text' => array ( |
|
51 | + 'text' => array( |
|
52 | 52 | |
53 | - 'text/customer/information' => array( 'langid' => null, 'typeid' => 'customer/information', 'domain' => 'customer', 'label' => 'customer/information', 'content' => 'Customer information', 'status' => 1), |
|
54 | - 'text/customer/notify' => array( 'langid' => null, 'typeid' => 'customer/notify', 'domain' => 'customer', 'label' => 'customer/notify', 'content' => 'Customer notify', 'status' => 1), |
|
55 | - 'text/customer/newsletter' => array( 'langid' => null, 'typeid' => 'customer/newsletter', 'domain' => 'customer', 'label' => 'customer/newsletter', 'content' => 'Customer newsletter', 'status' => 1), |
|
53 | + 'text/customer/information' => array( 'langid' => null, 'typeid' => 'customer/information', 'domain' => 'customer', 'label' => 'customer/information', 'content' => 'Customer information', 'status' => 1 ), |
|
54 | + 'text/customer/notify' => array( 'langid' => null, 'typeid' => 'customer/notify', 'domain' => 'customer', 'label' => 'customer/notify', 'content' => 'Customer notify', 'status' => 1 ), |
|
55 | + 'text/customer/newsletter' => array( 'langid' => null, 'typeid' => 'customer/newsletter', 'domain' => 'customer', 'label' => 'customer/newsletter', 'content' => 'Customer newsletter', 'status' => 1 ), |
|
56 | 56 | //supplier |
57 | - 'text/supplier/description' => array( 'langid' => null, 'typeid' => 'supplier/description', 'domain' => 'supplier', 'label' => 'supplier/description', 'content' => 'Supplier description', 'status' => 1), |
|
57 | + 'text/supplier/description' => array( 'langid' => null, 'typeid' => 'supplier/description', 'domain' => 'supplier', 'label' => 'supplier/description', 'content' => 'Supplier description', 'status' => 1 ), |
|
58 | 58 | //ATTR |
59 | 59 | //size |
60 | 60 | 'text/size/XS' => array( 'langid' => null, 'typeid' => 'attribute/name', 'domain' => 'attribute', 'label' => 'size/XS', 'content' => 'XS', 'status' => 1 ), |
@@ -27,7 +27,8 @@ discard block |
||
27 | 27 | |
28 | 28 | public function test() |
29 | 29 | { |
30 | - try { |
|
30 | + try |
|
31 | + { |
|
31 | 32 | throw new \Aimeos\MShop\Plugin\Provider\Exception( 'msg', 13, null, $this->codes ); |
32 | 33 | } |
33 | 34 | catch( \Aimeos\MShop\Plugin\Provider\Exception $mppe ) |
@@ -38,7 +39,8 @@ discard block |
||
38 | 39 | |
39 | 40 | } |
40 | 41 | |
41 | - try { |
|
42 | + try |
|
43 | + { |
|
42 | 44 | throw new \Aimeos\MShop\Plugin\Provider\Exception( 'msg2', 11 ); |
43 | 45 | } |
44 | 46 | catch( \Aimeos\MShop\Plugin\Provider\Exception $e ) |
@@ -137,8 +137,7 @@ |
||
137 | 137 | foreach( $cond->getExpressions() as $expr ) { |
138 | 138 | $list = array_merge( $list, $this->getProductCodes( $expr ) ); |
139 | 139 | } |
140 | - } |
|
141 | - elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) |
|
140 | + } elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface ) |
|
142 | 141 | { |
143 | 142 | if( $cond->getName() === 'stock.productcode' && $cond->getOperator() === '==' ) { |
144 | 143 | $list = array_merge( $list, (array) $cond->getValue() ); |