@@ -70,8 +70,7 @@ discard block |
||
70 | 70 | ) { |
71 | 71 | $this->execute( $this->stmts['constraint'], 'db-product' ); |
72 | 72 | $this->status( 'done' ); |
73 | - } |
|
74 | - else |
|
73 | + } else |
|
75 | 74 | { |
76 | 75 | $this->status( 'OK' ); |
77 | 76 | } |
@@ -84,8 +83,7 @@ discard block |
||
84 | 83 | ) { |
85 | 84 | $this->execute( $this->stmts['constraint2'], 'db-product' ); |
86 | 85 | $this->status( 'done' ); |
87 | - } |
|
88 | - else |
|
86 | + } else |
|
89 | 87 | { |
90 | 88 | $this->status( 'OK' ); |
91 | 89 | } |
@@ -98,8 +96,7 @@ discard block |
||
98 | 96 | ) { |
99 | 97 | $this->execute( $this->stmts['typeid'], 'db-product' ); |
100 | 98 | $this->status( 'done' ); |
101 | - } |
|
102 | - else |
|
99 | + } else |
|
103 | 100 | { |
104 | 101 | $this->status( 'OK' ); |
105 | 102 | } |
@@ -111,8 +108,7 @@ discard block |
||
111 | 108 | { |
112 | 109 | $this->execute( $this->stmts['table'], 'db-product' ); |
113 | 110 | $this->status( 'done' ); |
114 | - } |
|
115 | - else |
|
111 | + } else |
|
116 | 112 | { |
117 | 113 | $this->status( 'OK' ); |
118 | 114 | } |
@@ -171,8 +171,7 @@ discard block |
||
171 | 171 | $quantity = $item->getQuantity(); |
172 | 172 | $item = $this->products[$pos]; |
173 | 173 | $item->setQuantity( $item->getQuantity() + $quantity ); |
174 | - } |
|
175 | - else if( $position !== null ) |
|
174 | + } else if( $position !== null ) |
|
176 | 175 | { |
177 | 176 | if( isset( $this->products[$position] ) ) |
178 | 177 | { |
@@ -189,13 +188,11 @@ discard block |
||
189 | 188 | |
190 | 189 | $products[$position] = $item; |
191 | 190 | $this->products = $products; |
192 | - } |
|
193 | - else |
|
191 | + } else |
|
194 | 192 | { |
195 | 193 | $this->products[$position] = $item; |
196 | 194 | } |
197 | - } |
|
198 | - else |
|
195 | + } else |
|
199 | 196 | { |
200 | 197 | $this->products[] = $item; |
201 | 198 | } |
@@ -225,8 +222,7 @@ discard block |
||
225 | 222 | { |
226 | 223 | $this->products[$pos] = $item; |
227 | 224 | $this->setModified(); |
228 | - } |
|
229 | - else |
|
225 | + } else |
|
230 | 226 | { |
231 | 227 | $this->products[$pos] = $item; |
232 | 228 | } |
@@ -81,8 +81,7 @@ |
||
81 | 81 | { |
82 | 82 | $couponProvider = $couponManager->getProvider( $couponItem, $code ); |
83 | 83 | $couponProvider->updateCoupon( $order ); |
84 | - } |
|
85 | - else |
|
84 | + } else |
|
86 | 85 | { |
87 | 86 | $notAvailable[$code] = 'coupon.gone'; |
88 | 87 | } |
@@ -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' ); |
@@ -45,7 +45,9 @@ discard block |
||
45 | 45 | |
46 | 46 | public function testStart() |
47 | 47 | { |
48 | - $fcn = function() {}; |
|
48 | + $fcn = function() |
|
49 | + { |
|
50 | +}; |
|
49 | 51 | |
50 | 52 | $this->stub->expects( $this->once() )->method( 'isAvailable' ) |
51 | 53 | ->will( $this->returnValue( true ) ); |
@@ -58,7 +60,9 @@ discard block |
||
58 | 60 | |
59 | 61 | public function testStartNotAvailable() |
60 | 62 | { |
61 | - $fcn = function() {}; |
|
63 | + $fcn = function() |
|
64 | + { |
|
65 | +}; |
|
62 | 66 | |
63 | 67 | $this->stub->expects( $this->once() )->method( 'isAvailable' ) |
64 | 68 | ->will( $this->returnValue( false ) ); |
@@ -71,7 +75,9 @@ discard block |
||
71 | 75 | |
72 | 76 | public function testWait() |
73 | 77 | { |
74 | - $fcn = function() {}; |
|
78 | + $fcn = function() |
|
79 | + { |
|
80 | +}; |
|
75 | 81 | |
76 | 82 | $this->stub->expects( $this->once() )->method( 'isAvailable' ) |
77 | 83 | ->will( $this->returnValue( true ) ); |
@@ -84,7 +90,9 @@ discard block |
||
84 | 90 | |
85 | 91 | public function testWaitNotAvailable() |
86 | 92 | { |
87 | - $fcn = function() {}; |
|
93 | + $fcn = function() |
|
94 | + { |
|
95 | +}; |
|
88 | 96 | |
89 | 97 | $this->stub->expects( $this->once() )->method( 'isAvailable' ) |
90 | 98 | ->will( $this->returnValue( false ) ); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * Returns the message queue manager object. |
163 | 163 | * |
164 | 164 | * @return \Aimeos\MW\MQueue\Manager\Iface Message queue manager object |
165 | - */ |
|
165 | + */ |
|
166 | 166 | public function getMessageQueueManager(); |
167 | 167 | |
168 | 168 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * Returns the process object. |
187 | 187 | * |
188 | 188 | * @return \Aimeos\MW\Process\Iface Process object |
189 | - */ |
|
189 | + */ |
|
190 | 190 | public function getProcess(); |
191 | 191 | |
192 | 192 | /** |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * Returns the session object. |
202 | 202 | * |
203 | 203 | * @return \Aimeos\MW\Session\Iface Session object |
204 | - */ |
|
204 | + */ |
|
205 | 205 | public function getSession(); |
206 | 206 | |
207 | 207 | /** |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | * Returns the message queue manager object. |
376 | 376 | * |
377 | 377 | * @return \Aimeos\MW\MQueue\Manager\Iface Message queue manager object |
378 | - */ |
|
378 | + */ |
|
379 | 379 | public function getMessageQueueManager() |
380 | 380 | { |
381 | 381 | if( !isset( $this->mqueue ) ) { |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | * @param string $resource Resource name, e.g. "mq-email" |
393 | 393 | * @apram string $queue Message queue name, e.g. "order/email/payment" |
394 | 394 | * @return \Aimeos\MW\Queue\Manager\Iface Message queue object |
395 | - */ |
|
395 | + */ |
|
396 | 396 | public function getMessageQueue( $resource, $queue ) |
397 | 397 | { |
398 | 398 | if( !isset( $this->mqueue ) ) { |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | * Returns the process object. |
422 | 422 | * |
423 | 423 | * @return \Aimeos\MW\Process\Iface Process object |
424 | - */ |
|
424 | + */ |
|
425 | 425 | public function getProcess() |
426 | 426 | { |
427 | 427 | if( !isset( $this->process ) ) { |