@@ -136,8 +136,7 @@ |
||
| 136 | 136 | $subList = self::createControllers( $it, $context, $aimeos, $pref ); |
| 137 | 137 | |
| 138 | 138 | $list = array_merge( $list, $subList ); |
| 139 | - } |
|
| 140 | - else if( $prefix !== '' && $entry->getType() === 'file' |
|
| 139 | + } else if( $prefix !== '' && $entry->getType() === 'file' |
|
| 141 | 140 | && ( $name = $entry->getBaseName( '.php' ) ) === 'Factory' ) |
| 142 | 141 | { |
| 143 | 142 | $list[$prefix] = self::createController( $context, $aimeos, $prefix ); |
@@ -72,8 +72,7 @@ |
||
| 72 | 72 | { |
| 73 | 73 | $this->executeList( $stmts ); |
| 74 | 74 | $this->status( 'migrated' ); |
| 75 | - } |
|
| 76 | - else |
|
| 75 | + } else |
|
| 77 | 76 | { |
| 78 | 77 | $this->status( 'OK' ); |
| 79 | 78 | } |
@@ -65,8 +65,7 @@ |
||
| 65 | 65 | { |
| 66 | 66 | $this->executeList( $stmts ); |
| 67 | 67 | $this->status( 'added' ); |
| 68 | - } |
|
| 69 | - else |
|
| 68 | + } else |
|
| 70 | 69 | { |
| 71 | 70 | $this->status( 'OK' ); |
| 72 | 71 | } |
@@ -71,8 +71,7 @@ |
||
| 71 | 71 | { |
| 72 | 72 | $this->execute( $stmt ); |
| 73 | 73 | $this->status( 'done' ); |
| 74 | - } |
|
| 75 | - else |
|
| 74 | + } else |
|
| 76 | 75 | { |
| 77 | 76 | $this->status( 'OK' ); |
| 78 | 77 | } |
@@ -172,8 +172,7 @@ |
||
| 172 | 172 | { |
| 173 | 173 | $this->executeList( $stmtList ); |
| 174 | 174 | $this->status( 'migrated' ); |
| 175 | - } |
|
| 176 | - else |
|
| 175 | + } else |
|
| 177 | 176 | { |
| 178 | 177 | $this->status( 'OK' ); |
| 179 | 178 | } |
@@ -90,8 +90,7 @@ |
||
| 90 | 90 | { |
| 91 | 91 | $this->executeList( $stmts, 'db-coupon' ); |
| 92 | 92 | $this->status( 'done' ); |
| 93 | - } |
|
| 94 | - else |
|
| 93 | + } else |
|
| 95 | 94 | { |
| 96 | 95 | $this->status( 'OK' ); |
| 97 | 96 | } |
@@ -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 | } |
@@ -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' ); |
@@ -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 | } |