Passed
Push — master ( 50e989...69e622 )
by Aimeos
05:21
created
lib/mshoplib/setup/OrderRenameBaseProductAmountToQuantity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
 			{
68 68
 				$this->execute( $stmt );
69 69
 				$this->status( 'renamed' );
70
-			}
71
-			else
70
+			} else
72 71
 			{
73 72
 				$this->status( 'OK' );
74 73
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/ProductMigratePropertyTypeDomain.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,7 @@
 block discarded – undo
81 81
 			} else {
82 82
 				$this->status( 'OK' );
83 83
 			}
84
-		}
85
-		else
84
+		} else
86 85
 		{
87 86
 			$this->status( 'OK' );
88 87
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/text.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  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 20
 			$table = $schema->createTable( 'mshop_text_type' );
20 21
 
@@ -37,7 +38,8 @@  discard block
 block discarded – undo
37 38
 			return $schema;
38 39
 		},
39 40
 
40
-		'mshop_text' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
41
+		'mshop_text' => function ( \Doctrine\DBAL\Schema\Schema $schema )
42
+		{
41 43
 
42 44
 			$table = $schema->createTable( 'mshop_text' );
43 45
 
@@ -65,7 +67,8 @@  discard block
 block discarded – undo
65 67
 			return $schema;
66 68
 		},
67 69
 
68
-		'mshop_text_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
70
+		'mshop_text_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema )
71
+		{
69 72
 
70 73
 			$table = $schema->createTable( 'mshop_text_list_type' );
71 74
 
@@ -88,7 +91,8 @@  discard block
 block discarded – undo
88 91
 			return $schema;
89 92
 		},
90 93
 
91
-		'mshop_text_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
94
+		'mshop_text_list' => function ( \Doctrine\DBAL\Schema\Schema $schema )
95
+		{
92 96
 
93 97
 			$table = $schema->createTable( 'mshop_text_list' );
94 98
 
Please login to merge, or discard this 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/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/setup/OrderMigrateFlag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
 			{
79 79
 				$this->execute( $stmts['index'] );
80 80
 				$this->status( 'dropped' );
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->status( 'OK' );
85 84
 			}
@@ -125,8 +124,7 @@  discard block
 block discarded – undo
125 124
 				} else {
126 125
 					$this->status( 'OK' );
127 126
 				}
128
-			}
129
-			else
127
+			} else
130 128
 			{
131 129
 				$this->status( 'OK' );
132 130
 			}
Please login to merge, or discard this patch.
lib/mshoplib/tests/MShop/Service/Provider/Decorator/BaseTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
 
20 20
 		$servManager = \Aimeos\MShop\Service\Manager\Factory::createManager( $this->context );
21 21
 		$search = $servManager->createSearch();
22
-		$search->setConditions($search->compare('==', 'service.provider', 'Standard'));
23
-		$result = $servManager->searchItems($search, array('price'));
22
+		$search->setConditions( $search->compare( '==', 'service.provider', 'Standard' ) );
23
+		$result = $servManager->searchItems( $search, array( 'price' ) );
24 24
 
25 25
 		if( ( $item = reset( $result ) ) === false ) {
26 26
 			throw new \RuntimeException( 'No order base item found' );
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.