Passed
Push — master ( 7c6d34...f0711b )
by Aimeos
01:50
created
lib/custom/setup/unittest/CustomerAddFosUserTestData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 		$this->additional->setEditor( 'ai-fosuser:unittest' );
40 40
 		$path = __DIR__ . $ds . 'data' . $ds . 'customer.php';
41 41
 
42
-		if( ( $testdata = include( $path ) ) === false ){
42
+		if( ( $testdata = include( $path ) ) === false ) {
43 43
 			throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for customer domain', $path ) );
44 44
 		}
45 45
 
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer-property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2018
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'customer/property/type' => array(
10 10
 		'customer/property/type/newsletter' => array( 'domain' => 'customer', 'code' => 'newsletter', 'label' => 'Newsletter', 'status' => 1 ),
11 11
 	),
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer-list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2014-2018
6 6
  */
7 7
 
8
-return array (
9
-	'customer/lists/type' => array (
8
+return array(
9
+	'customer/lists/type' => array(
10 10
 		'customer/group/default' => array( 'domain' => 'customer/group', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
11 11
 		'order/download' => array( 'domain' => 'order', 'code' => 'download', 'label' => 'Download', 'status' => 1 ),
12 12
 		'product/favorite' => array( 'domain' => 'product', 'code' => 'favorite', 'label' => 'Favorite', 'status' => 1 ),
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 		'text/default' => array( 'domain' => 'text', 'code' => 'default', 'label' => 'Standard', 'status' => 1 ),
15 15
 	),
16 16
 
17
-	'customer/lists' => array (
17
+	'customer/lists' => array(
18 18
 		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 ),
19 19
 		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 ),
20 20
 		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 ),
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,10 +5,10 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2014-2018
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'customer' => array(
10 10
 		'customer/UTC001' => array( 'code' => 'UTC001', 'label' => 'unitCustomer1', 'salutation' => 'mr', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => 'Dr.', 'firstname' => 'Max', 'lastname' => 'Mustermann', 'address1' => 'Musterstraße', 'address2' => '1a', 'address3' => '', 'postal' => '20001', 'city' => 'Musterstadt', 'state' => 'Hamburg', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '01234567890', 'email' => '[email protected]', 'telefax' => '01234567890', 'website' => 'unittest.aimeos.org', 'longitude' => '10.0', 'latitude' => '50.0', 'birthday' => '1970-01-01', 'status' => '1', 'password' => 'test' ),
11
-		'customer/UTC002' => array( 'code' => 'UTC002', 'label' => 'unitCustomer2', 'salutation' => 'mrs', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => 'Prof. Dr.', 'firstname' => 'Erika', 'lastname' => 'Mustermann', 'address1' => 'Heidestraße', 'address2' => '17', 'address3' => '', 'postal' => '45632', 'city' => 'Köln', 'state' => '', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '09876543210', 'email' => '[email protected]', 'telefax' => '09876543210', 'website' => 'unittest.aimeos.org', 'longitude' => '10.5', 'latitude' => '51.0', 'birthday' => '1970-01-01', 'status' => '0','password' =>  'test' ),
11
+		'customer/UTC002' => array( 'code' => 'UTC002', 'label' => 'unitCustomer2', 'salutation' => 'mrs', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => 'Prof. Dr.', 'firstname' => 'Erika', 'lastname' => 'Mustermann', 'address1' => 'Heidestraße', 'address2' => '17', 'address3' => '', 'postal' => '45632', 'city' => 'Köln', 'state' => '', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '09876543210', 'email' => '[email protected]', 'telefax' => '09876543210', 'website' => 'unittest.aimeos.org', 'longitude' => '10.5', 'latitude' => '51.0', 'birthday' => '1970-01-01', 'status' => '0', 'password' =>  'test' ),
12 12
 		'customer/UTC003' => array( 'code' => 'UTC003', 'label' => 'unitCustomer3', 'salutation' => 'mr', 'company' => 'ABC GmbH', 'vatid' => 'DE999999999', 'title' => '', 'firstname' => 'Franz-Xaver', 'lastname' => 'Gabler', 'address1' => 'Phantasiestraße', 'address2' => '2', 'address3' => '', 'postal' => '23643', 'city' => 'Berlin', 'state' => 'Berlin', 'langid' => 'de', 'countryid' => 'DE', 'telephone' => '01234509876', 'email' => '[email protected]', 'telefax' => '055544333212', 'website' => 'unittest.aimeos.org', 'longitude' => '11.0', 'latitude' => '52.0', 'birthday' => '1970-01-01', 'status' => '1', 'password' => 'test' ),
13 13
 	),
14 14
 
Please login to merge, or discard this patch.
lib/custom/setup/default/schema/customer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'fos_user' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'fos_user' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'fos_user' );
14 14
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 			$table->addColumn( 'vdate', 'date', array( 'notnull' => false ) );
49 49
 			$table->addColumn( 'mtime', 'datetime', array( 'notnull' => false ) );
50 50
 			$table->addColumn( 'ctime', 'datetime', array( 'notnull' => false ) );
51
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
51
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
52 52
 
53 53
 			$table->setPrimaryKey( array( 'id' ), 'pk_fosus_id' );
54 54
 			$table->addUniqueIndex( array( 'confirmation_token' ), 'unq_fosus_confirmtoken' );
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 			return $schema;
66 66
 		},
67 67
 
68
-		'fos_user_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
68
+		'fos_user_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
69 69
 
70 70
 			$table = $schema->createTable( 'fos_user_address' );
71 71
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 			$table->addColumn( 'latitude', 'float', array( 'notnull' => false ) );
96 96
 			$table->addColumn( 'mtime', 'datetime', [] );
97 97
 			$table->addColumn( 'ctime', 'datetime', [] );
98
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
98
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
99 99
 
100 100
 			$table->setPrimaryKey( array( 'id' ), 'pk_fosad_id' );
101 101
 			$table->addIndex( array( 'parentid' ), 'idx_fosad_pid' );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 			return $schema;
113 113
 		},
114 114
 
115
-		'fos_user_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
115
+		'fos_user_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
116 116
 
117 117
 			$table = $schema->createTable( 'fos_user_list_type' );
118 118
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			return $schema;
137 137
 		},
138 138
 
139
-		'fos_user_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
139
+		'fos_user_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
140 140
 
141 141
 			$table = $schema->createTable( 'fos_user_list' );
142 142
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 			return $schema;
166 166
 		},
167 167
 
168
-		'fos_user_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
168
+		'fos_user_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
169 169
 
170 170
 			$table = $schema->createTable( 'fos_user_property_type' );
171 171
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
 			return $schema;
190 190
 		},
191 191
 
192
-		'fos_user_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
192
+		'fos_user_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
193 193
 
194 194
 			$table = $schema->createTable( 'fos_user_property' );
195 195
 
Please login to merge, or discard this patch.