@@ -72,7 +72,9 @@ |
||
72 | 72 | $manager->saveItem( $item ); |
73 | 73 | $num++; |
74 | 74 | } |
75 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
75 | + catch( \Exception $e ) |
|
76 | + { |
|
77 | +; } // if attribute was already available |
|
76 | 78 | } |
77 | 79 | |
78 | 80 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $manager->saveItem( $item ); |
70 | 70 | $num++; |
71 | 71 | } |
72 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
72 | + catch( \Exception $e ) {; } // if attribute was already available |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -103,8 +103,7 @@ |
||
103 | 103 | |
104 | 104 | $attrManager->saveItem( $item ); |
105 | 105 | $id = $item->getId(); |
106 | - } |
|
107 | - else |
|
106 | + } else |
|
108 | 107 | { |
109 | 108 | $id = $attrItem->getId(); |
110 | 109 | } |
@@ -240,9 +240,13 @@ |
||
240 | 240 | $localeItem->setPosition( $dataset['pos'] ); |
241 | 241 | $localeItem->setStatus( $dataset['status'] ); |
242 | 242 | |
243 | - try { |
|
243 | + try |
|
244 | + { |
|
244 | 245 | $localeItemManager->saveItem( $localeItem ); |
245 | - } catch( \Exception $e ) {; } // if locale combination was already available |
|
246 | + } |
|
247 | + catch( \Exception $e ) |
|
248 | + { |
|
249 | +; } // if locale combination was already available |
|
246 | 250 | } |
247 | 251 | |
248 | 252 | $this->status( 'done' ); |
@@ -385,8 +385,7 @@ discard block |
||
385 | 385 | $attributes[$attribute->getParentId()][] = $attribute; |
386 | 386 | $attribute->setParentId( null ); |
387 | 387 | $attribute->setId( null ); |
388 | - } |
|
389 | - else |
|
388 | + } else |
|
390 | 389 | { |
391 | 390 | $attributes[$attribute->getParentId()][$id] = $attribute; |
392 | 391 | } |
@@ -405,8 +404,7 @@ discard block |
||
405 | 404 | $map[$item->getBaseId()][$item->getPosition()] = $item; |
406 | 405 | |
407 | 406 | $subProducts = []; |
408 | - } |
|
409 | - else |
|
407 | + } else |
|
410 | 408 | { // in case it's a sub-product |
411 | 409 | $subProducts[$item->getPosition()] = $item; |
412 | 410 | } |
@@ -81,7 +81,9 @@ |
||
81 | 81 | $feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln; |
82 | 82 | } |
83 | 83 | } |
84 | - catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available |
|
84 | + catch( \Aimeos\MShop\Order\Exception $e ) |
|
85 | + { |
|
86 | +; } // If address isn't available |
|
85 | 87 | |
86 | 88 | return $this->getConfigItems( $feconfig ); |
87 | 89 | } |
@@ -81,7 +81,7 @@ |
||
81 | 81 | $feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln; |
82 | 82 | } |
83 | 83 | } |
84 | - catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available |
|
84 | + catch( \Aimeos\MShop\Order\Exception $e ) {; } // If address isn't available |
|
85 | 85 | |
86 | 86 | return $this->getConfigItems( $feconfig ); |
87 | 87 | } |
@@ -98,8 +98,7 @@ |
||
98 | 98 | foreach( $products as $prodItem ) { // calculate bundled products |
99 | 99 | $sum += $qty * $prodItem->getQuantity(); |
100 | 100 | } |
101 | - } |
|
102 | - else |
|
101 | + } else |
|
103 | 102 | { |
104 | 103 | $sum += $qty; |
105 | 104 | } |
@@ -74,8 +74,7 @@ |
||
74 | 74 | $this->saveItems( $data ); |
75 | 75 | |
76 | 76 | $this->status( 'added' ); |
77 | - } |
|
78 | - else |
|
77 | + } else |
|
79 | 78 | { |
80 | 79 | $this->status( 'removed' ); |
81 | 80 | } |
@@ -76,8 +76,7 @@ |
||
76 | 76 | $this->release( $conn ); |
77 | 77 | |
78 | 78 | $this->status( 'done' ); |
79 | - } |
|
80 | - else |
|
79 | + } else |
|
81 | 80 | { |
82 | 81 | $this->status( 'OK' ); |
83 | 82 | } |
@@ -200,16 +200,13 @@ |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | return \Aimeos\MW\DB\Statement\Base::PARAM_STR; |
203 | - } |
|
204 | - elseif( strpos( $item, '.' ) !== false ) |
|
203 | + } elseif( strpos( $item, '.' ) !== false ) |
|
205 | 204 | { |
206 | 205 | return \Aimeos\MW\DB\Statement\Base::PARAM_FLOAT; |
207 | - } |
|
208 | - elseif( ctype_digit( $item ) !== false ) |
|
206 | + } elseif( ctype_digit( $item ) !== false ) |
|
209 | 207 | { |
210 | 208 | return \Aimeos\MW\DB\Statement\Base::PARAM_INT; |
211 | - } |
|
212 | - elseif( $item === 'null' ) |
|
209 | + } elseif( $item === 'null' ) |
|
213 | 210 | { |
214 | 211 | return \Aimeos\MW\DB\Statement\Base::PARAM_NULL; |
215 | 212 | } |