Passed
Pull Request — master (#572)
by
unknown
14:00
created
src/Statements/AnalyzeStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,5 +33,5 @@
 block discarded – undo
33 33
      *
34 34
      * @var Expression[]|null
35 35
      */
36
-    public array|null $tables = null;
36
+    public array | null $tables = null;
37 37
 }
Please login to merge, or discard this patch.
src/Statements/WithStatement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * holds the CTE parser.
64 64
      */
65
-    public Parser|null $cteStatementParser = null;
65
+    public Parser | null $cteStatementParser = null;
66 66
 
67 67
     /**
68 68
      * @param Parser     $parser the instance that requests parsing
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
             }
111 111
 
112 112
             if ($state === 0) {
113
-                if ($token->type !== TokenType::None || ! preg_match('/^[a-zA-Z0-9_$]+$/', $token->token)) {
113
+                if ($token->type !== TokenType::None || !preg_match('/^[a-zA-Z0-9_$]+$/', $token->token)) {
114 114
                     $parser->error('The name of the CTE was expected.', $token);
115 115
                     break;
116 116
                 }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
                     break;
135 135
                 }
136 136
             } elseif ($state === 2) {
137
-                if (! ($token->type === TokenType::Keyword && $token->keyword === 'AS')) {
137
+                if (!($token->type === TokenType::Keyword && $token->keyword === 'AS')) {
138 138
                     $parser->error('AS keyword was expected.', $token);
139 139
                     break;
140 140
                 }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 $list->idx++; // Ignore the current token
147 147
                 $nextKeyword = $list->getNext();
148 148
 
149
-                if (! ($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) {
149
+                if (!($token->value === '(' && ($nextKeyword && $nextKeyword->value === 'SELECT'))) {
150 150
                     $parser->error('Subquery of the CTE was expected.', $token);
151 151
                     $list->idx = $idxBeforeGetNext;
152 152
                     break;
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
     /**
294 294
      * Get tokens within the WITH expression to use them in another parser
295 295
      */
296
-    private function getSubTokenList(TokensList $list): ParserException|TokensList
296
+    private function getSubTokenList(TokensList $list): ParserException | TokensList
297 297
     {
298 298
         $idx = $list->idx;
299 299
         $token = $list->tokens[$list->idx];
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             }
310 310
 
311 311
             ++$list->idx;
312
-            if (! isset($list->tokens[$list->idx])) {
312
+            if (!isset($list->tokens[$list->idx])) {
313 313
                 break;
314 314
             }
315 315
 
Please login to merge, or discard this patch.
src/Statements/ExplainStatement.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * The parser of the statement to be explained
36 36
      */
37
-    public Parser|null $bodyParser = null;
37
+    public Parser | null $bodyParser = null;
38 38
 
39 39
     /**
40 40
      * The statement alias, could be any of the following:
@@ -47,22 +47,22 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * The connection identifier, if used.
49 49
      */
50
-    public int|null $connectionId = null;
50
+    public int | null $connectionId = null;
51 51
 
52 52
     /**
53 53
      * The explained database for the table's name, if used.
54 54
      */
55
-    public string|null $explainedDatabase = null;
55
+    public string | null $explainedDatabase = null;
56 56
 
57 57
     /**
58 58
      * The explained table's name, if used.
59 59
      */
60
-    public string|null $explainedTable = null;
60
+    public string | null $explainedTable = null;
61 61
 
62 62
     /**
63 63
      * The explained column's name, if used.
64 64
      */
65
-    public string|null $explainedColumn = null;
65
+    public string | null $explainedColumn = null;
66 66
 
67 67
     /**
68 68
      * @param Parser     $parser the instance that requests parsing
Please login to merge, or discard this patch.
src/Statements/TruncateStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * The name of the truncated table.
25 25
      */
26
-    public Expression|null $table = null;
26
+    public Expression | null $table = null;
27 27
 
28 28
     /**
29 29
      * Special build method for truncate statement as Statement::build would return empty string.
Please login to merge, or discard this patch.
src/Statements/DropStatement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,10 +71,10 @@
 block discarded – undo
71 71
      *
72 72
      * @var Expression[]|null
73 73
      */
74
-    public array|null $fields = null;
74
+    public array | null $fields = null;
75 75
 
76 76
     /**
77 77
      * Table of the dropped index.
78 78
      */
79
-    public Expression|null $table = null;
79
+    public Expression | null $table = null;
80 80
 }
Please login to merge, or discard this patch.
src/Statements/CallStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /**
24 24
      * The name of the function and its parameters.
25 25
      */
26
-    public FunctionCall|null $call = null;
26
+    public FunctionCall | null $call = null;
27 27
 
28 28
     /**
29 29
      * Build statement for CALL.
Please login to merge, or discard this patch.
src/Statements/SetStatement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,21 +78,21 @@
 block discarded – undo
78 78
     /**
79 79
      * Options used in current statement.
80 80
      */
81
-    public OptionsArray|null $options = null;
81
+    public OptionsArray | null $options = null;
82 82
 
83 83
     /**
84 84
      * The end options of this query.
85 85
      *
86 86
      * @see SetStatement::STATEMENT_END_OPTIONS
87 87
      */
88
-    public OptionsArray|null $endOptions = null;
88
+    public OptionsArray | null $endOptions = null;
89 89
 
90 90
     /**
91 91
      * The updated values.
92 92
      *
93 93
      * @var SetOperation[]|null
94 94
      */
95
-    public array|null $set = null;
95
+    public array | null $set = null;
96 96
 
97 97
     public function build(): string
98 98
     {
Please login to merge, or discard this patch.
src/Statements/TransactionStatement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
     /**
27 27
      * The type of this query.
28 28
      */
29
-    public int|null $type = null;
29
+    public int | null $type = null;
30 30
 
31 31
     /**
32 32
      * The list of statements in this transaction.
33 33
      *
34 34
      * @var Statement[]|null
35 35
      */
36
-    public array|null $statements = null;
36
+    public array | null $statements = null;
37 37
 
38 38
     /**
39 39
      * The ending transaction statement which may be a `COMMIT` or a `ROLLBACK`.
40 40
      */
41
-    public TransactionStatement|null $end = null;
41
+    public TransactionStatement | null $end = null;
42 42
 
43 43
     /**
44 44
      * Options for this query.
Please login to merge, or discard this patch.
src/Statements/RenameStatement.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var RenameOperation[]|null
26 26
      */
27
-    public array|null $renames = null;
27
+    public array | null $renames = null;
28 28
 
29 29
     /**
30 30
      * Function called before the token is processed.
Please login to merge, or discard this patch.