Passed
Push — develop ( 4f7ba8...8ea179 )
by nguereza
02:29
created
src/Connection.php 1 patch
Braces   +6 added lines, -9 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * Class Connection
62 62
  * @package Platine\Database
63 63
  */
64
-class Connection
65
-{
64
+class Connection {
66 65
     /**
67 66
      * The PDO instance
68 67
      * @var PDO
@@ -368,8 +367,7 @@  discard block
 block discarded – undo
368 367
      * @return mixed
369 368
      * @throws QueryException
370 369
      */
371
-    public function column(string $sql, array $params = [])
372
-    {
370
+    public function column(string $sql, array $params = []) {
373 371
         $prepared = $this->prepare($sql, $params);
374 372
         $this->execute($prepared);
375 373
 
@@ -421,8 +419,7 @@  discard block
 block discarded – undo
421 419
     /**
422 420
      * {@inheritdoc}
423 421
      */
424
-    public function __sleep()
425
-    {
422
+    public function __sleep() {
426 423
         return [
427 424
             'dsn',
428 425
             'driver',
@@ -436,8 +433,7 @@  discard block
 block discarded – undo
436 433
     /**
437 434
      * {@inheritdoc}
438 435
      */
439
-    public function __wakeup()
440
-    {
436
+    public function __wakeup() {
441 437
         $this->createPDO();
442 438
     }
443 439
 
@@ -628,7 +624,8 @@  discard block
 block discarded – undo
628 624
                 $sqlLog
629 625
             );
630 626
 
631
-            if ($executionTime >= 1) { // TODO use configuration
627
+            if ($executionTime >= 1) {
628
+// TODO use configuration
632 629
                 $this->logger->warning(
633 630
                     'Query: [{query}] cost too much time: [{time}]',
634 631
                     $sqlLog
Please login to merge, or discard this patch.