Passed
Pull Request — master (#182)
by Simon
05:27
created
lib/mwlib/src/MW/DB/Statement/PDO/Simple.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,9 +86,12 @@
 block discarded – undo
86 86
 			throw new \Aimeos\MW\DB\Exception( sprintf( $msg, count( $this->binds ), implode( '?', $this->parts ) ) );
87 87
 		}
88 88
 
89
-		try {
89
+		try
90
+		{
90 91
 			$result = $this->exec();
91
-		} catch( \PDOException $e ) {
92
+		}
93
+		catch( \PDOException $e )
94
+		{
92 95
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() );
93 96
 		}
94 97
 
Please login to merge, or discard this patch.
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() . ': ' . $this->sql, $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() . ': ' . $this->sql, $e->getCode() );
65 68
 		}
66 69
 
Please login to merge, or discard this patch.
lib/mwlib/src/MW/DB/Statement/DBAL/Simple.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,9 +86,12 @@
 block discarded – undo
86 86
 			throw new \Aimeos\MW\DB\Exception( sprintf( $msg, count( $this->binds ), implode( '?', $this->parts ) ) );
87 87
 		}
88 88
 
89
-		try {
89
+		try
90
+		{
90 91
 			$result = $this->exec();
91
-		} catch( \PDOException $e ) {
92
+		}
93
+		catch( \PDOException $e )
94
+		{
92 95
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() );
93 96
 		}
94 97
 
Please login to merge, or discard this patch.
lib/mshoplib/setup/AttributeMigrateKey.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@
 block discarded – undo
69 69
 			$dbm->release( $conn, $rname );
70 70
 
71 71
 			$this->status( 'done' );
72
-		}
73
-		else
72
+		} else
74 73
 		{
75 74
 			$this->status( 'OK' );
76 75
 		}
Please login to merge, or discard this patch.
lib/mshoplib/setup/TablesMigratePropertyKey.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,7 @@
 block discarded – undo
80 80
 				$dbm->release( $conn, $rname );
81 81
 
82 82
 				$this->status( 'done' );
83
-			}
84
-			else
83
+			} else
85 84
 			{
86 85
 				$this->status( 'OK' );
87 86
 			}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Text/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -264,8 +264,7 @@
 block discarded – undo
264 264
 				 */
265 265
 				$path = 'mshop/text/manager/standard/insert';
266 266
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
267
-			}
268
-			else
267
+			} else
269 268
 			{
270 269
 				/** mshop/text/manager/standard/update/mysql
271 270
 				 * Updates an existing text record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -517,8 +517,7 @@
 block discarded – undo
517 517
 				 */
518 518
 				$path = 'mshop/customer/manager/standard/insert';
519 519
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
520
-			}
521
-			else
520
+			} else
522 521
 			{
523 522
 				/** mshop/customer/manager/standard/update/mysql
524 523
 				 * Updates an existing customer record in the database
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Customer/Manager/Group/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -306,8 +306,7 @@
 block discarded – undo
306 306
 				 */
307 307
 				$path = 'mshop/customer/manager/group/standard/insert';
308 308
 				$sql = $this->addSqlColumns( array_keys( $columns ), $this->getSqlConfig( $path ) );
309
-			}
310
-			else
309
+			} else
311 310
 			{
312 311
 				/** mshop/customer/manager/group/standard/update/mysql
313 312
 				 * Updates an existing customer group record in the database
Please login to merge, or discard this patch.