Completed
Branch master (d75b5f)
by Aimeos
03:45
created
lib/custom/setup/EzuserAddAddress.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
 		{
51 51
 			$this->executeList( $sql, 'db-customer' );
52 52
 			$this->status( 'done' );
53
-		}
54
-		else
53
+		} else
55 54
 		{
56 55
 			$this->status( 'OK' );
57 56
 		}
Please login to merge, or discard this patch.
lib/custom/src/MShop/Customer/Manager/Ezpublish.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -403,8 +403,8 @@  discard block
 block discarded – undo
403 403
 
404 404
 			while( ( $row = $results->fetch() ) !== false )
405 405
 			{
406
-				$map[ $row['customer.id'] ] = $row;
407
-				$map[ $row['customer.id'] ]['groups'] = [];
406
+				$map[$row['customer.id']] = $row;
407
+				$map[$row['customer.id']]['groups'] = [];
408 408
 			}
409 409
 
410 410
 
@@ -413,14 +413,14 @@  discard block
 block discarded – undo
413 413
 			$results = $stmt->execute();
414 414
 
415 415
 			while( ( $row = $results->fetch() ) !== false ) {
416
-				$map[ $row['contentobject_id'] ]['groups'][] = $row['role_id'];
416
+				$map[$row['contentobject_id']]['groups'][] = $row['role_id'];
417 417
 			}
418 418
 
419 419
 			$dbm->release( $conn, $dbname );
420 420
 		}
421 421
 		catch( \Exception $e )
422 422
 		{
423
-			$dbm->release( $conn, $dbname  );
423
+			$dbm->release( $conn, $dbname );
424 424
 			throw $e;
425 425
 		}
426 426
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -314,8 +314,7 @@
 block discarded – undo
314 314
 
315 315
 			$user = $service->loadUser( $item->getId() );
316 316
 			$service->updateUser( $user, $struct );
317
-		}
318
-		else
317
+		} else
319 318
 		{
320 319
 			$struct = $service->newUserCreateStruct( $item->getCode(), $email, $item->getPassword(), 'eng-GB' );
321 320
 			$struct->enabled = $item->getStatus();
Please login to merge, or discard this patch.
lib/custom/setup/default/schema/customer.php 2 patches
Spacing   +7 added lines, -7 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
-		'ezuser' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'ezuser' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'ezuser' );
14 14
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 			return $schema;
26 26
 		},
27 27
 
28
-		'ezuser_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
28
+		'ezuser_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
29 29
 
30 30
 			$table = $schema->createTable( 'ezuser_address' );
31 31
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 			$table->addColumn( 'pos', 'smallint', [] );
54 54
 			$table->addColumn( 'mtime', 'datetime', [] );
55 55
 			$table->addColumn( 'ctime', 'datetime', [] );
56
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
56
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
57 57
 
58 58
 			$table->setPrimaryKey( array( 'id' ), 'pk_ezpad_id' );
59 59
 			$table->addIndex( array( 'lastname', 'firstname' ), 'idx_ezpad_ln_fn' );
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 			return $schema;
69 69
 		},
70 70
 
71
-		'ezuser_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
71
+		'ezuser_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
72 72
 
73 73
 			$table = $schema->createTable( 'ezuser_list_type' );
74 74
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			return $schema;
93 93
 		},
94 94
 
95
-		'ezuser_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
95
+		'ezuser_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
96 96
 
97 97
 			$table = $schema->createTable( 'ezuser_list' );
98 98
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 			return $schema;
122 122
 		},
123 123
 
124
-		'ezuser_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
124
+		'ezuser_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
125 125
 
126 126
 			$table = $schema->createTable( 'ezuser_property_type' );
127 127
 
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 			return $schema;
146 146
 		},
147 147
 
148
-		'ezuser_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
148
+		'ezuser_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
149 149
 
150 150
 			$table = $schema->createTable( 'ezuser_property' );
151 151
 
Please login to merge, or discard this patch.
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,8 @@  discard block
 block discarded – undo
8 8
 
9 9
 return array(
10 10
 	'table' => array(
11
-		'ezuser' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'ezuser' => function ( \Doctrine\DBAL\Schema\Schema $schema )
12
+		{
12 13
 
13 14
 			$table = $schema->createTable( 'ezuser' );
14 15
 
@@ -25,7 +26,8 @@  discard block
 block discarded – undo
25 26
 			return $schema;
26 27
 		},
27 28
 
28
-		'ezuser_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
29
+		'ezuser_address' => function ( \Doctrine\DBAL\Schema\Schema $schema )
30
+		{
29 31
 
30 32
 			$table = $schema->createTable( 'ezuser_address' );
31 33
 
@@ -68,7 +70,8 @@  discard block
 block discarded – undo
68 70
 			return $schema;
69 71
 		},
70 72
 
71
-		'ezuser_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
73
+		'ezuser_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
74
+		{
72 75
 
73 76
 			$table = $schema->createTable( 'ezuser_list_type' );
74 77
 
@@ -92,7 +95,8 @@  discard block
 block discarded – undo
92 95
 			return $schema;
93 96
 		},
94 97
 
95
-		'ezuser_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
98
+		'ezuser_list' => function ( \Doctrine\DBAL\Schema\Schema $schema )
99
+		{
96 100
 
97 101
 			$table = $schema->createTable( 'ezuser_list' );
98 102
 
@@ -121,7 +125,8 @@  discard block
 block discarded – undo
121 125
 			return $schema;
122 126
 		},
123 127
 
124
-		'ezuser_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
128
+		'ezuser_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
129
+		{
125 130
 
126 131
 			$table = $schema->createTable( 'ezuser_property_type' );
127 132
 
@@ -145,7 +150,8 @@  discard block
 block discarded – undo
145 150
 			return $schema;
146 151
 		},
147 152
 
148
-		'ezuser_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
153
+		'ezuser_property' => function ( \Doctrine\DBAL\Schema\Schema $schema )
154
+		{
149 155
 
150 156
 			$table = $schema->createTable( 'ezuser_property' );
151 157
 
Please login to merge, or discard this patch.
lib/custom/tests/MShop/Customer/Manager/Lists/EzpublishTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
 
47 47
 	public function testGetSubManager()
48 48
 	{
49
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') );
50
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') );
49
+		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) );
50
+		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Standard' ) );
51 51
 
52 52
 		$this->setExpectedException( '\\Aimeos\\MShop\\Exception' );
53 53
 		$this->object->getSubManager( 'unknown' );
Please login to merge, or discard this patch.
lib/custom/tests/MShop/Customer/Manager/Property/EzpublishTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
 
47 47
 	public function testGetSubManager()
48 48
 	{
49
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type') );
50
-		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager('type', 'Standard') );
49
+		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type' ) );
50
+		$this->assertInstanceOf( '\\Aimeos\\MShop\\Common\\Manager\\Iface', $this->object->getSubManager( 'type', 'Standard' ) );
51 51
 
52 52
 		$this->setExpectedException( '\\Aimeos\\MShop\\Exception' );
53 53
 		$this->object->getSubManager( 'unknown' );
Please login to merge, or discard this patch.