Passed
Push — master ( 0a4aac...7f04e0 )
by Aimeos
05:24
created
lib/mwlib/src/MW/DB/Result/PDO.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	{
45 45
 		try {
46 46
 			return $this->statement->rowCount();
47
-		} catch ( \PDOException $e ) {
47
+		} catch( \PDOException $e ) {
48 48
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
49 49
 		}
50 50
 	}
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 	{
62 62
 		try {
63 63
 			return $this->statement->fetch( $style ? \PDO::FETCH_ASSOC : \PDO::FETCH_NUM );
64
-		} catch ( \PDOException $e ) {
64
+		} catch( \PDOException $e ) {
65 65
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
66 66
 		}
67 67
 	}
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	{
77 77
 		try {
78 78
 			$this->statement->closeCursor();
79
-		} catch ( \PDOException $e ) {
79
+		} catch( \PDOException $e ) {
80 80
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
81 81
 		}
82 82
 	}
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	{
92 92
 		try {
93 93
 			return $this->statement->nextRowset();
94
-		} catch ( \PDOException $e ) {
94
+		} catch( \PDOException $e ) {
95 95
 			return false;
96 96
 		}
97 97
 	}
Please login to merge, or discard this patch.
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -42,9 +42,12 @@  discard block
 block discarded – undo
42 42
 	 */
43 43
 	public function affectedRows()
44 44
 	{
45
-		try {
45
+		try
46
+		{
46 47
 			return $this->statement->rowCount();
47
-		} catch ( \PDOException $e ) {
48
+		}
49
+		catch ( \PDOException $e )
50
+		{
48 51
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
49 52
 		}
50 53
 	}
@@ -59,9 +62,12 @@  discard block
 block discarded – undo
59 62
 	 */
60 63
 	public function fetch( $style = \Aimeos\MW\DB\Result\Base::FETCH_ASSOC )
61 64
 	{
62
-		try {
65
+		try
66
+		{
63 67
 			return $this->statement->fetch( $style ? \PDO::FETCH_ASSOC : \PDO::FETCH_NUM );
64
-		} catch ( \PDOException $e ) {
68
+		}
69
+		catch ( \PDOException $e )
70
+		{
65 71
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
66 72
 		}
67 73
 	}
@@ -74,9 +80,12 @@  discard block
 block discarded – undo
74 80
 	 */
75 81
 	public function finish()
76 82
 	{
77
-		try {
83
+		try
84
+		{
78 85
 			$this->statement->closeCursor();
79
-		} catch ( \PDOException $e ) {
86
+		}
87
+		catch ( \PDOException $e )
88
+		{
80 89
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
81 90
 		}
82 91
 	}
@@ -89,9 +98,12 @@  discard block
 block discarded – undo
89 98
 	 */
90 99
 	public function nextResult()
91 100
 	{
92
-		try {
101
+		try
102
+		{
93 103
 			return $this->statement->nextRowset();
94
-		} catch ( \PDOException $e ) {
104
+		}
105
+		catch ( \PDOException $e )
106
+		{
95 107
 			return false;
96 108
 		}
97 109
 	}
Please login to merge, or discard this patch.