Passed
Push — master ( 47e37b...2360ce )
by Aimeos
05:11
created
lib/mshoplib/setup/default/DemoAddCatalogData.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,9 @@  discard block
 block discarded – undo
66 66
 			$this->removeItems( $item->getId(), 'catalog/lists', 'catalog', 'text' );
67 67
 			$this->removeListItems( $item->getId(), 'catalog/lists', 'product' );
68 68
 		}
69
-		catch( \Exception $e ) {; } // If no root node was already inserted into the database
69
+		catch( \Exception $e )
70
+		{
71
+; } // If no root node was already inserted into the database
70 72
 
71 73
 
72 74
 		if( $value === '1' )
@@ -103,8 +105,7 @@  discard block
 block discarded – undo
103 105
 			}
104 106
 
105 107
 			$this->status( 'added' );
106
-		}
107
-		else
108
+		} else
108 109
 		{
109 110
 			$this->status( 'removed' );
110 111
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddServiceData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,8 +89,7 @@
 block discarded – undo
89 89
 			}
90 90
 
91 91
 			$this->status( 'added' );
92
-		}
93
-		else
92
+		} else
94 93
 		{
95 94
 			$this->status( 'removed' );
96 95
 		}
Please login to merge, or discard this patch.
controller/common/src/Controller/Common/Order/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@
 block discarded – undo
165 165
 		foreach( $bundleItems as $bundleItem )
166 166
 		{
167 167
 			foreach( $bundleItem->getRefItems( 'product', null, 'default' ) as $item ) {
168
-				$bundleMap[ $item->getCode() ][] = $bundleItem->getCode();
168
+				$bundleMap[$item->getCode()][] = $bundleItem->getCode();
169 169
 			}
170 170
 		}
171 171
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,8 @@
 block discarded – undo
334 334
 				{
335 335
 					$stockManager->decrease( [$item->getProductCode() => $how * -1 * $item->getQuantity()], $item->getStockType() );
336 336
 
337
-					switch( $item->getType() ) {
337
+					switch( $item->getType() )
338
+					{
338 339
 						case 'default':
339 340
 							$this->updateStockBundle( $item->getProductId(), $item->getStockType() ); break;
340 341
 						case 'select':
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Order/Manager/Base/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -335,7 +335,7 @@
 block discarded – undo
335 335
 
336 336
 	public function testSearchItemsDefault()
337 337
 	{
338
-		$search = $this->object->createSearch(  true );
338
+		$search = $this->object->createSearch( true );
339 339
 		$items = $this->object->searchItems( $search );
340 340
 
341 341
 		$this->assertEquals( 0, count( $items ) );
Please login to merge, or discard this patch.
lib/mwlib/tests/MW/Criteria/Expression/Combine/PHPTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 		);
73 73
 
74 74
 		$expr1 = [];
75
-		$expr1[] = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'listitem', array('a', 'b', 'c') );
75
+		$expr1[] = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'listitem', array( 'a', 'b', 'c' ) );
76 76
 		$expr1[] = new \Aimeos\MW\Criteria\Expression\Compare\PHP( '==', 'stringvar', 'value' );
77 77
 
78 78
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/text.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 
16 16
 	'table' => array(
17
-		'mshop_text_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
17
+		'mshop_text_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
18 18
 
19 19
 			$table = $schema->createTable( 'mshop_text_type' );
20 20
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 			return $schema;
38 38
 		},
39 39
 
40
-		'mshop_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
40
+		'mshop_text' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
41 41
 
42 42
 			$table = $schema->createTable( 'mshop_text' );
43 43
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 			$table->addColumn( 'status', 'smallint', [] );
52 52
 			$table->addColumn( 'mtime', 'datetime', [] );
53 53
 			$table->addColumn( 'ctime', 'datetime', [] );
54
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
54
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
55 55
 
56 56
 			$table->setPrimaryKey( array( 'id' ), 'pk_mstex_id' );
57 57
 			$table->addIndex( array( 'siteid', 'domain', 'status' ), 'idx_mstex_sid_domain_status' );
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 			return $schema;
66 66
 		},
67 67
 
68
-		'mshop_text_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
68
+		'mshop_text_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
69 69
 
70 70
 			$table = $schema->createTable( 'mshop_text_list_type' );
71 71
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 			return $schema;
89 89
 		},
90 90
 
91
-		'mshop_text_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
91
+		'mshop_text_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
92 92
 
93 93
 			$table = $schema->createTable( 'mshop_text_list' );
94 94
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/supplier.php 1 patch
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
-		'mshop_supplier' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
12
+		'mshop_supplier' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
13 13
 
14 14
 			$table = $schema->createTable( 'mshop_supplier' );
15 15
 
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 			$table->addColumn( 'status', 'smallint', [] );
21 21
 			$table->addColumn( 'mtime', 'datetime', [] );
22 22
 			$table->addColumn( 'ctime', 'datetime', [] );
23
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
23
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
24 24
 
25 25
 			$table->setPrimaryKey( array( 'id' ), 'pk_mssup_id' );
26 26
 			$table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mssup_sid_code' );
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 			return $schema;
31 31
 		},
32 32
 
33
-		'mshop_supplier_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
33
+		'mshop_supplier_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
34 34
 
35 35
 			$table = $schema->createTable( 'mshop_supplier_address' );
36 36
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 			$table->addColumn( 'pos', 'smallint', [] );
62 62
 			$table->addColumn( 'mtime', 'datetime', [] );
63 63
 			$table->addColumn( 'ctime', 'datetime', [] );
64
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
64
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
65 65
 
66 66
 			$table->setPrimaryKey( array( 'id' ), 'pk_mssupad_id' );
67 67
 			$table->addIndex( array( 'siteid', 'parentid' ), 'idx_mssupad_sid_rid' );
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 			return $schema;
74 74
 		},
75 75
 
76
-		'mshop_supplier_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
76
+		'mshop_supplier_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
77 77
 
78 78
 			$table = $schema->createTable( 'mshop_supplier_list_type' );
79 79
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 			return $schema;
97 97
 		},
98 98
 
99
-		'mshop_supplier_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
99
+		'mshop_supplier_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
100 100
 
101 101
 			$table = $schema->createTable( 'mshop_supplier_list' );
102 102
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/service.php 1 patch
Spacing   +5 added lines, -5 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
-		'mshop_service_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_service_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'mshop_service_type' );
14 14
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			return $schema;
32 32
 		},
33 33
 
34
-		'mshop_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
34
+		'mshop_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
35 35
 
36 36
 			$table = $schema->createTable( 'mshop_service' );
37 37
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 			$table->addColumn( 'status', 'smallint', [] );
47 47
 			$table->addColumn( 'mtime', 'datetime', [] );
48 48
 			$table->addColumn( 'ctime', 'datetime', [] );
49
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
49
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
50 50
 
51 51
 			$table->setPrimaryKey( array( 'id' ), 'pk_msser_id' );
52 52
 			$table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_msser_siteid_code' );
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 			return $schema;
64 64
 		},
65 65
 
66
-		'mshop_service_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
66
+		'mshop_service_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
67 67
 
68 68
 			$table = $schema->createTable( 'mshop_service_list_type' );
69 69
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 			return $schema;
87 87
 		},
88 88
 
89
-		'mshop_service_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
89
+		'mshop_service_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
90 90
 
91 91
 			$table = $schema->createTable( 'mshop_service_list' );
92 92
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/ProductRenameStockWarehouse.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,8 +70,7 @@  discard block
 block discarded – undo
70 70
 		) {
71 71
 			$this->execute( $this->stmts['constraint'], 'db-product' );
72 72
 			$this->status( 'done' );
73
-		}
74
-		else
73
+		} else
75 74
 		{
76 75
 			$this->status( 'OK' );
77 76
 		}
@@ -84,8 +83,7 @@  discard block
 block discarded – undo
84 83
 		) {
85 84
 			$this->execute( $this->stmts['constraint2'], 'db-product' );
86 85
 			$this->status( 'done' );
87
-		}
88
-		else
86
+		} else
89 87
 		{
90 88
 			$this->status( 'OK' );
91 89
 		}
@@ -98,8 +96,7 @@  discard block
 block discarded – undo
98 96
 		) {
99 97
 			$this->execute( $this->stmts['typeid'], 'db-product' );
100 98
 			$this->status( 'done' );
101
-		}
102
-		else
99
+		} else
103 100
 		{
104 101
 			$this->status( 'OK' );
105 102
 		}
@@ -111,8 +108,7 @@  discard block
 block discarded – undo
111 108
 		{
112 109
 			$this->execute( $this->stmts['table'], 'db-product' );
113 110
 			$this->status( 'done' );
114
-		}
115
-		else
111
+		} else
116 112
 		{
117 113
 			$this->status( 'OK' );
118 114
 		}
Please login to merge, or discard this patch.