Passed
Push — develop ( 4f7ba8...8ea179 )
by nguereza
02:29
created
src/Driver/MySQL.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * Class MySQL
53 53
  * @package Platine\Database\Driver
54 54
  */
55
-class MySQL extends Driver
56
-{
55
+class MySQL extends Driver {
57 56
     /**
58 57
      * @inheritdoc
59 58
      * @var string
Please login to merge, or discard this patch.
src/Driver/SQLServer.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * Class SQLServer
56 56
  * @package Platine\Database\Driver
57 57
  */
58
-class SQLServer extends Driver
59
-{
58
+class SQLServer extends Driver {
60 59
     /**
61 60
      * @inheritdoc
62 61
      * @var string
Please login to merge, or discard this patch.
src/QueryBuilder.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * Class QueryBuilder
56 56
  * @package Platine\Database
57 57
  */
58
-class QueryBuilder
59
-{
58
+class QueryBuilder {
60 59
     /**
61 60
      * The Connection instance
62 61
      * @var Connection
@@ -73,8 +72,7 @@  discard block
 block discarded – undo
73 72
      * Class constructor
74 73
      * @param Connection $connection
75 74
      */
76
-    public function __construct(Connection $connection)
77
-    {
75
+    public function __construct(Connection $connection) {
78 76
         $this->connection = $connection;
79 77
         $this->schema = $this->connection->getSchema();
80 78
     }
@@ -113,8 +111,7 @@  discard block
 block discarded – undo
113 111
      * @param callable $callback
114 112
      * @return mixed
115 113
      */
116
-    public function transaction(callable $callback)
117
-    {
114
+    public function transaction(callable $callback) {
118 115
         return $this->connection->transaction($callback, $this);
119 116
     }
120 117
 
Please login to merge, or discard this patch.
src/ConnectionStatement.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,7 @@
 block discarded – undo
52 52
  * Class ConnectionStatement
53 53
  * @package Platine\Database
54 54
  */
55
-class ConnectionStatement extends PDOStatement
56
-{
55
+class ConnectionStatement extends PDOStatement {
57 56
     /**
58 57
      * {@inheritdoc}
59 58
      */
Please login to merge, or discard this patch.
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.