Passed
Push — develop ( f12fb2...40c14d )
by nguereza
02:31
created
src/Exception/ConnectionException.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 ConnectionException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class ConnectionException extends Exception
42
-{
41
+class ConnectionException extends Exception {
43 42
 }
Please login to merge, or discard this patch.
src/Query/DeleteStatement.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,16 +50,14 @@  discard block
 block discarded – undo
50 50
  * Class DeleteStatement
51 51
  * @package Platine\Database\Query
52 52
  */
53
-class DeleteStatement extends BaseStatement
54
-{
53
+class DeleteStatement extends BaseStatement {
55 54
 
56 55
     /**
57 56
      * DeleteStatement constructor.
58 57
      * @param string|array<string> $from
59 58
      * @param QueryStatement|null $queryStatement
60 59
      */
61
-    public function __construct($from, QueryStatement $queryStatement = null)
62
-    {
60
+    public function __construct($from, QueryStatement $queryStatement = null) {
63 61
         parent::__construct($queryStatement);
64 62
 
65 63
         if (!is_array($from)) {
@@ -73,8 +71,7 @@  discard block
 block discarded – undo
73 71
      * @param string|array<string> $tables
74 72
      * @return mixed
75 73
      */
76
-    public function delete($tables = [])
77
-    {
74
+    public function delete($tables = []) {
78 75
         if (!is_array($tables)) {
79 76
             /** @var array<string> $tables */
80 77
             $tables = [$tables];
Please login to merge, or discard this patch.
src/Pool.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 !empty($config['connections'])
79 79
                 && is_array($config['connections'])
80 80
             ) {
81
-                 /** @var array<string, array<string, mixed>> $connections */
81
+                    /** @var array<string, array<string, mixed>> $connections */
82 82
                 $connections = $config['connections'];
83 83
 
84 84
                 foreach ($connections as $name => $connection) {
Please login to merge, or discard this 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 Pool
54 54
  * @package Platine\Database
55 55
  */
56
-class Pool
57
-{
56
+class Pool {
58 57
     /**
59 58
      * The default connection name
60 59
      * @var string
@@ -71,8 +70,7 @@  discard block
 block discarded – undo
71 70
      * Class constructor
72 71
      * @param array<string, mixed> $config
73 72
      */
74
-    public function __construct(array $config = [])
75
-    {
73
+    public function __construct(array $config = []) {
76 74
         if (!empty($config)) {
77 75
             if (
78 76
                 !empty($config['connections'])
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/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/QueryException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
  * Class QueryException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class QueryException extends RuntimeException
42
-{
41
+class QueryException extends RuntimeException {
43 42
 
44 43
 }
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
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
  * Class QueryPrepareException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class QueryPrepareException extends RuntimeException
42
-{
41
+class QueryPrepareException extends RuntimeException {
43 42
 
44 43
 }
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
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
  * Class TransactionException
39 39
  * @package Platine\Database\Exception
40 40
  */
41
-class TransactionException extends RuntimeException
42
-{
41
+class TransactionException extends RuntimeException {
43 42
 
44 43
 }
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   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 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
@@ -350,8 +349,7 @@  discard block
 block discarded – undo
350 349
      *
351 350
      * @return mixed
352 351
      */
353
-    public function getAttribute(string $name, $default = null)
354
-    {
352
+    public function getAttribute(string $name, $default = null) {
355 353
         return $this->hasAttribute($name)
356 354
                        ? $this->attributes[$name]
357 355
                        : $default;
Please login to merge, or discard this patch.