Completed
Push — master ( a45e07...0294bf )
by Agel_Nash
02:52
created
src/Drivers/IlluminateDriver.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function getConnect()
125 125
     {
126
-        if (! $this->isConnected()) {
126
+        if (!$this->isConnected()) {
127 127
             $this->connect();
128
-            if (! $this->conn->getPdo() instanceof PDO) {
128
+            if (!$this->conn->getPdo() instanceof PDO) {
129 129
                 $this->conn->reconnect();
130 130
             }
131 131
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     public function connect()
151 151
     {
152 152
         try {
153
-            if (! $this->hasConnectionName($this->connection)) {
153
+            if (!$this->hasConnectionName($this->connection)) {
154 154
                 $this->getCapsule()->addConnection([
155 155
                     'driver'    => $this->driver,
156 156
                     'host'      => $this->config['host'],
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         }
257 257
         $query = $method . ' ' . $charset . ' COLLATE ' . $collation;
258 258
 
259
-        return (bool)$this->query($query);
259
+        return (bool) $this->query($query);
260 260
     }
261 261
 
262 262
     /**
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
     {
373 373
         $pdo = $this->getConnect()->getPdo();
374 374
         $error = $pdo->errorInfo();
375
-        return (string)(isset($error[2]) ? $error[2] : $this->lastError[2]);
375
+        return (string) (isset($error[2]) ? $error[2] : $this->lastError[2]);
376 376
     }
377 377
 
378 378
     /**
@@ -383,6 +383,6 @@  discard block
 block discarded – undo
383 383
     {
384 384
         $pdo = $this->getConnect()->getPdo();
385 385
         $error = $pdo->errorInfo();
386
-        return (string)(isset($error[1]) ? $error[1] : $this->lastErrorNo);
386
+        return (string) (isset($error[1]) ? $error[1] : $this->lastErrorNo);
387 387
     }
388 388
 }
Please login to merge, or discard this patch.