Passed
Push — master ( a3e004...b231c1 )
by Aimeos
07:52 queued 02:33
created
lib/mwlib/src/MW/DB/Manager/PDO.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -110,7 +110,8 @@  discard block
 block discarded – undo
110 110
 
111 111
 			return array_pop( $this->connections[$name] );
112 112
 		}
113
-		catch( \PDOException $e ) {
113
+		catch( \PDOException $e )
114
+		{
114 115
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
115 116
 		}
116 117
 	}
@@ -160,14 +161,12 @@  discard block
 block discarded – undo
160 161
 			{
161 162
 				$dsn .= 'Database=' . $dbase;
162 163
 				$dsn .= isset( $host ) ? ';Server=' . $host . ( isset( $port ) ? ',' . $port : '' ) : '';
163
-			}
164
-			elseif( $sock == null )
164
+			} elseif( $sock == null )
165 165
 			{
166 166
 				$dsn .= 'dbname=' . $dbase;
167 167
 				$dsn .= isset( $host ) ? ';host=' . $host : '';
168 168
 				$dsn .= isset( $port ) ? ';port=' . $port : '';
169
-			}
170
-			else
169
+			} else
171 170
 			{
172 171
 				$dsn .= 'dbname=' . $dbase . ';unix_socket=' . $sock;
173 172
 			}
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
@@ -140,8 +140,7 @@
 block discarded – undo
140 140
 			foreach( $cond->getExpressions() as $expr ) {
141 141
 				$list = array_merge( $list, $this->getProductIds( $expr ) );
142 142
 			}
143
-		}
144
-		elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
143
+		} elseif( $cond instanceof \Aimeos\MW\Criteria\Expression\Compare\Iface )
145 144
 		{
146 145
 			if( $cond->getName() === 'stock.productid' && $cond->getOperator() === '==' ) {
147 146
 				$list = array_merge( $list, (array) $cond->getValue() );
Please login to merge, or discard this patch.
lib/mshoplib/setup/unittest/BaseAddTestData.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,9 +173,13 @@
 block discarded – undo
173 173
 
174 174
 				foreach( $testdata[$domain] as $entry )
175 175
 				{
176
-					try {
176
+					try
177
+					{
177 178
 						$manager->save( $manager->create()->fromArray( $entry ), false );
178
-					} catch( \Exception $e ) {} // Duplicate entry
179
+					}
180
+					catch( \Exception $e )
181
+					{
182
+} // Duplicate entry
179 183
 				}
180 184
 			}
181 185
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/MShopAddDataAbstract.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
 				$attrManager->save( $item );
91 91
 				$id = $item->getId();
92
-			}
93
-			else
92
+			} else
94 93
 			{
95 94
 				$id = $attrItem->getId();
96 95
 			}
Please login to merge, or discard this patch.
lib/mwlib/src/MW/Criteria/Expression/Traits.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
 						$list[] = $this->escape( '==', $this->getParamType( $item ), $item );
140 140
 					}
141 141
 					$params[$i] = join( ',', $list );
142
-				}
143
-				else
142
+				} else
144 143
 				{
145 144
 					$params[$i] = $this->escape( '==', $this->getParamType( $params[$i] ), $params[$i] );
146 145
 				}
Please login to merge, or discard this patch.
lib/mshoplib/src/MAdmin/Job/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -206,8 +206,7 @@
 block discarded – undo
206 206
 				 */
207 207
 				$path = 'madmin/job/manager/insert';
208 208
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
209
-			}
210
-			else
209
+			} else
211 210
 			{
212 211
 				/** madmin/job/manager/update/mysql
213 212
 				 * Updates an existing job record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Price/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -442,8 +442,7 @@
 block discarded – undo
442 442
 				 */
443 443
 				$path = 'mshop/price/manager/insert';
444 444
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
445
-			}
446
-			else
445
+			} else
447 446
 			{
448 447
 				/** mshop/price/manager/update/mysql
449 448
 				 * Updates an existing price record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -349,8 +349,7 @@
 block discarded – undo
349 349
 				 */
350 350
 				$path = 'mshop/plugin/manager/insert';
351 351
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
352
-			}
353
-			else
352
+			} else
354 353
 			{
355 354
 				/** mshop/plugin/manager/update/mysql
356 355
 				 * Updates an existing plugin record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Manager/Base/Address/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -665,8 +665,7 @@
 block discarded – undo
665 665
 				 */
666 666
 				$path = 'mshop/order/manager/base/address/insert';
667 667
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
668
-			}
669
-			else
668
+			} else
670 669
 			{
671 670
 				/** mshop/order/manager/base/address/update/mysql
672 671
 				 * Updates an existing order record in the database
Please login to merge, or discard this patch.