Passed
Push — develop ( ab2dee...f7d7c9 )
by nguereza
11:21
created
src/Connection.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -376,7 +376,7 @@
 block discarded – undo
376 376
 
377 377
         return (string) preg_replace_callback(
378 378
             '/\?/',
379
-            function () use ($driver, &$params) {
379
+            function() use ($driver, &$params) {
380 380
                 $param = array_shift($params);
381 381
 
382 382
                 $value = is_object($param) ? get_class($param) : $param;
Please login to merge, or discard this patch.
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 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
Please login to merge, or discard this patch.
src/Configuration.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
         return $this->appname;
199 199
     }
200 200
 
201
-     /**
202
-     *  Return the host
203
-     * @return string
204
-     */
201
+        /**
202
+         *  Return the host
203
+         * @return string
204
+         */
205 205
     public function getHostname(): string
206 206
     {
207 207
         return $this->hostname;
@@ -399,12 +399,12 @@  discard block
 block discarded – undo
399 399
     public function getDriverClassName(): string
400 400
     {
401 401
         $maps = [
402
-          'mysql'  => MySQL::class,
403
-          'pgsql'  => PostgreSQL::class,
404
-          'sqlsrv' => SQLServer::class,
405
-          'oci'    => Oracle::class,
406
-          'oracle' => Oracle::class,
407
-          'sqlite' => SQLite::class,
402
+            'mysql'  => MySQL::class,
403
+            'pgsql'  => PostgreSQL::class,
404
+            'sqlsrv' => SQLServer::class,
405
+            'oci'    => Oracle::class,
406
+            'oracle' => Oracle::class,
407
+            'sqlite' => SQLite::class,
408 408
         ];
409 409
 
410 410
         return isset($maps[$this->driver])
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @class Configuration
60 60
  * @package Platine\Database
61 61
  */
62
-class Configuration extends AbstractConfiguration
63
-{
62
+class Configuration extends AbstractConfiguration {
64 63
     /**
65 64
      * The connection driver to use
66 65
      * @var string
Please login to merge, or discard this patch.
src/Schema.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * @class Schema
54 54
  * @package Platine\Database
55 55
  */
56
-class Schema
57
-{
56
+class Schema {
58 57
     /**
59 58
      * The Connection instance
60 59
      * @var Connection
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
      * Class constructor
90 89
      * @param Connection $connection
91 90
      */
92
-    public function __construct(Connection $connection)
93
-    {
91
+    public function __construct(Connection $connection) {
94 92
         $this->connection = $connection;
95 93
     }
96 94
 
Please login to merge, or discard this patch.
src/Exception/TransactionException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,6 +36,5 @@
 block discarded – undo
36 36
  * @class TransactionException
37 37
  * @package Platine\Database\Exception
38 38
  */
39
-class TransactionException extends DatabaseException
40
-{
39
+class TransactionException extends DatabaseException {
41 40
 }
Please login to merge, or discard this patch.
src/Exception/ConnectionAlreadyExistsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class ConnectionAlreadyExistsException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class ConnectionAlreadyExistsException extends Exception
42
-{
41
+class ConnectionAlreadyExistsException extends Exception {
43 42
 }
Please login to merge, or discard this patch.
src/Exception/ConnectionException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,6 +36,5 @@
 block discarded – undo
36 36
  * @class ConnectionException
37 37
  * @package Platine\Database\Exception
38 38
  */
39
-class ConnectionException extends DatabaseException
40
-{
39
+class ConnectionException extends DatabaseException {
41 40
 }
Please login to merge, or discard this patch.
src/Exception/DatabaseException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class DatabaseException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class DatabaseException extends Exception
42
-{
41
+class DatabaseException extends Exception {
43 42
 }
Please login to merge, or discard this patch.
src/Exception/ConnectionNotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,6 +38,5 @@
 block discarded – undo
38 38
  * @class ConnectionNotFoundException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class ConnectionNotFoundException extends Exception
42
-{
41
+class ConnectionNotFoundException extends Exception {
43 42
 }
Please login to merge, or discard this patch.
src/Exception/QueryPrepareException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,6 +36,5 @@
 block discarded – undo
36 36
  * @class QueryPrepareException
37 37
  * @package Platine\Database\Exception
38 38
  */
39
-class QueryPrepareException extends DatabaseException
40
-{
39
+class QueryPrepareException extends DatabaseException {
41 40
 }
Please login to merge, or discard this patch.