@@ -383,8 +383,7 @@ |
||
383 | 383 | */ |
384 | 384 | $path = 'mshop/attribute/manager/standard/insert'; |
385 | 385 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
386 | - } |
|
387 | - else |
|
386 | + } else |
|
388 | 387 | { |
389 | 388 | /** mshop/attribute/manager/standard/update/mysql |
390 | 389 | * Updates an existing attribute record in the database |
@@ -281,8 +281,7 @@ |
||
281 | 281 | */ |
282 | 282 | $path = 'mshop/coupon/manager/standard/insert'; |
283 | 283 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
284 | - } |
|
285 | - else |
|
284 | + } else |
|
286 | 285 | { |
287 | 286 | /** mshop/coupon/manager/standard/update/mysql |
288 | 287 | * Updates an existing coupon record in the database |
@@ -422,8 +422,7 @@ |
||
422 | 422 | */ |
423 | 423 | $path = 'mshop/coupon/manager/code/standard/insert'; |
424 | 424 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
425 | - } |
|
426 | - else |
|
425 | + } else |
|
427 | 426 | { |
428 | 427 | /** mshop/coupon/manager/code/standard/update/mysql |
429 | 428 | * Updates an existing coupon code record in the database |
@@ -221,8 +221,7 @@ |
||
221 | 221 | */ |
222 | 222 | $path = 'madmin/job/manager/standard/insert'; |
223 | 223 | $sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) ); |
224 | - } |
|
225 | - else |
|
224 | + } else |
|
226 | 225 | { |
227 | 226 | /** madmin/job/manager/standard/update/mysql |
228 | 227 | * Updates an existing job record in the database |
@@ -155,8 +155,7 @@ |
||
155 | 155 | $files[] = $entry->getPathname(); |
156 | 156 | } |
157 | 157 | } |
158 | - } |
|
159 | - else |
|
158 | + } else |
|
160 | 159 | { |
161 | 160 | $files[] = $location; |
162 | 161 | } |
@@ -79,8 +79,7 @@ discard block |
||
79 | 79 | for( $i = 0; $i < $numCatPerLevel; $i++ ) { |
80 | 80 | $treeFcn( $parents, $catItem->getId(), $numCatPerLevel, $level - 1, $catLabel . '-' . ( $i + 1 ), $i ); |
81 | 81 | } |
82 | - } |
|
83 | - else |
|
82 | + } else |
|
84 | 83 | { |
85 | 84 | $fcn = function( array $parents, $catLabel ) { |
86 | 85 | |
@@ -139,9 +138,12 @@ discard block |
||
139 | 138 | |
140 | 139 | while( true ) |
141 | 140 | { |
142 | - try { |
|
141 | + try |
|
142 | + { |
|
143 | 143 | return $catalogManager->insertItem( $item, $parentId ); |
144 | - } catch( \Aimeos\MW\DB\Exception $e ) { |
|
144 | + } |
|
145 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
146 | + { |
|
145 | 147 | if( $e->getCode() !== 40001 ) { throw $e; } // transaction deadlock |
146 | 148 | } |
147 | 149 | } |
@@ -75,7 +75,9 @@ discard block |
||
75 | 75 | } |
76 | 76 | } |
77 | 77 | } |
78 | - catch( \Exception $e ) {; } // no translation found |
|
78 | + catch( \Exception $e ) |
|
79 | + { |
|
80 | +; } // no translation found |
|
79 | 81 | |
80 | 82 | return (string) $string; |
81 | 83 | } |
@@ -104,7 +106,9 @@ discard block |
||
104 | 106 | } |
105 | 107 | } |
106 | 108 | } |
107 | - catch( \Exception $e ) {; } // no translation found |
|
109 | + catch( \Exception $e ) |
|
110 | + { |
|
111 | +; } // no translation found |
|
108 | 112 | |
109 | 113 | if( $index > 0 ) { |
110 | 114 | return (string) $plural; |
@@ -93,8 +93,7 @@ |
||
93 | 93 | if( isset( $this->negCache[$name] ) ) { |
94 | 94 | unset( $this->negCache[$name] ); |
95 | 95 | } |
96 | - } |
|
97 | - else |
|
96 | + } else |
|
98 | 97 | { |
99 | 98 | $this->negCache[$name] = true; |
100 | 99 | } |
@@ -49,8 +49,7 @@ |
||
49 | 49 | ) { |
50 | 50 | $this->execute( 'DELETE FROM "mshop_index_price"' ); |
51 | 51 | $this->status( 'done' ); |
52 | - } |
|
53 | - else |
|
52 | + } else |
|
54 | 53 | { |
55 | 54 | $this->status( 'OK' ); |
56 | 55 | } |