Passed
Push — master ( b05c84...be871d )
by Maurício
07:15 queued 04:27
created
src/Statements/LoadStatement.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -88,70 +88,70 @@
 block discarded – undo
88 88
     /**
89 89
      * File name being used to load data.
90 90
      */
91
-    public Expression|null $fileName = null;
91
+    public Expression | null $fileName = null;
92 92
 
93 93
     /**
94 94
      * Table used as destination for this statement.
95 95
      */
96
-    public Expression|null $table = null;
96
+    public Expression | null $table = null;
97 97
 
98 98
     /**
99 99
      * Partitions used as source for this statement.
100 100
      */
101
-    public ArrayObj|null $partition = null;
101
+    public ArrayObj | null $partition = null;
102 102
 
103 103
     /**
104 104
      * Character set used in this statement.
105 105
      */
106
-    public Expression|null $charsetName = null;
106
+    public Expression | null $charsetName = null;
107 107
 
108 108
     /**
109 109
      * Options for FIELDS/COLUMNS keyword.
110 110
      *
111 111
      * @see LoadStatement::STATEMENT_FIELDS_OPTIONS
112 112
      */
113
-    public OptionsArray|null $fieldsOptions = null;
113
+    public OptionsArray | null $fieldsOptions = null;
114 114
 
115 115
     /**
116 116
      * Whether to use `FIELDS` or `COLUMNS` while building.
117 117
      */
118
-    public string|null $fieldsKeyword = null;
118
+    public string | null $fieldsKeyword = null;
119 119
 
120 120
     /**
121 121
      * Options for OPTIONS keyword.
122 122
      *
123 123
      * @see LoadStatement::STATEMENT_LINES_OPTIONS
124 124
      */
125
-    public OptionsArray|null $linesOptions = null;
125
+    public OptionsArray | null $linesOptions = null;
126 126
 
127 127
     /**
128 128
      * Column names or user variables.
129 129
      *
130 130
      * @var Expression[]|null
131 131
      */
132
-    public array|null $columnNamesOrUserVariables = null;
132
+    public array | null $columnNamesOrUserVariables = null;
133 133
 
134 134
     /**
135 135
      * SET clause's updated values(optional).
136 136
      *
137 137
      * @var SetOperation[]|null
138 138
      */
139
-    public array|null $set = null;
139
+    public array | null $set = null;
140 140
 
141 141
     /**
142 142
      * Ignore 'number' LINES/ROWS.
143 143
      */
144
-    public Expression|null $ignoreNumber = null;
144
+    public Expression | null $ignoreNumber = null;
145 145
 
146 146
     /**
147 147
      * REPLACE/IGNORE Keyword.
148 148
      */
149
-    public string|null $replaceIgnore = null;
149
+    public string | null $replaceIgnore = null;
150 150
 
151 151
     /**
152 152
      * LINES/ROWS Keyword.
153 153
      */
154
-    public string|null $linesRows = null;
154
+    public string | null $linesRows = null;
155 155
 
156 156
     public function build(): string
157 157
     {
Please login to merge, or discard this patch.
src/Statements/AlterStatement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,14 +23,14 @@
 block discarded – undo
23 23
     /**
24 24
      * Table affected.
25 25
      */
26
-    public Expression|null $table = null;
26
+    public Expression | null $table = null;
27 27
 
28 28
     /**
29 29
      * Column affected by this statement.
30 30
      *
31 31
      * @var AlterOperation[]|null
32 32
      */
33
-    public array|null $altered = [];
33
+    public array | null $altered = [];
34 34
 
35 35
     /**
36 36
      * Options of this statement.
Please login to merge, or discard this patch.
src/Statements/InsertStatement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * Tables used as target for this statement.
70 70
      */
71
-    public IntoKeyword|null $into = null;
71
+    public IntoKeyword | null $into = null;
72 72
 
73 73
     /**
74 74
      * Values to be inserted.
75 75
      *
76 76
      * @var ArrayObj[]|null
77 77
      */
78
-    public array|null $values = null;
78
+    public array | null $values = null;
79 79
 
80 80
     /**
81 81
      * If SET clause is present
@@ -83,19 +83,19 @@  discard block
 block discarded – undo
83 83
      *
84 84
      * @var SetOperation[]|null
85 85
      */
86
-    public array|null $set = null;
86
+    public array | null $set = null;
87 87
 
88 88
     /**
89 89
      * If SELECT clause is present
90 90
      * holds the SelectStatement.
91 91
      */
92
-    public SelectStatement|null $select = null;
92
+    public SelectStatement | null $select = null;
93 93
 
94 94
     /**
95 95
      * If WITH CTE is present
96 96
      * holds the WithStatement.
97 97
      */
98
-    public WithStatement|null $with = null;
98
+    public WithStatement | null $with = null;
99 99
 
100 100
     /**
101 101
      * If ON DUPLICATE KEY UPDATE clause is present
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @var SetOperation[]|null
105 105
      */
106
-    public array|null $onDuplicateSet = null;
106
+    public array | null $onDuplicateSet = null;
107 107
 
108 108
     public function build(): string
109 109
     {
Please login to merge, or discard this patch.
src/Statements/ReplaceStatement.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Tables used as target for this statement.
56 56
      */
57
-    public IntoKeyword|null $into = null;
57
+    public IntoKeyword | null $into = null;
58 58
 
59 59
     /**
60 60
      * Values to be replaced.
61 61
      *
62 62
      * @var ArrayObj[]|null
63 63
      */
64
-    public array|null $values = null;
64
+    public array | null $values = null;
65 65
 
66 66
     /**
67 67
      * If SET clause is present
@@ -69,13 +69,13 @@  discard block
 block discarded – undo
69 69
      *
70 70
      * @var SetOperation[]|null
71 71
      */
72
-    public array|null $set = null;
72
+    public array | null $set = null;
73 73
 
74 74
     /**
75 75
      * If SELECT clause is present
76 76
      * holds the SelectStatement.
77 77
      */
78
-    public SelectStatement|null $select = null;
78
+    public SelectStatement | null $select = null;
79 79
 
80 80
     public function build(): string
81 81
     {
Please login to merge, or discard this patch.
tests/Components/GroupKeywordTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     /** @param GroupKeyword|array<GroupKeyword> $component */
55 55
     #[DataProvider('provideExpressions')]
56
-    public function testBuild(GroupKeyword|array $component, string $expected): void
56
+    public function testBuild(GroupKeyword | array $component, string $expected): void
57 57
     {
58 58
         if (is_array($component)) {
59 59
             $this->assertSame($expected, GroupKeyword::buildAll($component));
Please login to merge, or discard this patch.
tests/Utils/CLITest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     /** @param array<string, bool|string>|false $getopt */
52 52
     #[DataProvider('highlightParamsProvider')]
53
-    public function testRunHighlight(array|false $getopt, string $output, int $result): void
53
+    public function testRunHighlight(array | false $getopt, string $output, int $result): void
54 54
     {
55 55
         $cli = $this->getCLI($getopt);
56 56
         $this->expectOutputString($output);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     /** @param array<string, bool|string>|false $getopt */
124 124
     #[DataProvider('highlightParamsStdInProvider')]
125
-    public function testRunHighlightStdIn(string $input, array|false $getopt, string $output, int $result): void
125
+    public function testRunHighlightStdIn(string $input, array | false $getopt, string $output, int $result): void
126 126
     {
127 127
         $cli = $this->getCLIStdIn($input, $getopt);
128 128
         $this->expectOutputString($output);
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 
188 188
     /** @param array<string, bool|string>|false $getopt */
189 189
     #[DataProvider('lintParamsStdInProvider')]
190
-    public function testRunLintFromStdIn(string $input, array|false $getopt, string $output, int $result): void
190
+    public function testRunLintFromStdIn(string $input, array | false $getopt, string $output, int $result): void
191 191
     {
192 192
         $cli = $this->getCLIStdIn($input, $getopt);
193 193
         $this->expectOutputString($output);
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
     /** @param array<string, bool|string>|false $getopt */
251 251
     #[DataProvider('lintParamsProvider')]
252
-    public function testRunLint(array|false $getopt, string $output, int $result): void
252
+    public function testRunLint(array | false $getopt, string $output, int $result): void
253 253
     {
254 254
         $cli = $this->getCLI($getopt);
255 255
         $this->expectOutputString($output);
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 
314 314
     /** @param array<string, bool|string>|false $getopt */
315 315
     #[DataProvider('tokenizeParamsProvider')]
316
-    public function testRunTokenize(array|false $getopt, string $output, int $result): void
316
+    public function testRunTokenize(array | false $getopt, string $output, int $result): void
317 317
     {
318 318
         $cli = $this->getCLI($getopt);
319 319
         $this->expectOutputString($output);
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
 
366 366
     /** @param array<string, bool|string>|false $getopt */
367 367
     #[DataProvider('tokenizeParamsStdInProvider')]
368
-    public function testRunTokenizeStdIn(string $input, array|false $getopt, string $output, int $result): void
368
+    public function testRunTokenizeStdIn(string $input, array | false $getopt, string $output, int $result): void
369 369
     {
370 370
         $cli = $this->getCLIStdIn($input, $getopt);
371 371
         $this->expectOutputString($output);
Please login to merge, or discard this patch.
tests/Lexer/ContextTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * Test for loading closest SQL context
36 36
      */
37 37
     #[DataProvider('contextLoadingProvider')]
38
-    public function testLoadClosest(string $context, string|null $expected): void
38
+    public function testLoadClosest(string $context, string | null $expected): void
39 39
     {
40 40
         $this->assertEquals($expected, Context::loadClosest($context));
41 41
         if ($expected !== null) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     #[DataProvider('providerForTestMode')]
121
-    public function testMode(int|string $mode, int $expected): void
121
+    public function testMode(int | string $mode, int $expected): void
122 122
     {
123 123
         Context::setMode($mode);
124 124
         $this->assertSame($expected, Context::getMode());
Please login to merge, or discard this patch.
src/Statements/OptimizeStatement.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.
tests/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      *     : list<array{string, Token|null, int}>
60 60
      * )
61 61
      */
62
-    public function getErrorsAsArray(Lexer|Parser $obj): array
62
+    public function getErrorsAsArray(Lexer | Parser $obj): array
63 63
     {
64 64
         $ret = [];
65 65
         if ($obj instanceof Lexer) {
Please login to merge, or discard this patch.