Passed
Push — master ( c7da61...4151d4 )
by Darío
01:46
created
test/Db/Driver/MySQLTest.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -83,12 +83,10 @@  discard block
 block discarded – undo
83 83
 
84 84
         try {
85 85
             $conn->disconnect();
86
-        }
87
-        catch (\Exception $e)
86
+        } catch (\Exception $e)
88 87
         {
89 88
             $errorObject = ($e instanceof \LogicException);
90
-        }
91
-        finally
89
+        } finally
92 90
         {
93 91
             $this->assertNotTrue($conn->isConnected());
94 92
             $this->assertTrue($errorObject, $e->getMessage());
@@ -124,12 +122,10 @@  discard block
 block discarded – undo
124 122
 
125 123
         try {
126 124
             $conn->reconnect();
127
-        }
128
-        catch (\Exception $e)
125
+        } catch (\Exception $e)
129 126
         {
130 127
             $errorObject = ($e instanceof \LogicException);
131
-        }
132
-        finally
128
+        } finally
133 129
         {
134 130
             $this->assertTrue($errorObject, $e->getMessage());
135 131
             $this->assertNotTrue($conn->isConnected());
@@ -154,13 +150,11 @@  discard block
 block discarded – undo
154 150
 
155 151
         try {
156 152
             $mysqliObject = $conn->connect();
157
-        }
158
-        catch (\Exception $e)
153
+        } catch (\Exception $e)
159 154
         {
160 155
             $errorObject = ($e instanceof ConnectionException);
161 156
             $message = $e->getMessage();
162
-        }
163
-        finally
157
+        } finally
164 158
         {
165 159
             $this->assertTrue($errorObject, $message);
166 160
             $this->assertNotTrue($conn->isConnected());
Please login to merge, or discard this patch.