@@ -89,8 +89,7 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $this->status( 'added' ); |
| 92 | - } |
|
| 93 | - else |
|
| 92 | + } else |
|
| 94 | 93 | { |
| 95 | 94 | $this->status( 'removed' ); |
| 96 | 95 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $this->saveCustomerItems( $data ); |
| 76 | 76 | |
| 77 | 77 | $this->status( 'added' ); |
| 78 | - } |
|
| 79 | - else |
|
| 78 | + } else |
|
| 80 | 79 | { |
| 81 | 80 | $this->status( 'removed' ); |
| 82 | 81 | } |
@@ -65,15 +65,13 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $options[$name] = (array) $options[$name]; |
| 67 | 67 | $options[$name][] = substr( $option, $pos + 1 ); |
| 68 | - } |
|
| 69 | - else |
|
| 68 | + } else |
|
| 70 | 69 | { |
| 71 | 70 | $options[$name] = substr( $option, $pos + 1 ); |
| 72 | 71 | } |
| 73 | 72 | |
| 74 | 73 | unset( $params[$key] ); |
| 75 | - } |
|
| 76 | - else |
|
| 74 | + } else |
|
| 77 | 75 | { |
| 78 | 76 | printf( "Invalid option \"%1\$s\"\n", $option ); |
| 79 | 77 | usage(); |
@@ -201,8 +201,7 @@ discard block |
||
| 201 | 201 | if( $level === \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE ) { |
| 202 | 202 | return $node; |
| 203 | 203 | } |
| 204 | - } |
|
| 205 | - else |
|
| 204 | + } else |
|
| 206 | 205 | { |
| 207 | 206 | $node = $this->getNodeById( $id ); |
| 208 | 207 | |
@@ -276,15 +275,13 @@ discard block |
||
| 276 | 275 | $node->left = $refNode->left; |
| 277 | 276 | $node->right = $refNode->left + 1; |
| 278 | 277 | $node->level = $refNode->level; |
| 279 | - } |
|
| 280 | - else if( $parentId !== null ) |
|
| 278 | + } else if( $parentId !== null ) |
|
| 281 | 279 | { |
| 282 | 280 | $parentNode = $this->getNode( $parentId, \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE ); |
| 283 | 281 | $node->left = $parentNode->right; |
| 284 | 282 | $node->right = $parentNode->right + 1; |
| 285 | 283 | $node->level = $parentNode->level + 1; |
| 286 | - } |
|
| 287 | - else |
|
| 284 | + } else |
|
| 288 | 285 | { |
| 289 | 286 | $node->left = 1; |
| 290 | 287 | $node->right = 2; |
@@ -375,8 +372,7 @@ discard block |
||
| 375 | 372 | $moveNodeRightBegin = $node->left + $diff + 1; |
| 376 | 373 | $moveNodeRightEnd = $node->right + $diff; |
| 377 | 374 | $movesize = $refNode->left - $node->left - $diff; |
| 378 | - } |
|
| 379 | - else |
|
| 375 | + } else |
|
| 380 | 376 | { |
| 381 | 377 | $moveNodeLeftBegin = $node->left; |
| 382 | 378 | $moveNodeLeftEnd = $node->right - 1; |
@@ -387,8 +383,7 @@ discard block |
||
| 387 | 383 | |
| 388 | 384 | $closeNodeLeftBegin = $node->left + $diff; |
| 389 | 385 | $closeNodeRightBegin = $node->left + $diff; |
| 390 | - } |
|
| 391 | - else |
|
| 386 | + } else |
|
| 392 | 387 | { |
| 393 | 388 | $refNode = $this->getNode( $newParentId, \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE ); |
| 394 | 389 | |
@@ -414,8 +409,7 @@ discard block |
||
| 414 | 409 | $moveNodeRightBegin = $node->left + $diff + 1; |
| 415 | 410 | $moveNodeRightEnd = $node->right + $diff; |
| 416 | 411 | $movesize = $refNode->right - $node->left - $diff; |
| 417 | - } |
|
| 418 | - else |
|
| 412 | + } else |
|
| 419 | 413 | { |
| 420 | 414 | $moveNodeLeftBegin = $node->left; |
| 421 | 415 | $moveNodeLeftEnd = $node->right - 1; |
@@ -88,7 +88,8 @@ |
||
| 88 | 88 | return array_pop( $this->connections[$name] ); |
| 89 | 89 | |
| 90 | 90 | } |
| 91 | - catch( \Exception $e ) { |
|
| 91 | + catch( \Exception $e ) |
|
| 92 | + { |
|
| 92 | 93 | throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode() ); |
| 93 | 94 | } |
| 94 | 95 | } |
@@ -60,8 +60,7 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $this->execute( $this->sql ); |
| 62 | 62 | $this->status( 'done' ); |
| 63 | - } |
|
| 64 | - else |
|
| 63 | + } else |
|
| 65 | 64 | { |
| 66 | 65 | $this->status( 'OK' ); |
| 67 | 66 | } |
@@ -52,8 +52,7 @@ |
||
| 52 | 52 | { |
| 53 | 53 | $this->execute( $this->stmt, 'db-product' ); |
| 54 | 54 | $this->status( 'done' ); |
| 55 | - } |
|
| 56 | - else |
|
| 55 | + } else |
|
| 57 | 56 | { |
| 58 | 57 | $this->status( 'OK' ); |
| 59 | 58 | } |
@@ -81,8 +81,7 @@ |
||
| 81 | 81 | } else { |
| 82 | 82 | $this->status( 'OK' ); |
| 83 | 83 | } |
| 84 | - } |
|
| 85 | - else |
|
| 84 | + } else |
|
| 86 | 85 | { |
| 87 | 86 | $this->status( 'OK' ); |
| 88 | 87 | } |
@@ -89,8 +89,7 @@ |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | $this->status( 'added' ); |
| 92 | - } |
|
| 93 | - else |
|
| 92 | + } else |
|
| 94 | 93 | { |
| 95 | 94 | $this->status( 'removed' ); |
| 96 | 95 | } |