Passed
Push — master ( 619ec5...0d9c73 )
by Luiz Kim
02:46 queued 29s
created
src/Service/DatabaseSwitchService.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@  discard block
 block discarded – undo
26 26
     public function __construct(Connection $connection)
27 27
     {
28 28
         $this->connection = $connection;
29
-        if (!self::$originalDbParams)
30
-            self::$originalDbParams = $connection->getParams();
29
+        if (!self::$originalDbParams) {
30
+                    self::$originalDbParams = $connection->getParams();
31
+        }
31 32
     }
32 33
 
33 34
     /* @param string $domain
@@ -53,8 +54,9 @@  discard block
 block discarded – undo
53 54
      */
54 55
     private function switchDatabase($dbData)
55 56
     {
56
-        if ($this->connection->isConnected())
57
-            $this->connection->close();
57
+        if ($this->connection->isConnected()) {
58
+                    $this->connection->close();
59
+        }
58 60
 
59 61
         $this->connection->__construct(
60 62
             $dbData,
Please login to merge, or discard this patch.