@@ -70,8 +70,7 @@ |
||
| 70 | 70 | { |
| 71 | 71 | $this->execute( $stmts['convert'] ); |
| 72 | 72 | $this->status( 'converted' ); |
| 73 | - } |
|
| 74 | - else |
|
| 73 | + } else |
|
| 75 | 74 | { |
| 76 | 75 | $this->status( 'OK' ); |
| 77 | 76 | } |
@@ -109,8 +109,7 @@ |
||
| 109 | 109 | { |
| 110 | 110 | $this->executeList( $stmtList ); |
| 111 | 111 | $this->status( 'added' ); |
| 112 | - } |
|
| 113 | - else |
|
| 112 | + } else |
|
| 114 | 113 | { |
| 115 | 114 | $this->status( 'OK' ); |
| 116 | 115 | } |
@@ -87,8 +87,7 @@ discard block |
||
| 87 | 87 | $migrate = true; |
| 88 | 88 | $this->execute( $stmt ); |
| 89 | 89 | $this->status( 'added' ); |
| 90 | - } |
|
| 91 | - else |
|
| 90 | + } else |
|
| 92 | 91 | { |
| 93 | 92 | $this->status( 'OK' ); |
| 94 | 93 | } |
@@ -131,8 +130,7 @@ discard block |
||
| 131 | 130 | $stmt->execute()->finish(); |
| 132 | 131 | |
| 133 | 132 | $this->status( 'done' ); |
| 134 | - } |
|
| 135 | - else |
|
| 133 | + } else |
|
| 136 | 134 | { |
| 137 | 135 | $this->status( 'OK' ); |
| 138 | 136 | } |
@@ -115,10 +115,14 @@ |
||
| 115 | 115 | $item->setPosition( $dataset['position'] ); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - try { |
|
| 118 | + try |
|
| 119 | + { |
|
| 119 | 120 | $pluginManager->saveItem( $item ); |
| 120 | 121 | $num++; |
| 121 | - } catch( \Exception $e ) {; } // if plugin configuration was already available |
|
| 122 | + } |
|
| 123 | + catch( \Exception $e ) |
|
| 124 | + { |
|
| 125 | +; } // if plugin configuration was already available |
|
| 122 | 126 | } |
| 123 | 127 | |
| 124 | 128 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | $pluginManager = \Aimeos\MShop\Plugin\Manager\Factory::createManager( $this->additional, 'Standard' ); |
| 65 | 65 | |
| 66 | 66 | |
| 67 | - $filename = __DIR__ . $ds . 'default' . $ds . 'data' . $ds . 'plugin.php'; |
|
| 67 | + $filename = __DIR__.$ds.'default'.$ds.'data'.$ds.'plugin.php'; |
|
| 68 | 68 | |
| 69 | 69 | if( ( $data = include( $filename ) ) == false ) { |
| 70 | 70 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'No data file "%1$s" found', $filename ) ); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $manager = $pluginManager->getSubManager( 'type' ); |
| 91 | 91 | |
| 92 | 92 | foreach( $manager->searchItems( $manager->createSearch() ) as $item ) { |
| 93 | - $types['plugin/' . $item->getCode()] = $item; |
|
| 93 | + $types['plugin/'.$item->getCode()] = $item; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $num = $total = 0; |
@@ -121,6 +121,6 @@ discard block |
||
| 121 | 121 | } catch( \Exception $e ) {; } // if plugin configuration was already available |
| 122 | 122 | } |
| 123 | 123 | |
| 124 | - $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
|
| 124 | + $this->status( $num > 0 ? $num.'/'.$total : 'OK' ); |
|
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | \ No newline at end of file |
@@ -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 | } |
@@ -80,8 +80,7 @@ |
||
| 80 | 80 | { |
| 81 | 81 | $this->execute( $list['update'] ); |
| 82 | 82 | $this->status( 'migrated' ); |
| 83 | - } |
|
| 84 | - else |
|
| 83 | + } else |
|
| 85 | 84 | { |
| 86 | 85 | $this->status( 'OK' ); |
| 87 | 86 | } |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | { |
| 68 | 68 | $this->executeList( $stmts ); |
| 69 | 69 | $this->status( 'renamed' ); |
| 70 | - } |
|
| 71 | - else |
|
| 70 | + } else |
|
| 72 | 71 | { |
| 73 | 72 | $this->status( 'OK' ); |
| 74 | 73 | } |
@@ -779,8 +779,7 @@ |
||
| 779 | 779 | { |
| 780 | 780 | $this->executeList( $stmtList ); |
| 781 | 781 | $this->status( 'added' ); |
| 782 | - } |
|
| 783 | - else |
|
| 782 | + } else |
|
| 784 | 783 | { |
| 785 | 784 | $this->status( 'OK' ); |
| 786 | 785 | } |
@@ -80,8 +80,7 @@ |
||
| 80 | 80 | { |
| 81 | 81 | $this->executeList( $stmts ); |
| 82 | 82 | $this->status( 'done' ); |
| 83 | - } |
|
| 84 | - else |
|
| 83 | + } else |
|
| 85 | 84 | { |
| 86 | 85 | $this->status( 'OK' ); |
| 87 | 86 | } |