@@ -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 | } |
@@ -94,8 +94,7 @@ |
||
94 | 94 | { |
95 | 95 | $this->executeList( $stmt ); |
96 | 96 | $this->status( 'added' ); |
97 | - } |
|
98 | - else |
|
97 | + } else |
|
99 | 98 | { |
100 | 99 | $this->status( 'OK' ); |
101 | 100 | } |
@@ -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 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | if( $value === '1' ) |
75 | 75 | { |
76 | 76 | $ds = DIRECTORY_SEPARATOR; |
77 | - $path = __DIR__ . $ds . 'data' . $ds . 'demo-coupon.php'; |
|
77 | + $path = __DIR__.$ds.'data'.$ds.'demo-coupon.php'; |
|
78 | 78 | |
79 | 79 | if( ( $data = include( $path ) ) == false ) { |
80 | 80 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for coupon domain', $path ) ); |