@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | |
16 | 16 | 'table' => array( |
17 | - 'mshop_text_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
17 | + 'mshop_text_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
18 | 18 | |
19 | 19 | $table = $schema->createTable( 'mshop_text_type' ); |
20 | 20 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | return $schema; |
38 | 38 | }, |
39 | 39 | |
40 | - 'mshop_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
40 | + 'mshop_text' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
41 | 41 | |
42 | 42 | $table = $schema->createTable( 'mshop_text' ); |
43 | 43 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $table->addColumn( 'status', 'smallint', [] ); |
52 | 52 | $table->addColumn( 'mtime', 'datetime', [] ); |
53 | 53 | $table->addColumn( 'ctime', 'datetime', [] ); |
54 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
54 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
55 | 55 | |
56 | 56 | $table->setPrimaryKey( array( 'id' ), 'pk_mstex_id' ); |
57 | 57 | $table->addIndex( array( 'siteid', 'domain', 'status' ), 'idx_mstex_sid_domain_status' ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | return $schema; |
66 | 66 | }, |
67 | 67 | |
68 | - 'mshop_text_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
68 | + 'mshop_text_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
69 | 69 | |
70 | 70 | $table = $schema->createTable( 'mshop_text_list_type' ); |
71 | 71 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | return $schema; |
89 | 89 | }, |
90 | 90 | |
91 | - 'mshop_text_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
91 | + 'mshop_text_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
92 | 92 | |
93 | 93 | $table = $schema->createTable( 'mshop_text_list' ); |
94 | 94 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_price_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_price_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_price_type' ); |
14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $schema; |
32 | 32 | }, |
33 | 33 | |
34 | - 'mshop_price' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
34 | + 'mshop_price' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
35 | 35 | |
36 | 36 | $table = $schema->createTable( 'mshop_price' ); |
37 | 37 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $table->addColumn( 'status', 'smallint', [] ); |
50 | 50 | $table->addColumn( 'mtime', 'datetime', [] ); |
51 | 51 | $table->addColumn( 'ctime', 'datetime', [] ); |
52 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
52 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
53 | 53 | |
54 | 54 | $table->setPrimaryKey( array( 'id' ), 'pk_mspri_id' ); |
55 | 55 | $table->addIndex( array( 'siteid', 'domain', 'currencyid' ), 'idx_mspri_sid_dom_currid' ); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | return $schema; |
67 | 67 | }, |
68 | 68 | |
69 | - 'mshop_price_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
69 | + 'mshop_price_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
70 | 70 | |
71 | 71 | $table = $schema->createTable( 'mshop_price_list_type' ); |
72 | 72 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | return $schema; |
90 | 90 | }, |
91 | 91 | |
92 | - 'mshop_price_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
92 | + 'mshop_price_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
93 | 93 | |
94 | 94 | $table = $schema->createTable( 'mshop_price_list' ); |
95 | 95 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'mshop_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'mshop_supplier' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
13 | 13 | |
14 | 14 | $table = $schema->createTable( 'mshop_supplier' ); |
15 | 15 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $table->addColumn( 'status', 'smallint', [] ); |
21 | 21 | $table->addColumn( 'mtime', 'datetime', [] ); |
22 | 22 | $table->addColumn( 'ctime', 'datetime', [] ); |
23 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
23 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
24 | 24 | |
25 | 25 | $table->setPrimaryKey( array( 'id' ), 'pk_mssup_id' ); |
26 | 26 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mssup_sid_code' ); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | return $schema; |
31 | 31 | }, |
32 | 32 | |
33 | - 'mshop_supplier_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
33 | + 'mshop_supplier_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
34 | 34 | |
35 | 35 | $table = $schema->createTable( 'mshop_supplier_address' ); |
36 | 36 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $table->addColumn( 'pos', 'smallint', [] ); |
62 | 62 | $table->addColumn( 'mtime', 'datetime', [] ); |
63 | 63 | $table->addColumn( 'ctime', 'datetime', [] ); |
64 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
64 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
65 | 65 | |
66 | 66 | $table->setPrimaryKey( array( 'id' ), 'pk_mssupad_id' ); |
67 | 67 | $table->addIndex( array( 'siteid', 'parentid' ), 'idx_mssupad_sid_rid' ); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | return $schema; |
74 | 74 | }, |
75 | 75 | |
76 | - 'mshop_supplier_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
76 | + 'mshop_supplier_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
77 | 77 | |
78 | 78 | $table = $schema->createTable( 'mshop_supplier_list_type' ); |
79 | 79 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | return $schema; |
97 | 97 | }, |
98 | 98 | |
99 | - 'mshop_supplier_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
99 | + 'mshop_supplier_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
100 | 100 | |
101 | 101 | $table = $schema->createTable( 'mshop_supplier_list' ); |
102 | 102 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_service_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_service_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_service_type' ); |
14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $schema; |
32 | 32 | }, |
33 | 33 | |
34 | - 'mshop_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
34 | + 'mshop_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
35 | 35 | |
36 | 36 | $table = $schema->createTable( 'mshop_service' ); |
37 | 37 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $table->addColumn( 'status', 'smallint', [] ); |
47 | 47 | $table->addColumn( 'mtime', 'datetime', [] ); |
48 | 48 | $table->addColumn( 'ctime', 'datetime', [] ); |
49 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
49 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
50 | 50 | |
51 | 51 | $table->setPrimaryKey( array( 'id' ), 'pk_msser_id' ); |
52 | 52 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_msser_siteid_code' ); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | return $schema; |
64 | 64 | }, |
65 | 65 | |
66 | - 'mshop_service_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
66 | + 'mshop_service_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
67 | 67 | |
68 | 68 | $table = $schema->createTable( 'mshop_service_list_type' ); |
69 | 69 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | return $schema; |
87 | 87 | }, |
88 | 88 | |
89 | - 'mshop_service_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
89 | + 'mshop_service_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
90 | 90 | |
91 | 91 | $table = $schema->createTable( 'mshop_service_list' ); |
92 | 92 |
@@ -70,8 +70,7 @@ discard block |
||
70 | 70 | ) { |
71 | 71 | $this->execute( $this->stmts['constraint'], 'db-product' ); |
72 | 72 | $this->status( 'done' ); |
73 | - } |
|
74 | - else |
|
73 | + } else |
|
75 | 74 | { |
76 | 75 | $this->status( 'OK' ); |
77 | 76 | } |
@@ -84,8 +83,7 @@ discard block |
||
84 | 83 | ) { |
85 | 84 | $this->execute( $this->stmts['constraint2'], 'db-product' ); |
86 | 85 | $this->status( 'done' ); |
87 | - } |
|
88 | - else |
|
86 | + } else |
|
89 | 87 | { |
90 | 88 | $this->status( 'OK' ); |
91 | 89 | } |
@@ -98,8 +96,7 @@ discard block |
||
98 | 96 | ) { |
99 | 97 | $this->execute( $this->stmts['typeid'], 'db-product' ); |
100 | 98 | $this->status( 'done' ); |
101 | - } |
|
102 | - else |
|
99 | + } else |
|
103 | 100 | { |
104 | 101 | $this->status( 'OK' ); |
105 | 102 | } |
@@ -111,8 +108,7 @@ discard block |
||
111 | 108 | { |
112 | 109 | $this->execute( $this->stmts['table'], 'db-product' ); |
113 | 110 | $this->status( 'done' ); |
114 | - } |
|
115 | - else |
|
111 | + } else |
|
116 | 112 | { |
117 | 113 | $this->status( 'OK' ); |
118 | 114 | } |
@@ -72,7 +72,9 @@ |
||
72 | 72 | $manager->saveItem( $item ); |
73 | 73 | $num++; |
74 | 74 | } |
75 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
75 | + catch( \Exception $e ) |
|
76 | + { |
|
77 | +; } // if attribute was already available |
|
76 | 78 | } |
77 | 79 | |
78 | 80 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $manager->saveItem( $item ); |
70 | 70 | $num++; |
71 | 71 | } |
72 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
72 | + catch( \Exception $e ) {; } // if attribute was already available |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -103,8 +103,7 @@ |
||
103 | 103 | |
104 | 104 | $attrManager->saveItem( $item ); |
105 | 105 | $id = $item->getId(); |
106 | - } |
|
107 | - else |
|
106 | + } else |
|
108 | 107 | { |
109 | 108 | $id = $attrItem->getId(); |
110 | 109 | } |
@@ -240,9 +240,13 @@ |
||
240 | 240 | $localeItem->setPosition( $dataset['pos'] ); |
241 | 241 | $localeItem->setStatus( $dataset['status'] ); |
242 | 242 | |
243 | - try { |
|
243 | + try |
|
244 | + { |
|
244 | 245 | $localeItemManager->saveItem( $localeItem ); |
245 | - } catch( \Exception $e ) {; } // if locale combination was already available |
|
246 | + } |
|
247 | + catch( \Exception $e ) |
|
248 | + { |
|
249 | +; } // if locale combination was already available |
|
246 | 250 | } |
247 | 251 | |
248 | 252 | $this->status( 'done' ); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * Returns the message queue manager object. |
163 | 163 | * |
164 | 164 | * @return \Aimeos\MW\MQueue\Manager\Iface Message queue manager object |
165 | - */ |
|
165 | + */ |
|
166 | 166 | public function getMessageQueueManager(); |
167 | 167 | |
168 | 168 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * Returns the process object. |
187 | 187 | * |
188 | 188 | * @return \Aimeos\MW\Process\Iface Process object |
189 | - */ |
|
189 | + */ |
|
190 | 190 | public function getProcess(); |
191 | 191 | |
192 | 192 | /** |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | * Returns the session object. |
202 | 202 | * |
203 | 203 | * @return \Aimeos\MW\Session\Iface Session object |
204 | - */ |
|
204 | + */ |
|
205 | 205 | public function getSession(); |
206 | 206 | |
207 | 207 | /** |