Passed
Push — master ( cc1d41...1d07bd )
by Aimeos
05:39
created
lib/mwlib/tests/MW/Criteria/Attribute/StandardTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 			'function' => $func,
33 33
 		);
34 34
 
35
-		$this->object = new \Aimeos\MW\Criteria\Attribute\Standard($values);
35
+		$this->object = new \Aimeos\MW\Criteria\Attribute\Standard( $values );
36 36
 	}
37 37
 
38 38
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
 	public function testGetInternalDeps()
70 70
 	{
71
-		$this->assertEquals(array( 'test' ), $this->object->getInternalDeps());
71
+		$this->assertEquals( array( 'test' ), $this->object->getInternalDeps() );
72 72
 	}
73 73
 
74 74
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Locale/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -317,8 +317,7 @@
 block discarded – undo
317 317
 				 * @see mshop/locale/manager/standard/count/ansi
318 318
 				 */
319 319
 				$path = 'mshop/locale/manager/standard/insert';
320
-			}
321
-			else
320
+			} else
322 321
 			{
323 322
 				/** mshop/locale/manager/standard/update/mysql
324 323
 				 * Updates an existing locale record in the database
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/media-property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'media/property/type' => array(
10 10
 		'media/property/type/size' => array( 'domain' => 'media', 'code' => 'size', 'label' => 'Size', 'status' => 1 ),
11 11
 		'media/property/type/mtime' => array( 'domain' => 'media', 'code' => 'mtime', 'label' => 'Modification time', 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/data/attribute-property.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
  * @copyright Aimeos (aimeos.org), 2017-2018
6 6
  */
7 7
 
8
-return array (
8
+return array(
9 9
 	'attribute/property/type' => array(
10 10
 		'attribute/property/type/size' => array( 'domain' => 'attribute', 'code' => 'size', 'label' => 'Size', 'position' => 0, 'status' => 1 ),
11 11
 		'attribute/property/type/mtime' => array( 'domain' => 'attribute', 'code' => 'mtime', 'label' => 'Modification time', 'position' => 1, 'status' => 1 ),
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Stock/Manager/Nolimit.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,7 @@
 block discarded – undo
137 137
 			foreach( $cond->getExpressions() as $expr ) {
138 138
 				$list = array_merge( $list, $this->getProductCodes( $expr ) );
139 139
 			}
140
-		}
141
-		elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
140
+		} elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
142 141
 		{
143 142
 			if( $cond->getName() === 'stock.productcode' && $cond->getOperator() === '==' ) {
144 143
 				$list = array_merge( $list, (array) $cond->getValue() );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/SubscriptionAddTestData.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
 
74 74
 		foreach( $testdata['subscription'] as $key => $dataset )
75 75
 		{
76
-			$ordProdItem = $this->getOrderProductItem( $dataset['ordprodid'] ) ;
76
+			$ordProdItem = $this->getOrderProductItem( $dataset['ordprodid'] );
77 77
 
78 78
 			$item = $subscriptionManager->createItem();
79 79
 			$item->setOrderBaseId( $ordProdItem->getBaseId() );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Service/Provider/Decorator/Supplier.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
 			foreach( $addresses as $id => $addr )
76 76
 			{
77
-				$addrId = ( count( $addresses ) > 1) ? $item->getCode() . '-' . $id : $item->getCode();
77
+				$addrId = ( count( $addresses ) > 1 ) ? $item->getCode() . '-' . $id : $item->getCode();
78 78
 
79 79
 				$this->feConfig['supplier.code']['default'][$addrId] = preg_replace( "/\n+/m", "\n", sprintf(
80 80
 					/// Supplier address format with label (%1$s), company (%2$s),
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 					/// address part one (%3$s, e.g street), address part two (%4$s, e.g house number), address part three (%5$s, e.g additional information),
113 113
 					/// postal/zip code (%6$s), city (%7$s), state (%8$s), country ID (%9$s),
114 114
 					/// e-mail (%10$s), phone (%11$s), facsimile/telefax (%12$s), web site (%13$s)
115
-					$context->getI18n()->dt( 'mshop', '%1$s, %2$s, %3$s %4$s, %6$s %7$s'),
115
+					$context->getI18n()->dt( 'mshop', '%1$s, %2$s, %3$s %4$s, %6$s %7$s' ),
116 116
 					$item->getLabel(),
117 117
 					$addr->getCompany(),
118 118
 					$addr->getAddress1(),
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 			$attributes['supplier.address'] = $this->feConfig['supplier.code']['short'][$code];
193 193
 
194 194
 			// remove code attribute for summary page / customer email
195
-			if( $this->getConfigValue('supplier.display-code') == 0 ) {
195
+			if( $this->getConfigValue( 'supplier.display-code' ) == 0 ) {
196 196
 				unset( $attributes['supplier.code'] );
197 197
 			}
198 198
 		}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,9 @@
 block discarded – undo
172 172
 				$feconfig['supplier.code']['default'] = [$value => $address] + $feconfig['supplier.code']['default'];
173 173
 			}
174 174
 		}
175
-		catch( \Aimeos\MShop\Service\Exception $e ) {} // If service isn't available
175
+		catch( \Aimeos\MShop\Service\Exception $e )
176
+		{
177
+} // If service isn't available
176 178
 
177 179
 		return array_merge( $this->getProvider()->getConfigFE( $basket ), $this->getConfigItems( $feconfig ) );
178 180
 	}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Manager/Address/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
 			$stmt->bind( 6, $item->getFirstname() );
140 140
 			$stmt->bind( 7, $item->getLastname() );
141 141
 			$stmt->bind( 8, $item->getAddress1() );
142
-			$stmt->bind( 9, $item->getAddress2());
142
+			$stmt->bind( 9, $item->getAddress2() );
143 143
 			$stmt->bind( 10, $item->getAddress3() );
144 144
 			$stmt->bind( 11, $item->getPostal() );
145 145
 			$stmt->bind( 12, $item->getCity() );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Index/Manager/Attribute/Standard.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -713,7 +713,7 @@
 block discarded – undo
713 713
 
714 714
 				try {
715 715
 					$stmt->execute()->finish();
716
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
716
+				} catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates
717 717
 			}
718 718
 		}
719 719
 	}
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -670,9 +670,13 @@
 block discarded – undo
670 670
 				$stmt->bind( 6, $date ); // mtime
671 671
 				$stmt->bind( 7, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT );
672 672
 
673
-				try {
673
+				try
674
+				{
674 675
 					$stmt->execute()->finish();
675
-				} catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates
676
+				}
677
+				catch( \Aimeos\MW\DB\Exception $e )
678
+				{
679
+; } // Ignore duplicates
676 680
 			}
677 681
 		}
678 682
 	}
Please login to merge, or discard this patch.