Passed
Branch master (ba77f4)
by Aimeos
03:57
created
lib/custom/setup/unittest/data/customer-list.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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 ),
Please login to merge, or discard this patch.
lib/custom/setup/unittest/data/customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
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' ),
Please login to merge, or discard this patch.
lib/custom/setup/default/schema/customer.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/custom/setup/CustomerAddVatidTypo3.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 	 */
39 39
 	public function getPostDependencies()
40 40
 	{
41
-		return array('TablesCreateTypo3');
41
+		return array( 'TablesCreateTypo3' );
42 42
 	}
43 43
 
44 44
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/custom/setup/FEUsersAddSiteIdTypo3.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
lib/custom/setup/CustomerRemoveLostUserDataTypo3.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.