Passed
Push — develop ( 963f5e...46a4a0 )
by nguereza
02:17
created
src/Connection.php 2 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.
src/Configuration.php 1 patch
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.
src/QueryBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      * @param string|array<string> $tables Table name or an array of tables
124 124
      * @return QueryCommand
125 125
      */
126
-    public function from(string|array $tables): QueryCommand
126
+    public function from(string | array $tables): QueryCommand
127 127
     {
128 128
         return new QueryCommand($this->connection, $tables);
129 129
     }
Please login to merge, or discard this patch.
src/Pool.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 is_array($config['connections']) &&
79 79
                 count($config['connections']) > 0
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.
src/Schema/CreateTable.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      * @param string|null $name
200 200
      * @return $this
201 201
      */
202
-    public function primary(string|array $columns, ?string $name = null): self
202
+    public function primary(string | array $columns, ?string $name = null): self
203 203
     {
204 204
         if (!is_array($columns)) {
205 205
             $columns = [$columns];
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      * @param string|null $name
224 224
      * @return $this
225 225
      */
226
-    public function unique(string|array $columns, ?string $name = null): self
226
+    public function unique(string | array $columns, ?string $name = null): self
227 227
     {
228 228
         if (!is_array($columns)) {
229 229
             $columns = [$columns];
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
      * @param string|null $name
245 245
      * @return $this
246 246
      */
247
-    public function index(string|array $columns, ?string $name = null): self
247
+    public function index(string | array $columns, ?string $name = null): self
248 248
     {
249 249
         if (!is_array($columns)) {
250 250
             $columns = [$columns];
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
      * @param string|null $name
266 266
      * @return ForeignKey
267 267
      */
268
-    public function foreign(string|array $columns, ?string $name = null): ForeignKey
268
+    public function foreign(string | array $columns, ?string $name = null): ForeignKey
269 269
     {
270 270
         if (!is_array($columns)) {
271 271
             $columns = [$columns];
Please login to merge, or discard this patch.
src/Query/Delete.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public function __construct(
70 70
         Connection $connection,
71
-        string|array $from,
71
+        string | array $from,
72 72
         ?QueryStatement $queryStatement = null
73 73
     ) {
74 74
         parent::__construct($from, $queryStatement);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @return int
84 84
      * @throws QueryException
85 85
      */
86
-    public function delete(string|array $tables = []): int
86
+    public function delete(string | array $tables = []): int
87 87
     {
88 88
         parent::delete($tables);
89 89
         $driver = $this->connection->getDriver();
Please login to merge, or discard this patch.
src/Query/Join.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
      * @return $this
76 76
      */
77 77
     public function on(
78
-        string|Expression|Closure $column1,
79
-        string|Expression|Closure|bool|null $column2 = null,
78
+        string | Expression | Closure $column1,
79
+        string | Expression | Closure | bool | null $column2 = null,
80 80
         string $operator = '='
81 81
     ): self {
82 82
         return $this->addJoinCondition($column1, $column2, $operator, 'AND');
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
      * @return $this
90 90
      */
91 91
     public function andOn(
92
-        string|Expression|Closure $column1,
93
-        string|Expression|Closure|bool|null $column2 = null,
92
+        string | Expression | Closure $column1,
93
+        string | Expression | Closure | bool | null $column2 = null,
94 94
         string $operator = '='
95 95
     ): self {
96 96
         return $this->addJoinCondition($column1, $column2, $operator, 'AND');
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
      * @return $this
104 104
      */
105 105
     public function orOn(
106
-        string|Expression|Closure $column1,
107
-        string|Expression|Closure|bool|null $column2 = null,
106
+        string | Expression | Closure $column1,
107
+        string | Expression | Closure | bool | null $column2 = null,
108 108
         string $operator = '='
109 109
     ): self {
110 110
         return $this->addJoinCondition($column1, $column2, $operator, 'OR');
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      * @param string $separator
116 116
      * @return $this
117 117
      */
118
-    protected function addJoinExpression(Expression|Closure $expression, string $separator = 'AND'): self
118
+    protected function addJoinExpression(Expression | Closure $expression, string $separator = 'AND'): self
119 119
     {
120 120
         if ($expression instanceof Closure) {
121 121
             $expression = Expression::fromClosure($expression);
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
      * @return $this
139 139
      */
140 140
     protected function addJoinCondition(
141
-        string|Expression|Closure $column1,
142
-        string|Expression|Closure|bool|null $column2,
141
+        string | Expression | Closure $column1,
142
+        string | Expression | Closure | bool | null $column2,
143 143
         string $operator,
144 144
         string $separator = 'AND'
145 145
     ): self {
Please login to merge, or discard this patch.
src/Query/SubQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * @param string|array<int, string> $tables
63 63
      * @return SelectStatement
64 64
      */
65
-    public function from(string|array $tables): SelectStatement
65
+    public function from(string | array $tables): SelectStatement
66 66
     {
67 67
         return $this->select = new SelectStatement($tables);
68 68
     }
Please login to merge, or discard this patch.
src/Query/Having.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     /**
58 58
      * @var string|Expression
59 59
      */
60
-    protected string|Expression $aggregate;
60
+    protected string | Expression $aggregate;
61 61
 
62 62
     /**
63 63
      * @var string
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param string $separator
85 85
      * @return self
86 86
      */
87
-    public function init(string|Expression|Closure $aggregate, string $separator): self
87
+    public function init(string | Expression | Closure $aggregate, string $separator): self
88 88
     {
89 89
         if ($aggregate instanceof Closure) {
90 90
             $aggregate = Expression::fromClosure($aggregate);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * @param array<int, mixed>|Closure $value
212 212
      * @return void
213 213
      */
214
-    public function in(array|Closure $value): void
214
+    public function in(array | Closure $value): void
215 215
     {
216 216
         $this->queryStatement->addHavingIn(
217 217
             $this->aggregate,
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
      * @param array<int, mixed>|Closure $value
226 226
      * @return void
227 227
      */
228
-    public function notIn(array|Closure $value): void
228
+    public function notIn(array | Closure $value): void
229 229
     {
230 230
         $this->queryStatement->addHavingIn(
231 231
             $this->aggregate,
Please login to merge, or discard this patch.