Passed
Push — develop ( 0e9461...96177d )
by nguereza
02:00
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/Connection.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -475,12 +475,12 @@
 block discarded – undo
475 475
         }
476 476
     }
477 477
 
478
-     /**
479
-     * Change the query parameters placeholder with the value
480
-     * @param string $query
481
-     * @param array<int, mixed> $params
482
-     * @return string
483
-     */
478
+        /**
479
+         * Change the query parameters placeholder with the value
480
+         * @param string $query
481
+         * @param array<int, mixed> $params
482
+         * @return string
483
+         */
484 484
     protected function replaceParameters(string $query, array $params): string
485 485
     {
486 486
         $driver = $this->driver;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 
536 536
         return (string) preg_replace_callback(
537 537
             '/\?/',
538
-            function () use ($driver, &$params) {
538
+            function() use ($driver, &$params) {
539 539
                 $param = array_shift($params);
540 540
 
541 541
                 $value = is_object($param) ? get_class($param) : $param;
@@ -602,7 +602,7 @@  discard block
 block discarded – undo
602 602
      */
603 603
     protected function execute(array $prepared): bool
604 604
     {
605
-        if($this->emulate){
605
+        if ($this->emulate) {
606 606
             return true;
607 607
         }
608 608
         
Please login to merge, or discard this patch.
Braces   +5 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
 
@@ -602,7 +598,7 @@  discard block
 block discarded – undo
602 598
      */
603 599
     protected function execute(array $prepared): bool
604 600
     {
605
-        if($this->emulate){
601
+        if($this->emulate) {
606 602
             return true;
607 603
         }
608 604
         
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.