Test Failed
Push — release ( 39027a...03ceb5 )
by Kenneth
02:36
created
src/Bindings/MySQL/MySQLNumericBindings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             throw new InvalidArgumentException('Can not bind "' . $value . '" in integer spot.');
64 64
         }
65 65
 
66
-        return [(int)sprintf('%u', $value), PDO::PARAM_INT];
66
+        return [(int) sprintf('%u', $value), PDO::PARAM_INT];
67 67
     }
68 68
 
69 69
     /**
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $numbers = [];
86 86
 
87 87
         foreach ($data as $value) {
88
-            $numbers[(int)$value] = true;
88
+            $numbers[(int) $value] = true;
89 89
         }
90 90
 
91 91
         $numbers = array_keys($numbers);
Please login to merge, or discard this patch.
src/Bindings/MySQL/MySQLLogicBindings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             throw new InvalidArgumentException('Can not bind NULL in boolean spot.');
29 29
         }
30 30
 
31
-        return [(bool)$value, PDO::PARAM_BOOL];
31
+        return [(bool) $value, PDO::PARAM_BOOL];
32 32
     }
33 33
 
34 34
     /**
@@ -51,6 +51,6 @@  discard block
 block discarded – undo
51 51
             throw new InvalidArgumentException('Can not bind NULL in boolean spot.');
52 52
         }
53 53
 
54
-        return [(int)$value, PDO::PARAM_INT];
54
+        return [(int) $value, PDO::PARAM_INT];
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Bindings/MySQL/MySQLStringBindings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
             $type = PDO::PARAM_NULL;
94 94
         }
95 95
 
96
-        return [(string)$value, $type];
96
+        return [(string) $value, $type];
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
src/Statement.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -9,22 +9,22 @@  discard block
 block discarded – undo
9 9
 
10 10
 class Statement
11 11
 {
12
-    private Bindings $bindings;   // Parameter bindings.
13
-    private int $bindPos = 0;     // Position for SQL binds.
12
+    private Bindings $bindings; // Parameter bindings.
13
+    private int $bindPos = 0; // Position for SQL binds.
14 14
     /**
15 15
      * @var array{} | array{mixed} $named
16 16
      */
17
-    private array $named = [];    // Named binding values.
17
+    private array $named = []; // Named binding values.
18 18
     /**
19 19
      * @var array{} | array{mixed} $SQL
20 20
      */
21
-    private array $SQL = [];      // SQL Statement.
22
-    private int $sqlPos = 0;      // Position holder for statement processing.
21
+    private array $SQL = []; // SQL Statement.
22
+    private int $sqlPos = 0; // Position holder for statement processing.
23 23
     /**
24 24
      * @var array{} | array<int|string, mixed> $rawNamed
25 25
      */
26 26
     private array $rawNamed = []; // Raw named placeholders.
27
-    private int $rawPos = 0;      // Position holder for raw statement processing.
27
+    private int $rawPos = 0; // Position holder for raw statement processing.
28 28
     // /**
29 29
     //  * @var array{} | array{mixed} $rawSql
30 30
     //  */
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     private function rawPlaceholderFill(string $sql): string
46 46
     {
47 47
         foreach ($this->rawNamed as $name => $rVal) {
48
-            $sql = (string)preg_replace('/' . $name . '\b/', $rVal, $sql);
48
+            $sql = (string) preg_replace('/' . $name . '\b/', $rVal, $sql);
49 49
         }
50 50
 
51 51
         return $sql;
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         foreach ($this->named as $name => $sVal) {
337 337
             switch ($sVal['type']) {
338 338
                 case PDO::PARAM_BOOL:
339
-                    $stmt->bindValue($name, (bool)$sVal['value'], $sVal['type']);
339
+                    $stmt->bindValue($name, (bool) $sVal['value'], $sVal['type']);
340 340
                     break;
341 341
 
342 342
                 case PDO::PARAM_NULL:
@@ -344,12 +344,12 @@  discard block
 block discarded – undo
344 344
                     break;
345 345
 
346 346
                 case PDO::PARAM_INT:
347
-                    $stmt->bindValue($name, (int)$sVal['value'], $sVal['type']);
347
+                    $stmt->bindValue($name, (int) $sVal['value'], $sVal['type']);
348 348
                     break;
349 349
 
350 350
                 case PDO::PARAM_STR:
351 351
                 default:
352
-                    $stmt->bindValue($name, (string)$sVal['value'], $sVal['type']);
352
+                    $stmt->bindValue($name, (string) $sVal['value'], $sVal['type']);
353 353
                     break;
354 354
             }
355 355
         }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
             return match ($sVal['type']) {
389 389
                 PDO::PARAM_BOOL => $sVal['value'] ? 'TRUE' : 'FALSE',
390 390
                 PDO::PARAM_NULL => 'NULL',
391
-                PDO::PARAM_INT => (int)$sVal['value'],
391
+                PDO::PARAM_INT => (int) $sVal['value'],
392 392
                 default => "'" . $sVal['value'] . "'",
393 393
             };
394 394
         }
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
     {
419 419
         // Replace positioned placeholders with named placeholders (first value).
420 420
         // Force to string, in the case of null.
421
-        $text = (string)preg_replace_callback(
421
+        $text = (string) preg_replace_callback(
422 422
             '/\?/m',
423 423
             function () {
424 424
                 return $this->placeholderGetName();
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
             $text
427 427
         );
428 428
 
429
-        $text = (string)preg_replace_callback(
429
+        $text = (string) preg_replace_callback(
430 430
             '/%%/m',
431 431
             function () {
432 432
                 return $this->getNextName('rawSql');
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
 
472 472
         // Replace positioned placeholders with named placeholders (first value).
473 473
         // Force to string, in the case of null.
474
-        return (string)preg_replace_callback(
474
+        return (string) preg_replace_callback(
475 475
             '/:[a-z0-9_]+/m',
476 476
             function ($matches) {
477 477
                 return $this->placeholderFill($matches);
Please login to merge, or discard this patch.