Completed
Push — master ( 8b6d77...d70677 )
by Maurício
32s queued 15s
created
src/Parsers/Limits.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
             // Skip if not a number or a bind parameter (?)
89 89
             if (
90
-                ! ($token->type === TokenType::Number
90
+                !($token->type === TokenType::Number
91 91
                     || ($token->type === TokenType::Symbol && ($token->flags & Token::FLAG_SYMBOL_PARAMETER)))
92 92
             ) {
93 93
                 break;
Please login to merge, or discard this patch.
src/Parsers/Keys.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
             } elseif ($state === 1) {
113 113
                 if (($token->type === TokenType::Operator) && ($token->value === '(')) {
114 114
                     $positionBeforeSearch = $list->idx;
115
-                    $list->idx++;// Ignore the current token "(" or the search condition will always be true
115
+                    $list->idx++; // Ignore the current token "(" or the search condition will always be true
116 116
                     $nextToken = $list->getNext();
117
-                    $list->idx = $positionBeforeSearch;// Restore the position
117
+                    $list->idx = $positionBeforeSearch; // Restore the position
118 118
 
119 119
                     if ($nextToken !== null && $nextToken->value === '(') {
120 120
                         // Switch to expression mode
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
                 if ($token->type === TokenType::Operator) {
164 164
                     // This got back to here and we reached the end of the expression
165 165
                     if ($token->value === ')') {
166
-                        $state = 4;// go back to state 4 to fetch options
166
+                        $state = 4; // go back to state 4 to fetch options
167 167
                         continue;
168 168
                     }
169 169
 
Please login to merge, or discard this patch.
src/Components/Limit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      * @param int|string $rowCount the row count
30 30
      * @param int|string $offset   the offset
31 31
      */
32
-    public function __construct(int|string $rowCount = 0, int|string $offset = 0)
32
+    public function __construct(int | string $rowCount = 0, int | string $offset = 0)
33 33
     {
34 34
         $this->rowCount = $rowCount;
35 35
         $this->offset = $offset;
Please login to merge, or discard this patch.
src/Components/FunctionCall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * @param string|null            $name       the name of the function to be called
32 32
      * @param string[]|ArrayObj|null $parameters the parameters of this function
33 33
      */
34
-    public function __construct(string|null $name = null, array|ArrayObj|null $parameters = null)
34
+    public function __construct(string | null $name = null, array | ArrayObj | null $parameters = null)
35 35
     {
36 36
         $this->name = $name;
37 37
         if (is_array($parameters)) {
Please login to merge, or discard this patch.
src/Components/AlterOperation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@
 block discarded – undo
44 44
      * @param Token[]                    $unknown    unparsed tokens found at the end of operation
45 45
      */
46 46
     public function __construct(
47
-        OptionsArray|null $options = null,
48
-        Expression|string|null $field = null,
49
-        array|null $partitions = null,
47
+        OptionsArray | null $options = null,
48
+        Expression | string | null $field = null,
49
+        array | null $partitions = null,
50 50
         public array $unknown = [],
51 51
     ) {
52 52
         $this->partitions = $partitions;
Please login to merge, or discard this patch.
src/Components/Expression.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
      * @param string|null $alias    the name of the alias
83 83
      */
84 84
     public function __construct(
85
-        string|null $database = null,
86
-        string|null $table = null,
87
-        string|null $column = null,
88
-        string|null $alias = null,
85
+        string | null $database = null,
86
+        string | null $table = null,
87
+        string | null $column = null,
88
+        string | null $alias = null,
89 89
     ) {
90 90
         if (($column === null) && ($alias === null)) {
91 91
             $this->expr = $database; // case 1
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             $ret = implode('.', Context::escapeAll($fields));
120 120
         }
121 121
 
122
-        if (! empty($this->alias)) {
122
+        if (!empty($this->alias)) {
123 123
             $ret .= ' AS ' . Context::escape($this->alias);
124 124
         }
125 125
 
Please login to merge, or discard this patch.
src/Components/Key.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,10 +61,10 @@  discard block
 block discarded – undo
61 61
      * @phpstan-param array{name?: string, length?: int, order?: string}[] $columns
62 62
      */
63 63
     public function __construct(
64
-        string|null $name = null,
64
+        string | null $name = null,
65 65
         array $columns = [],
66
-        string|null $type = null,
67
-        OptionsArray|null $options = null,
66
+        string | null $type = null,
67
+        OptionsArray | null $options = null,
68 68
     ) {
69 69
         $this->name = $name;
70 70
         $this->columns = $columns;
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     public function build(): string
76 76
     {
77 77
         $ret = $this->type . ' ';
78
-        if (! empty($this->name)) {
78
+        if (!empty($this->name)) {
79 79
             $ret .= Context::escape($this->name) . ' ';
80 80
         }
81 81
 
Please login to merge, or discard this patch.
src/Components/DataType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
      * @param OptionsArray   $options    the options of this data type
53 53
      */
54 54
     public function __construct(
55
-        string|null $name = null,
55
+        string | null $name = null,
56 56
         array $parameters = [],
57
-        OptionsArray|null $options = null,
57
+        OptionsArray | null $options = null,
58 58
     ) {
59 59
         $this->name = $name;
60 60
         $this->parameters = $parameters;
Please login to merge, or discard this patch.
src/Components/OptionsArray.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
 
34 34
         $options = [];
35 35
         foreach ($this->options as $option) {
36
-            if (! is_array($option)) {
36
+            if (!is_array($option)) {
37 37
                 $options[] = $option;
38 38
             } else {
39 39
                 $options[] = $option['name']
40
-                    . (! empty($option['equals']) ? '=' : ' ')
41
-                    . (! empty($option['expr']) ? $option['expr'] : $option['value']);
40
+                    . (!empty($option['equals']) ? '=' : ' ')
41
+                    . (!empty($option['expr']) ? $option['expr'] : $option['value']);
42 42
             }
43 43
         }
44 44
 
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
     {
57 57
         foreach ($this->options as $option) {
58 58
             if (is_array($option)) {
59
-                if (! strcasecmp($key, $option['name'])) {
59
+                if (!strcasecmp($key, $option['name'])) {
60 60
                     return $getExpr ? $option['expr'] : $option['value'];
61 61
                 }
62
-            } elseif (! strcasecmp($key, $option)) {
62
+            } elseif (!strcasecmp($key, $option)) {
63 63
                 return true;
64 64
             }
65 65
         }
@@ -78,12 +78,12 @@  discard block
 block discarded – undo
78 78
     {
79 79
         foreach ($this->options as $idx => $option) {
80 80
             if (is_array($option)) {
81
-                if (! strcasecmp($key, $option['name'])) {
81
+                if (!strcasecmp($key, $option['name'])) {
82 82
                     unset($this->options[$idx]);
83 83
 
84 84
                     return true;
85 85
                 }
86
-            } elseif (! strcasecmp($key, $option)) {
86
+            } elseif (!strcasecmp($key, $option)) {
87 87
                 unset($this->options[$idx]);
88 88
 
89 89
                 return true;
Please login to merge, or discard this patch.