Passed
Push — master ( b7c60c...771ab2 )
by Aimeos
05:10
created
lib/mwlib/src/MW/DB/Statement/PDO/Prepared.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,9 +59,12 @@
 block discarded – undo
59 59
 	 */
60 60
 	public function execute()
61 61
 	{
62
-		try {
62
+		try
63
+		{
63 64
 			$stmt = $this->exec();
64
-		} catch( \PDOException $e ) {
65
+		}
66
+		catch( \PDOException $e )
67
+		{
65 68
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
66 69
 		}
67 70
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/DB/Statement/DBAL/Prepared.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,9 +58,12 @@
 block discarded – undo
58 58
 	 */
59 59
 	public function execute()
60 60
 	{
61
-		try {
61
+		try
62
+		{
62 63
 			$stmt = $this->exec();
63
-		} catch( \PDOException $e ) {
64
+		}
65
+		catch( \PDOException $e )
66
+		{
64 67
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode() );
65 68
 		}
66 69
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Common/Manager/Base.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
 		foreach( $attributes as $key => $item )
70 70
 		{
71 71
 			if( $item instanceof $iface ) {
72
-				$list[ $item->getCode() ] = $item->getFunction();
72
+				$list[$item->getCode()] = $item->getFunction();
73 73
 			} else if( isset( $item['code'] ) ) {
74
-				$list[ $item['code'] ] = $item['function'];
74
+				$list[$item['code']] = $item['function'];
75 75
 			} else {
76 76
 				throw new \Aimeos\MW\Common\Exception( sprintf( 'Invalid attribute at position "%1$d"', $key ) );
77 77
 			}
@@ -97,9 +97,9 @@  discard block
 block discarded – undo
97 97
 		foreach( $attributes as $key => $item )
98 98
 		{
99 99
 			if( $item instanceof $iface ) {
100
-				$translations[ $item->getCode() ] = $item->getInternalCode();
100
+				$translations[$item->getCode()] = $item->getInternalCode();
101 101
 			} else if( isset( $item['code'] ) ) {
102
-				$translations[ $item['code'] ] = $item['internalcode'];
102
+				$translations[$item['code']] = $item['internalcode'];
103 103
 			} else {
104 104
 				throw new \Aimeos\MW\Common\Exception( sprintf( 'Invalid attribute at position "%1$d"', $key ) );
105 105
 			}
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
 		foreach( $attributes as $key => $item )
126 126
 		{
127 127
 			if( $item instanceof $iface ) {
128
-				$types[ $item->getCode() ] = $item->getInternalType();
128
+				$types[$item->getCode()] = $item->getInternalType();
129 129
 			} else if( isset( $item['code'] ) ) {
130
-				$types[ $item['code'] ] = $item['internaltype'];
130
+				$types[$item['code']] = $item['internaltype'];
131 131
 			} else {
132 132
 				throw new \Aimeos\MW\Common\Exception( sprintf( 'Invalid attribute at position "%1$d"', $key ) );
133 133
 			}
Please login to merge, or discard this patch.
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.