@@ -81,8 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | try { |
83 | 83 | $conn->disconnect(); |
84 | - } |
|
85 | - catch (\Exception $e) |
|
84 | + } catch (\Exception $e) |
|
86 | 85 | { |
87 | 86 | $this->assertNotTrue($conn->isConnected()); |
88 | 87 | throw $e; |
@@ -116,8 +115,7 @@ discard block |
||
116 | 115 | |
117 | 116 | try { |
118 | 117 | $conn->reconnect(); |
119 | - } |
|
120 | - catch (\Exception $e) |
|
118 | + } catch (\Exception $e) |
|
121 | 119 | { |
122 | 120 | $this->assertNotTrue($conn->isConnected()); |
123 | 121 | throw $e; |
@@ -139,8 +137,7 @@ discard block |
||
139 | 137 | try |
140 | 138 | { |
141 | 139 | $conn->connect(); |
142 | - } |
|
143 | - catch (\Exception $e) |
|
140 | + } catch (\Exception $e) |
|
144 | 141 | { |
145 | 142 | $this->assertNotTrue($conn->isConnected()); |
146 | 143 | throw $e; |
@@ -504,8 +501,7 @@ discard block |
||
504 | 501 | |
505 | 502 | $sql = "INSERT INTO MYTABLE (DESCRIPTION, WRONG) VALUES ('TRANS_SHORTCUT_2')"; |
506 | 503 | $conn->execute($sql); # this throws the exception |
507 | - } |
|
508 | - catch (InvalidQueryException $e) |
|
504 | + } catch (InvalidQueryException $e) |
|
509 | 505 | { |
510 | 506 | #·not necessary! |
511 | 507 | # $this->assertTrue($conn->rollback()); |
@@ -88,8 +88,7 @@ |
||
88 | 88 | try |
89 | 89 | { |
90 | 90 | $gateway->getDb()->connect(); |
91 | - } |
|
92 | - catch (\Exception $e) |
|
91 | + } catch (\Exception $e) |
|
93 | 92 | { |
94 | 93 | $this->assertNotTrue($gateway->getDb()->isConnected()); |
95 | 94 | throw $e; |