Completed
Push — master ( eef0fe...767a3d )
by Agel_Nash
03:47
created
src/Drivers/IlluminateDriver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function getConnect()
98 98
     {
99
-        if (! $this->isConnected()) {
99
+        if (!$this->isConnected()) {
100 100
             $this->connect();
101
-            if (! $this->conn->getPdo() instanceof PDO) {
101
+            if (!$this->conn->getPdo() instanceof PDO) {
102 102
                 $this->conn->reconnect();
103 103
             }
104 104
         }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     public function connect()
140 140
     {
141 141
         try {
142
-            if (! $this->hasConnectionName($this->connection)) {
142
+            if (!$this->hasConnectionName($this->connection)) {
143 143
                 $this->getCapsule()->addConnection([
144 144
                     'driver'    => $this->driver,
145 145
                     'host'      => $this->getConfig('host'),
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
 
216 216
         $query = $method . ' ' . $charset;
217 217
 
218
-        return (bool)$this->query($query);
218
+        return (bool) $this->query($query);
219 219
     }
220 220
 
221 221
     /**
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             $result = $this->prepare($sql);
251 251
             $this->execute($result);
252 252
 
253
-            if ($this->saveAffectedRows($result) === 0 && $this->isResult($result) && ! $this->isSelectQuery($sql)) {
253
+            if ($this->saveAffectedRows($result) === 0 && $this->isResult($result) && !$this->isSelectQuery($sql)) {
254 254
                 $result = true;
255 255
             }
256 256
             $this->getConnect()->logQuery($sql, []);
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
      */
366 366
     public function execute($result)
367 367
     {
368
-        return $this->isResult($result) ? $result->execute() : (bool)$result;
368
+        return $this->isResult($result) ? $result->execute() : (bool) $result;
369 369
     }
370 370
 
371 371
     /**
Please login to merge, or discard this patch.