Passed
Push — master ( b1b588...f706be )
by Aimeos
05:08
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
 	}
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	{
78 78
 		try {
79 79
 			$this->statement->closeCursor();
80
-		} catch ( \PDOException $e ) {
80
+		} catch( \PDOException $e ) {
81 81
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
82 82
 		}
83 83
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	{
95 95
 		try {
96 96
 			return $this->statement->nextRowset();
97
-		} catch ( \PDOException $e ) {
97
+		} catch( \PDOException $e ) {
98 98
 			return false;
99 99
 		}
100 100
 	}
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
 	}
@@ -75,9 +81,12 @@  discard block
 block discarded – undo
75 81
 	 */
76 82
 	public function finish()
77 83
 	{
78
-		try {
84
+		try
85
+		{
79 86
 			$this->statement->closeCursor();
80
-		} catch ( \PDOException $e ) {
87
+		}
88
+		catch ( \PDOException $e )
89
+		{
81 90
 			throw new \Aimeos\MW\DB\Exception( $e->getMessage(), $e->getCode(), $e->errorInfo );
82 91
 		}
83 92
 
@@ -92,9 +101,12 @@  discard block
 block discarded – undo
92 101
 	 */
93 102
 	public function nextResult()
94 103
 	{
95
-		try {
104
+		try
105
+		{
96 106
 			return $this->statement->nextRowset();
97
-		} catch ( \PDOException $e ) {
107
+		}
108
+		catch ( \PDOException $e )
109
+		{
98 110
 			return false;
99 111
 		}
100 112
 	}
Please login to merge, or discard this patch.