@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | * @copyright Aimeos (aimeos.org), 2014-2018 |
7 | 7 | */ |
8 | 8 | |
9 | -return array ( |
|
10 | - 'customer/lists/type' => array ( |
|
9 | +return array( |
|
10 | + 'customer/lists/type' => array( |
|
11 | 11 | 'customer/group/default' => array( 'domain' => 'customer/group', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
12 | 12 | 'order/download' => array( 'domain' => 'order', 'code' => 'download', 'label' => 'Download', 'status' => 1 ), |
13 | 13 | 'product/favorite' => array( 'domain' => 'product', 'code' => 'favorite', 'label' => 'Favorite', 'status' => 1 ), |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | 'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ), |
16 | 16 | ), |
17 | 17 | |
18 | - 'customer/lists' => array ( |
|
18 | + 'customer/lists' => array( |
|
19 | 19 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/information', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 1, 'status' => 1 ), |
20 | 20 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/notify', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 2, 'status' => 1 ), |
21 | 21 | array( 'parentid' => 'customer/UTC003', 'type' => 'default', 'domain' => 'text', 'refid' => 'text/customer/newsletter', 'start' => '2010-01-01 00:00:00', 'end' => '2100-01-01 00:00:00', 'config' => [], 'pos' => 3, 'status' => 1 ), |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @copyright Aimeos (aimeos.org), 2014-2018 |
7 | 7 | */ |
8 | 8 | |
9 | -return array ( |
|
9 | +return array( |
|
10 | 10 | 'customer/address' => array( |
11 | 11 | array( 'parentid' => 'customer/UTC001', 'company' => 'ABC', 'vatid' => 'DE999999999', 'salutation' => 'mr', 'title' => 'Dr', 'firstname' => 'Our', 'lastname' => 'Unittest', 'address1' => 'Pickhuben', 'address2' => '2-4', 'address3' => '', 'postal' => '20457', 'city' => 'Hamburg', 'state' => 'Hamburg', 'countryid' => 'DE', 'langid' => 'de', 'telephone' => '055544332211', 'email' => '[email protected]', 'telefax' => '055544332212', 'website' => 'unittest.aimeos.org', 'longitude' => '10.0', 'latitude' => '50.0', 'pos' => '0' ), |
12 | 12 | array( 'parentid' => 'customer/UTC002', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'salutation' => 'mr', 'title' => 'Dr.', 'firstname' => 'Good', 'lastname' => 'Unittest', 'address1' => 'Pickhuben', 'address2' => '2-4', 'address3' => '', 'postal' => '20457', 'city' => 'Hamburg', 'state' => 'Hamburg', 'countryid' => 'DE', 'langid' => 'de', 'telephone' => '055544332211', 'email' => '[email protected]', 'telefax' => '055544332212', 'website' => 'unittest.aimeos.org', 'longitude' => '10.5', 'latitude' => '51.0', 'pos' => '1' ), |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'fe_users_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'fe_users_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
13 | 13 | |
14 | 14 | $table = $schema->createTable( 'fe_users_address' ); |
15 | 15 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $table->addColumn( 'latitude', 'float', array( 'notnull' => false ) ); |
40 | 40 | $table->addColumn( 'mtime', 'datetime', [] ); |
41 | 41 | $table->addColumn( 'ctime', 'datetime', [] ); |
42 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
42 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
43 | 43 | |
44 | 44 | $table->setPrimaryKey( array( 'id' ), 'pk_t3feuad_id' ); |
45 | 45 | $table->addIndex( array( 'parentid' ), 'idx_t3feuad_pid' ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | return $schema; |
54 | 54 | }, |
55 | 55 | |
56 | - 'fe_users_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
56 | + 'fe_users_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
57 | 57 | |
58 | 58 | $table = $schema->createTable( 'fe_users_list_type' ); |
59 | 59 | |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | return $schema; |
78 | 78 | }, |
79 | 79 | |
80 | - 'fe_users_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
80 | + 'fe_users_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
81 | 81 | |
82 | 82 | $table = $schema->createTable( 'fe_users_list' ); |
83 | 83 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | return $schema; |
104 | 104 | }, |
105 | 105 | |
106 | - 'fe_users_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
106 | + 'fe_users_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
107 | 107 | |
108 | 108 | $table = $schema->createTable( 'fe_users_property_type' ); |
109 | 109 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | return $schema; |
128 | 128 | }, |
129 | 129 | |
130 | - 'fe_users_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
130 | + 'fe_users_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
131 | 131 | |
132 | 132 | $table = $schema->createTable( 'fe_users_property' ); |
133 | 133 |
@@ -9,7 +9,8 @@ discard block |
||
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | 11 | |
12 | - 'fe_users_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | + 'fe_users_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
13 | + { |
|
13 | 14 | |
14 | 15 | $table = $schema->createTable( 'fe_users_address' ); |
15 | 16 | |
@@ -53,7 +54,8 @@ discard block |
||
53 | 54 | return $schema; |
54 | 55 | }, |
55 | 56 | |
56 | - 'fe_users_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
57 | + 'fe_users_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
58 | + { |
|
57 | 59 | |
58 | 60 | $table = $schema->createTable( 'fe_users_list_type' ); |
59 | 61 | |
@@ -77,7 +79,8 @@ discard block |
||
77 | 79 | return $schema; |
78 | 80 | }, |
79 | 81 | |
80 | - 'fe_users_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
82 | + 'fe_users_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
83 | + { |
|
81 | 84 | |
82 | 85 | $table = $schema->createTable( 'fe_users_list' ); |
83 | 86 | |
@@ -103,7 +106,8 @@ discard block |
||
103 | 106 | return $schema; |
104 | 107 | }, |
105 | 108 | |
106 | - 'fe_users_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
109 | + 'fe_users_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
110 | + { |
|
107 | 111 | |
108 | 112 | $table = $schema->createTable( 'fe_users_property_type' ); |
109 | 113 | |
@@ -127,7 +131,8 @@ discard block |
||
127 | 131 | return $schema; |
128 | 132 | }, |
129 | 133 | |
130 | - 'fe_users_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
134 | + 'fe_users_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
135 | + { |
|
131 | 136 | |
132 | 137 | $table = $schema->createTable( 'fe_users_property' ); |
133 | 138 |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function getPostDependencies() |
40 | 40 | { |
41 | - return array('TablesCreateTypo3'); |
|
41 | + return array( 'TablesCreateTypo3' ); |
|
42 | 42 | } |
43 | 43 | |
44 | 44 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | $this->msg( 'Adding "vatid" column to fe_users tables', 0 ); $this->status( '' ); |
62 | 62 | |
63 | - foreach( $stmts AS $table => $stmt ) |
|
63 | + foreach( $stmts as $table => $stmt ) |
|
64 | 64 | { |
65 | 65 | $this->msg( sprintf( 'Checking "%1$s" table', $table ), 1 ); |
66 | 66 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | class FEUsersAddSiteIdTypo3 extends \Aimeos\MW\Setup\Task\Base |
16 | 16 | { |
17 | 17 | private $migrate = array( |
18 | - 'mysql' => array ( |
|
18 | + 'mysql' => array( |
|
19 | 19 | 'ALTER TABLE "fe_users" ADD "siteid" INTEGER NULL' |
20 | 20 | ), |
21 | 21 | ); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function getPostDependencies() |
41 | 41 | { |
42 | - return array('TablesCreateTypo3'); |
|
42 | + return array( 'TablesCreateTypo3' ); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | && $schema->tableExists( $table ) === true |
62 | 62 | && $schema->columnExists( $table, $column ) === false ) |
63 | 63 | { |
64 | - foreach ( $this->migrate[$schema->getName()] as $stmt ) |
|
64 | + foreach( $this->migrate[$schema->getName()] as $stmt ) |
|
65 | 65 | { |
66 | 66 | $this->execute( $stmt ); |
67 | 67 | } |
@@ -66,8 +66,7 @@ |
||
66 | 66 | $this->execute( $stmt ); |
67 | 67 | } |
68 | 68 | $this->status( 'done' ); |
69 | - } |
|
70 | - else |
|
69 | + } else |
|
71 | 70 | { |
72 | 71 | $this->status( 'OK' ); |
73 | 72 | } |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | $this->execute( $this->sql['address'] ); |
55 | 55 | $this->status( 'done' ); |
56 | - } |
|
57 | - else |
|
56 | + } else |
|
58 | 57 | { |
59 | 58 | $this->status( 'OK' ); |
60 | 59 | } |
@@ -66,8 +65,7 @@ discard block |
||
66 | 65 | { |
67 | 66 | $this->execute( $this->sql['list'] ); |
68 | 67 | $this->status( 'done' ); |
69 | - } |
|
70 | - else |
|
68 | + } else |
|
71 | 69 | { |
72 | 70 | $this->status( 'OK' ); |
73 | 71 | } |