Passed
Push — master ( f7bbd3...17cd43 )
by Aimeos
04:27
created
lib/mshoplib/tests/MShop/Coupon/Provider/Decorator/OnceTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	public function testIsAvailable()
44 44
 	{
45 45
 		$provider = new \Aimeos\MShop\Coupon\Provider\Example( $this->context, $this->couponItem, 'ABCD' );
46
-		$object = new \Aimeos\MShop\Coupon\Provider\Decorator\Once( $provider, $this->context, $this->couponItem, 'ABCD');
46
+		$object = new \Aimeos\MShop\Coupon\Provider\Decorator\Once( $provider, $this->context, $this->couponItem, 'ABCD' );
47 47
 		$object->setObject( $object );
48 48
 
49 49
 		$this->assertTrue( $object->isAvailable( $this->orderBase ) );
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	public function testIsAvailableExisting()
54 54
 	{
55 55
 		$provider = new \Aimeos\MShop\Coupon\Provider\Example( $this->context, $this->couponItem, 'OPQR' );
56
-		$object = new \Aimeos\MShop\Coupon\Provider\Decorator\Once( $provider, $this->context, $this->couponItem, 'OPQR');
56
+		$object = new \Aimeos\MShop\Coupon\Provider\Decorator\Once( $provider, $this->context, $this->couponItem, 'OPQR' );
57 57
 		$object->setObject( $object );
58 58
 
59 59
 		$this->assertFalse( $object->isAvailable( $this->orderBase ) );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Item/Base/Coupon/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
122 122
 	{
123 123
 		if( (string) $code !== $this->getCode() )
124 124
 		{
125
-			$this->values['order.base.coupon.code'] = (string) $this->checkCode( $code );;
125
+			$this->values['order.base.coupon.code'] = (string) $this->checkCode( $code ); ;
126 126
 			$this->setModified();
127 127
 		}
128 128
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Price/Item/Standard.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -380,7 +380,7 @@
 block discarded – undo
380 380
 	 *
381 381
 	 * @param boolean $flag True if tax is included in the price value, costs and rebate, false if not
382 382
 	 * @return \Aimeos\MShop\Price\Item\Iface Price item for chaining method calls
383
-	*/
383
+	 */
384 384
 	public function setTaxFlag( $flag )
385 385
 	{
386 386
 		if( (bool) $flag !== $this->getTaxFlag() )
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Base.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
 		if( in_array( $op, $operators['combine'], true ) ) {
92 92
 			return $this->createCombineExpression( $op, (array) $value );
93
-		}
94
-		else if( in_array( $op, $operators['compare'], true ) ) {
93
+		} else if( in_array( $op, $operators['compare'], true ) ) {
95 94
 			return $this->createCompareExpression( $op, (array) $value );
96 95
 		}
97 96
 
@@ -145,11 +144,9 @@  discard block
 block discarded – undo
145 144
 
146 145
 			if( in_array( $op, $operators['combine'] ) ) {
147 146
 				$results[] = $this->createCombineExpression( $op, (array) $entry[$op] );
148
-			}
149
-			else if( in_array( $op, $operators['compare'] ) ) {
147
+			} else if( in_array( $op, $operators['compare'] ) ) {
150 148
 				$results[] = $this->createCompareExpression( $op, (array) $entry[$op] );
151
-			}
152
-			else {
149
+			} else {
153 150
 				throw new \Aimeos\MW\Common\Exception( sprintf( 'Invalid operator "%1$s"', $op ) );
154 151
 			}
155 152
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Decorator/Quantity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
 				foreach( $products as $prodItem ) { // calculate bundled products
99 99
 					$sum += $qty * $prodItem->getQuantity();
100 100
 				}
101
-			}
102
-			else
101
+			} else
103 102
 			{
104 103
 				$sum += $qty;
105 104
 			}
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/media.php 1 patch
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
-		'mshop_media_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
11
+		'mshop_media_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
12 12
 
13 13
 			$table = $schema->createTable( 'mshop_media_type' );
14 14
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 			return $schema;
32 32
 		},
33 33
 
34
-		'mshop_media' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
34
+		'mshop_media' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
35 35
 
36 36
 			$table = $schema->createTable( 'mshop_media' );
37 37
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 			$table->addColumn( 'status', 'smallint', [] );
48 48
 			$table->addColumn( 'mtime', 'datetime', [] );
49 49
 			$table->addColumn( 'ctime', 'datetime', [] );
50
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
50
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
51 51
 
52 52
 			$table->setPrimaryKey( array( 'id' ), 'pk_msmed_id' );
53 53
 			$table->addIndex( array( 'siteid', 'domain', 'langid' ), 'idx_msmed_sid_dom_langid' );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 			return $schema;
63 63
 		},
64 64
 
65
-		'mshop_media_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
65
+		'mshop_media_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
66 66
 
67 67
 			$table = $schema->createTable( 'mshop_media_list_type' );
68 68
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 			return $schema;
86 86
 		},
87 87
 
88
-		'mshop_media_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
88
+		'mshop_media_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
89 89
 
90 90
 			$table = $schema->createTable( 'mshop_media_list' );
91 91
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 			return $schema;
124 124
 		},
125 125
 
126
-		'mshop_media_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
126
+		'mshop_media_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
127 127
 
128 128
 			$table = $schema->createTable( 'mshop_media_property_type' );
129 129
 
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 			return $schema;
147 147
 		},
148 148
 
149
-		'mshop_media_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
149
+		'mshop_media_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
150 150
 
151 151
 			$table = $schema->createTable( 'mshop_media_property' );
152 152
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/schema/subscription.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	'table' => array(
12 12
 
13
-		'mshop_subscription' => function ( \Doctrine\DBAL\Schema\Schema $schema ) {
13
+		'mshop_subscription' => function( \Doctrine\DBAL\Schema\Schema $schema ) {
14 14
 
15 15
 			$table = $schema->createTable( 'mshop_subscription' );
16 16
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 			$table->addColumn( 'status', 'smallint', array( 'default' => 0 ) );
24 24
 			$table->addColumn( 'mtime', 'datetime', [] );
25 25
 			$table->addColumn( 'ctime', 'datetime', [] );
26
-			$table->addColumn( 'editor', 'string', array('length' => 255 ) );
26
+			$table->addColumn( 'editor', 'string', array( 'length' => 255 ) );
27 27
 
28 28
 			$table->setPrimaryKey( array( 'id' ), 'pk_mssub_id' );
29 29
 			$table->addIndex( array( 'siteid', 'next', 'status' ), 'idx_mssub_sid_next_stat' );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Subscription/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,8 +276,7 @@
 block discarded – undo
276 276
 				 * @see mshop/subscription/manager/standard/count/ansi
277 277
 				 */
278 278
 				$path = 'mshop/subscription/manager/standard/insert';
279
-			}
280
-			else
279
+			} else
281 280
 			{
282 281
 				/** mshop/subscription/manager/standard/update/mysql
283 282
 				 * Updates an existing subscription record in the database
Please login to merge, or discard this patch.
lib/mshoplib/setup/default/DemoAddSupplierData.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,7 @@
 block discarded – undo
74 74
 			$this->saveItems( $data );
75 75
 
76 76
 			$this->status( 'added' );
77
-		}
78
-		else
77
+		} else
79 78
 		{
80 79
 			$this->status( 'removed' );
81 80
 		}
Please login to merge, or discard this patch.