@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | * @see mshop/index/manager/price/decorators/global |
403 | 403 | */ |
404 | 404 | |
405 | - return $this->getSubManagerBase( 'index', 'price/' . $manager, $name ); |
|
405 | + return $this->getSubManagerBase( 'index', 'price/'.$manager, $name ); |
|
406 | 406 | } |
407 | 407 | |
408 | 408 | |
@@ -733,7 +733,7 @@ discard block |
||
733 | 733 | |
734 | 734 | try { |
735 | 735 | $stmt->execute()->finish(); |
736 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
736 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
737 | 737 | } |
738 | 738 | } |
739 | 739 | } |
@@ -726,9 +726,13 @@ |
||
726 | 726 | $stmt->bind( 13, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
727 | 727 | $stmt->bind( 14, $date ); //ctime |
728 | 728 | |
729 | - try { |
|
729 | + try |
|
730 | + { |
|
730 | 731 | $stmt->execute()->finish(); |
731 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
732 | + } |
|
733 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
734 | + { |
|
735 | +; } // Ignore duplicates |
|
732 | 736 | } |
733 | 737 | } |
734 | 738 | } |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | * @see mshop/index/manager/attribute/decorators/global |
359 | 359 | */ |
360 | 360 | |
361 | - return $this->getSubManagerBase( 'index', 'attribute/' . $manager, $name ); |
|
361 | + return $this->getSubManagerBase( 'index', 'attribute/'.$manager, $name ); |
|
362 | 362 | } |
363 | 363 | |
364 | 364 | |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | |
684 | 684 | try { |
685 | 685 | $stmt->execute()->finish(); |
686 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
686 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
687 | 687 | } |
688 | 688 | } |
689 | 689 | } |
@@ -676,9 +676,13 @@ |
||
676 | 676 | $stmt->bind( 8, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
677 | 677 | $stmt->bind( 9, $date ); // ctime |
678 | 678 | |
679 | - try { |
|
679 | + try |
|
680 | + { |
|
680 | 681 | $stmt->execute()->finish(); |
681 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
682 | + } |
|
683 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
684 | + { |
|
685 | +; } // Ignore duplicates |
|
682 | 686 | } |
683 | 687 | } |
684 | 688 | } |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | * @see mshop/index/manager/catalog/decorators/global |
367 | 367 | */ |
368 | 368 | |
369 | - return $this->getSubManagerBase( 'index', 'catalog/' . $manager, $name ); |
|
369 | + return $this->getSubManagerBase( 'index', 'catalog/'.$manager, $name ); |
|
370 | 370 | } |
371 | 371 | |
372 | 372 | |
@@ -485,7 +485,7 @@ discard block |
||
485 | 485 | |
486 | 486 | try { |
487 | 487 | $stmt->execute()->finish(); |
488 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
488 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
489 | 489 | } |
490 | 490 | } |
491 | 491 |
@@ -483,9 +483,13 @@ |
||
483 | 483 | $stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
484 | 484 | $stmt->bind( 8, $date ); //ctime |
485 | 485 | |
486 | - try { |
|
486 | + try |
|
487 | + { |
|
487 | 488 | $stmt->execute()->finish(); |
488 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
489 | + } |
|
490 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
491 | + { |
|
492 | +; } // Ignore duplicates |
|
489 | 493 | } |
490 | 494 | } |
491 | 495 |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $ds = DIRECTORY_SEPARATOR; |
53 | 53 | $this->additional->setEditor( 'core:unittest' ); |
54 | 54 | |
55 | - $this->process( __DIR__ . $ds . 'data' . $ds . 'customer.php' ); |
|
55 | + $this->process( __DIR__.$ds.'data'.$ds.'customer.php' ); |
|
56 | 56 | |
57 | 57 | $this->status( 'done' ); |
58 | 58 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | |
208 | 208 | try { |
209 | 209 | $customerGroupManager->saveItem( $group, false ); |
210 | - } catch( \Exception $e ) { ; } // ignore duplicates |
|
210 | + } catch( \Exception $e ) {; } // ignore duplicates |
|
211 | 211 | } |
212 | 212 | } |
213 | 213 | } |
214 | 214 | \ No newline at end of file |
@@ -205,9 +205,13 @@ |
||
205 | 205 | $group->setCode( $dataset['code'] ); |
206 | 206 | $group->setLabel( $dataset['label'] ); |
207 | 207 | |
208 | - try { |
|
208 | + try |
|
209 | + { |
|
209 | 210 | $customerGroupManager->saveItem( $group, false ); |
210 | - } catch( \Exception $e ) { ; } // ignore duplicates |
|
211 | + } |
|
212 | + catch( \Exception $e ) |
|
213 | + { |
|
214 | +; } // ignore duplicates |
|
211 | 215 | } |
212 | 216 | } |
213 | 217 | } |
214 | 218 | \ No newline at end of file |
@@ -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' ); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | |
68 | 68 | $ds = DIRECTORY_SEPARATOR; |
69 | - $filename = __DIR__ . $ds . 'default' . $ds . 'data' . $ds . 'type.php'; |
|
69 | + $filename = __DIR__.$ds.'default'.$ds.'data'.$ds.'type.php'; |
|
70 | 70 | |
71 | 71 | if( ( $testdata = include( $filename ) ) == false ) { |
72 | 72 | throw new \Aimeos\MShop\Exception( sprintf( 'No type file found in "%1$s"', $filename ) ); |
@@ -103,10 +103,10 @@ discard block |
||
103 | 103 | try { |
104 | 104 | $domainManager->saveItem( $type ); |
105 | 105 | $num++; |
106 | - } catch( \Exception $e ) { ; } // if type was already available |
|
106 | + } catch( \Exception $e ) {; } // if type was already available |
|
107 | 107 | } |
108 | 108 | |
109 | - $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
|
109 | + $this->status( $num > 0 ? $num.'/'.$total : 'OK' ); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | $this->additional->setEditor( $editor ); |
@@ -147,8 +147,8 @@ discard block |
||
147 | 147 | if( !isset( $this->domainManagers[$domainname] ) ) |
148 | 148 | { |
149 | 149 | $iface = '\\Aimeos\\MShop\\Common\\Manager\\Iface'; |
150 | - $factory = '\\Aimeos\\MShop\\' . ucwords( $domainname ) . '\\Manager\\Factory'; |
|
151 | - $manager = call_user_func_array( $factory . '::createManager', array( $this->additional ) ); |
|
150 | + $factory = '\\Aimeos\\MShop\\'.ucwords( $domainname ).'\\Manager\\Factory'; |
|
151 | + $manager = call_user_func_array( $factory.'::createManager', array( $this->additional ) ); |
|
152 | 152 | |
153 | 153 | if( !( $manager instanceof $iface ) ) { |
154 | 154 | throw new \RuntimeException( sprintf( 'No factory "%1$s" found', $factory ) ); |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | |
161 | 161 | foreach( $parts as $part ) |
162 | 162 | { |
163 | - $tmpname = $domainname . '/' . $part; |
|
163 | + $tmpname = $domainname.'/'.$part; |
|
164 | 164 | |
165 | 165 | if( !isset( $this->domainManagers[$tmpname] ) ) { |
166 | 166 | $this->domainManagers[$tmpname] = $this->domainManagers[$domainname]->getSubManager( $part ); |
@@ -14,7 +14,9 @@ discard block |
||
14 | 14 | public function testTransformSingleOK() |
15 | 15 | { |
16 | 16 | $view = new \Aimeos\MW\View\Standard(); |
17 | - $fcn = function() { return array( 'editor' ); }; |
|
17 | + $fcn = function() |
|
18 | + { |
|
19 | +return array( 'editor' ); }; |
|
18 | 20 | |
19 | 21 | $object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn ); |
20 | 22 | $this->assertTrue( $object->transform( 'editor' ) ); |
@@ -24,7 +26,9 @@ discard block |
||
24 | 26 | public function testTransformSingleFailure() |
25 | 27 | { |
26 | 28 | $view = new \Aimeos\MW\View\Standard(); |
27 | - $fcn = function() { return array( 'editor' ); }; |
|
29 | + $fcn = function() |
|
30 | + { |
|
31 | +return array( 'editor' ); }; |
|
28 | 32 | |
29 | 33 | $object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn ); |
30 | 34 | $this->assertFalse( $object->transform( 'admin' ) ); |
@@ -34,7 +38,9 @@ discard block |
||
34 | 38 | public function testTransformMultipleOK() |
35 | 39 | { |
36 | 40 | $view = new \Aimeos\MW\View\Standard(); |
37 | - $fcn = function() { return array( 'admin', 'editor' ); }; |
|
41 | + $fcn = function() |
|
42 | + { |
|
43 | +return array( 'admin', 'editor' ); }; |
|
38 | 44 | |
39 | 45 | $object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn ); |
40 | 46 | $this->assertTrue( $object->transform( array( 'editor' ) ) ); |
@@ -44,7 +50,9 @@ discard block |
||
44 | 50 | public function testTransformMultipleFailure() |
45 | 51 | { |
46 | 52 | $view = new \Aimeos\MW\View\Standard(); |
47 | - $fcn = function() { return array( 'admin', 'editor' ); }; |
|
53 | + $fcn = function() |
|
54 | + { |
|
55 | +return array( 'admin', 'editor' ); }; |
|
48 | 56 | |
49 | 57 | $object = new \Aimeos\MW\View\Helper\Access\Standard( $view, $fcn ); |
50 | 58 | $this->assertFalse( $object->transform( array( 'test', 'example' ) ) ); |
@@ -161,7 +161,7 @@ |
||
161 | 161 | |
162 | 162 | $stmt->bind( 1, $date ); |
163 | 163 | $stmt->bind( 2, substr( $date, 0, 7 ) ); |
164 | - $stmt->bind( 3, date_create_from_format( 'Y-m-d', $date )->format( 'Y-W' ) ); |
|
164 | + $stmt->bind( 3, date_create_from_format( 'Y-m-d', $date )->format( 'Y-W' ) ); |
|
165 | 165 | $stmt->bind( 4, substr( $time, 0, 2 ) ); |
166 | 166 | $stmt->bind( 5, $id, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
167 | 167 |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * Removes the content between the marker. |
36 | 36 | * |
37 | - * @param array|string $name Marker name or list thereof |
|
37 | + * @param string $name Marker name or list thereof |
|
38 | 38 | * @return \Aimeos\MW\Template\Iface Own Instance for method chaining |
39 | 39 | */ |
40 | 40 | public function disable( $name ); |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Replaces a string or a list of strings. |
63 | 63 | * |
64 | - * @param string|array $old String or list of strings to remove |
|
65 | - * @param string|array $new String or list of strings to insert instead |
|
64 | + * @param string $old String or list of strings to remove |
|
65 | + * @param string $new String or list of strings to insert instead |
|
66 | 66 | * @return \Aimeos\MW\Template\Iface Own Instance for method chaining |
67 | 67 | */ |
68 | 68 | public function replace( $old, $new ); |
@@ -16,7 +16,8 @@ discard block |
||
16 | 16 | |
17 | 17 | 'table' => array( |
18 | 18 | |
19 | - 'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
19 | + 'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
20 | + { |
|
20 | 21 | |
21 | 22 | $table = $schema->createTable( 'mshop_order_base' ); |
22 | 23 | |
@@ -45,7 +46,8 @@ discard block |
||
45 | 46 | return $schema; |
46 | 47 | }, |
47 | 48 | |
48 | - 'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
49 | + 'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
50 | + { |
|
49 | 51 | |
50 | 52 | $table = $schema->createTable( 'mshop_order_base_address' ); |
51 | 53 | |
@@ -93,7 +95,8 @@ discard block |
||
93 | 95 | return $schema; |
94 | 96 | }, |
95 | 97 | |
96 | - 'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
98 | + 'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
99 | + { |
|
97 | 100 | |
98 | 101 | $table = $schema->createTable( 'mshop_order_base_product' ); |
99 | 102 | |
@@ -134,7 +137,8 @@ discard block |
||
134 | 137 | return $schema; |
135 | 138 | }, |
136 | 139 | |
137 | - 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
140 | + 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
141 | + { |
|
138 | 142 | |
139 | 143 | $table = $schema->createTable( 'mshop_order_base_product_attr' ); |
140 | 144 | |
@@ -160,7 +164,8 @@ discard block |
||
160 | 164 | return $schema; |
161 | 165 | }, |
162 | 166 | |
163 | - 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
167 | + 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
168 | + { |
|
164 | 169 | |
165 | 170 | $table = $schema->createTable( 'mshop_order_base_service' ); |
166 | 171 | |
@@ -194,7 +199,8 @@ discard block |
||
194 | 199 | return $schema; |
195 | 200 | }, |
196 | 201 | |
197 | - 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
202 | + 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
203 | + { |
|
198 | 204 | |
199 | 205 | $table = $schema->createTable( 'mshop_order_base_service_attr' ); |
200 | 206 | |
@@ -220,7 +226,8 @@ discard block |
||
220 | 226 | return $schema; |
221 | 227 | }, |
222 | 228 | |
223 | - 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
229 | + 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
230 | + { |
|
224 | 231 | |
225 | 232 | $table = $schema->createTable( 'mshop_order_base_coupon' ); |
226 | 233 | |
@@ -247,7 +254,8 @@ discard block |
||
247 | 254 | return $schema; |
248 | 255 | }, |
249 | 256 | |
250 | - 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
257 | + 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
258 | + { |
|
251 | 259 | |
252 | 260 | $table = $schema->createTable( 'mshop_order' ); |
253 | 261 | |
@@ -289,7 +297,8 @@ discard block |
||
289 | 297 | return $schema; |
290 | 298 | }, |
291 | 299 | |
292 | - 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
300 | + 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
301 | + { |
|
293 | 302 | |
294 | 303 | $table = $schema->createTable( 'mshop_order_status' ); |
295 | 304 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | 'table' => array( |
18 | 18 | |
19 | - 'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
19 | + 'mshop_order_base' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
20 | 20 | |
21 | 21 | $table = $schema->createTable( 'mshop_order_base' ); |
22 | 22 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $table->addColumn( 'status', 'smallint', [] ); |
36 | 36 | $table->addColumn( 'mtime', 'datetime', [] ); |
37 | 37 | $table->addColumn( 'ctime', 'datetime', [] ); |
38 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
38 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
39 | 39 | |
40 | 40 | $table->setPrimaryKey( array( 'id' ), 'pk_msordba_id' ); |
41 | 41 | $table->addIndex( array( 'sitecode', 'customerid' ), 'idx_msordba_scode_custid' ); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | return $schema; |
46 | 46 | }, |
47 | 47 | |
48 | - 'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
48 | + 'mshop_order_base_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
49 | 49 | |
50 | 50 | $table = $schema->createTable( 'mshop_order_base_address' ); |
51 | 51 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $table->addColumn( 'flag', 'integer', [] ); |
78 | 78 | $table->addColumn( 'mtime', 'datetime', [] ); |
79 | 79 | $table->addColumn( 'ctime', 'datetime', [] ); |
80 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
80 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
81 | 81 | |
82 | 82 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaad_id' ); |
83 | 83 | $table->addUniqueIndex( array( 'baseid', 'type' ), 'unq_msordbaad_bid_type' ); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | return $schema; |
96 | 96 | }, |
97 | 97 | |
98 | - 'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
98 | + 'mshop_order_base_product' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
99 | 99 | |
100 | 100 | $table = $schema->createTable( 'mshop_order_base_product' ); |
101 | 101 | |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | $table->addColumn( 'ordprodid', 'bigint', array( 'notnull' => false ) ); |
106 | 106 | $table->addColumn( 'type', 'string', array( 'length' => 32 ) ); |
107 | 107 | $table->addColumn( 'prodid', 'string', array( 'length' => 32 ) ); |
108 | - $table->addColumn( 'prodcode', 'string', array( 'length' => 32 ) ); |
|
109 | - $table->addColumn( 'suppliercode', 'string', array( 'length' => 32 ) ); |
|
108 | + $table->addColumn( 'prodcode', 'string', array( 'length' => 32 ) ); |
|
109 | + $table->addColumn( 'suppliercode', 'string', array( 'length' => 32 ) ); |
|
110 | 110 | $table->addColumn( 'stocktype', 'string', array( 'length' => 32 ) ); |
111 | 111 | $table->addColumn( 'name', 'text', array( 'length' => 0xffff ) ); |
112 | 112 | $table->addColumn( 'mediaurl', 'string', array( 'length' => 255 ) ); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $table->addColumn( 'status', 'smallint', array( 'default' => -1 ) ); |
124 | 124 | $table->addColumn( 'mtime', 'datetime', [] ); |
125 | 125 | $table->addColumn( 'ctime', 'datetime', [] ); |
126 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
126 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
127 | 127 | |
128 | 128 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbapr_id' ); |
129 | 129 | $table->addUniqueIndex( array( 'baseid', 'pos' ), 'unq_msordbapr_bid_pos' ); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | return $schema; |
138 | 138 | }, |
139 | 139 | |
140 | - 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
140 | + 'mshop_order_base_product_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
141 | 141 | |
142 | 142 | $table = $schema->createTable( 'mshop_order_base_product_attr' ); |
143 | 143 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | $table->addColumn( 'quantity', 'integer', [] ); |
153 | 153 | $table->addColumn( 'mtime', 'datetime', [] ); |
154 | 154 | $table->addColumn( 'ctime', 'datetime', [] ); |
155 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
155 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
156 | 156 | |
157 | 157 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaprat_id' ); |
158 | 158 | $table->addUniqueIndex( array( 'ordprodid', 'attrid', 'type', 'code' ), 'unq_msordbaprat_oid_aid_ty_cd' ); |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | return $schema; |
165 | 165 | }, |
166 | 166 | |
167 | - 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
167 | + 'mshop_order_base_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
168 | 168 | |
169 | 169 | $table = $schema->createTable( 'mshop_order_base_service' ); |
170 | 170 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $table->addColumn( 'taxflag', 'smallint', [] ); |
185 | 185 | $table->addColumn( 'mtime', 'datetime', [] ); |
186 | 186 | $table->addColumn( 'ctime', 'datetime', [] ); |
187 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
187 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
188 | 188 | |
189 | 189 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbase_id' ); |
190 | 190 | $table->addUniqueIndex( array( 'siteid', 'baseid', 'code', 'type' ), 'unq_msordbase_sid_bid_cd_typ' ); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | return $schema; |
198 | 198 | }, |
199 | 199 | |
200 | - 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
200 | + 'mshop_order_base_service_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
201 | 201 | |
202 | 202 | $table = $schema->createTable( 'mshop_order_base_service_attr' ); |
203 | 203 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | $table->addColumn( 'quantity', 'integer', [] ); |
213 | 213 | $table->addColumn( 'mtime', 'datetime', [] ); |
214 | 214 | $table->addColumn( 'ctime', 'datetime', [] ); |
215 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
215 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
216 | 216 | |
217 | 217 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaseat_id' ); |
218 | 218 | $table->addUniqueIndex( array( 'ordservid', 'attrid', 'type', 'code' ), 'unq_msordbaseat_oid_aid_ty_cd' ); |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | return $schema; |
225 | 225 | }, |
226 | 226 | |
227 | - 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
227 | + 'mshop_order_base_coupon' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
228 | 228 | |
229 | 229 | $table = $schema->createTable( 'mshop_order_base_coupon' ); |
230 | 230 | |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | $table->addColumn( 'code', 'string', array( 'length' => 32 ) ); |
236 | 236 | $table->addColumn( 'mtime', 'datetime', [] ); |
237 | 237 | $table->addColumn( 'ctime', 'datetime', [] ); |
238 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
238 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
239 | 239 | |
240 | 240 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaco_id' ); |
241 | 241 | $table->addIndex( array( 'siteid', 'baseid', 'code' ), 'idx_msordbaco_sid_bid_code' ); |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | return $schema; |
252 | 252 | }, |
253 | 253 | |
254 | - 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
254 | + 'mshop_order' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
255 | 255 | |
256 | 256 | $table = $schema->createTable( 'mshop_order' ); |
257 | 257 | |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $table->addColumn( 'chour', 'string', array( 'length' => 2, 'fixed' => true ) ); |
272 | 272 | $table->addColumn( 'ctime', 'datetime', [] ); |
273 | 273 | $table->addColumn( 'mtime', 'datetime', [] ); |
274 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
274 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
275 | 275 | |
276 | 276 | $table->setPrimaryKey( array( 'id' ), 'pk_msord_id' ); |
277 | 277 | $table->addIndex( array( 'siteid', 'type' ), 'idx_msord_sid_type' ); |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | return $schema; |
296 | 296 | }, |
297 | 297 | |
298 | - 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
298 | + 'mshop_order_status' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
299 | 299 | |
300 | 300 | $table = $schema->createTable( 'mshop_order_status' ); |
301 | 301 | |
@@ -306,7 +306,7 @@ discard block |
||
306 | 306 | $table->addColumn( 'value', 'string', array( 'length' => 32 ) ); |
307 | 307 | $table->addColumn( 'mtime', 'datetime', [] ); |
308 | 308 | $table->addColumn( 'ctime', 'datetime', [] ); |
309 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
309 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
310 | 310 | |
311 | 311 | $table->setPrimaryKey( array( 'id' ), 'pk_msordst_id' ); |
312 | 312 | $table->addIndex( array( 'siteid', 'parentid', 'type', 'value' ), 'idx_msordstatus_val_sid' ); |