@@ -100,10 +100,14 @@ |
||
100 | 100 | $type->setLabel( $dataset['label'] ); |
101 | 101 | $type->setStatus( $dataset['status'] ); |
102 | 102 | |
103 | - try { |
|
103 | + try |
|
104 | + { |
|
104 | 105 | $domainManager->saveItem( $type ); |
105 | 106 | $num++; |
106 | - } catch( \Exception $e ) { ; } // if type was already available |
|
107 | + } |
|
108 | + catch( \Exception $e ) |
|
109 | + { |
|
110 | +; } // if type was already available |
|
107 | 111 | } |
108 | 112 | |
109 | 113 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -100,7 +100,7 @@ |
||
100 | 100 | try { |
101 | 101 | $domainManager->saveItem( $type ); |
102 | 102 | $num++; |
103 | - } catch( \Exception $e ) { ; } // if type was already available |
|
103 | + } catch( \Exception $e ) {; } // if type was already available |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -72,8 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $this->execute( $stmt ); |
74 | 74 | $this->status( 'done' ); |
75 | - } |
|
76 | - else |
|
75 | + } else |
|
77 | 76 | { |
78 | 77 | $this->status( 'OK' ); |
79 | 78 | } |
@@ -86,8 +85,7 @@ discard block |
||
86 | 85 | { |
87 | 86 | $this->executeList( $this->updates ); |
88 | 87 | $this->status( 'done' ); |
89 | - } |
|
90 | - else |
|
88 | + } else |
|
91 | 89 | { |
92 | 90 | $this->status( 'OK' ); |
93 | 91 | } |
@@ -101,8 +99,7 @@ discard block |
||
101 | 99 | { |
102 | 100 | $this->execute( $stmt ); |
103 | 101 | $this->status( 'done' ); |
104 | - } |
|
105 | - else |
|
102 | + } else |
|
106 | 103 | { |
107 | 104 | $this->status( 'OK' ); |
108 | 105 | } |
@@ -114,8 +111,7 @@ discard block |
||
114 | 111 | { |
115 | 112 | $this->execute( $this->column ); |
116 | 113 | $this->status( 'done' ); |
117 | - } |
|
118 | - else |
|
114 | + } else |
|
119 | 115 | { |
120 | 116 | $this->status( 'OK' ); |
121 | 117 | } |
@@ -189,12 +189,10 @@ |
||
189 | 189 | } |
190 | 190 | |
191 | 191 | return \Aimeos\MW\DB\Statement\Base::PARAM_STR; |
192 | - } |
|
193 | - else if( strpos( $item, '.' ) !== false ) |
|
192 | + } else if( strpos( $item, '.' ) !== false ) |
|
194 | 193 | { |
195 | 194 | return \Aimeos\MW\DB\Statement\Base::PARAM_FLOAT; |
196 | - } |
|
197 | - else if( ctype_digit( $item ) !== false ) |
|
195 | + } else if( ctype_digit( $item ) !== false ) |
|
198 | 196 | { |
199 | 197 | return \Aimeos\MW\DB\Statement\Base::PARAM_INT; |
200 | 198 | } |
@@ -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 | } |
@@ -62,8 +62,7 @@ |
||
62 | 62 | { |
63 | 63 | $this->executeList( $stmts ); |
64 | 64 | $this->status( 'done' ); |
65 | - } |
|
66 | - else |
|
65 | + } else |
|
67 | 66 | { |
68 | 67 | $this->status( 'OK' ); |
69 | 68 | } |
@@ -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 | } |
@@ -66,7 +66,9 @@ discard block |
||
66 | 66 | $this->removeItems( $item->getId(), 'catalog/lists', 'catalog', 'text' ); |
67 | 67 | $this->removeListItems( $item->getId(), 'catalog/lists', 'product' ); |
68 | 68 | } |
69 | - catch( \Exception $e ) {; } // If no root node was already inserted into the database |
|
69 | + catch( \Exception $e ) |
|
70 | + { |
|
71 | +; } // If no root node was already inserted into the database |
|
70 | 72 | |
71 | 73 | |
72 | 74 | if( $value === '1' ) |
@@ -103,8 +105,7 @@ discard block |
||
103 | 105 | } |
104 | 106 | |
105 | 107 | $this->status( 'added' ); |
106 | - } |
|
107 | - else |
|
108 | + } else |
|
108 | 109 | { |
109 | 110 | $this->status( 'removed' ); |
110 | 111 | } |
@@ -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 | } |