Skip to content

Commit ef954bb

Browse files
committed
Rename Lists to Parsers
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 7ae60b5 commit ef954bb

36 files changed

+258
-258
lines changed

phpstan-baseline.neon

Lines changed: 85 additions & 85 deletions
Large diffs are not rendered by default.

psalm-baseline.xml

Lines changed: 95 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -197,101 +197,6 @@
197197
<code><![CDATA[$ret->rowCount]]></code>
198198
</MixedAssignment>
199199
</file>
200-
<file src="src/Components/Lists/Conditions.php">
201-
<MixedArrayOffset>
202-
<code><![CDATA[self::ALLOWED_KEYWORDS[$token->value]]]></code>
203-
</MixedArrayOffset>
204-
</file>
205-
<file src="src/Components/Lists/CreateDefinitions.php">
206-
<MixedAssignment>
207-
<code><![CDATA[$expr->name]]></code>
208-
<code><![CDATA[$expr->name]]></code>
209-
</MixedAssignment>
210-
</file>
211-
<file src="src/Components/Lists/ExpressionArray.php">
212-
<InvalidReturnStatement>
213-
<code>$ret</code>
214-
</InvalidReturnStatement>
215-
<InvalidReturnType>
216-
<code>Expression[]</code>
217-
</InvalidReturnType>
218-
<PossiblyNullArgument>
219-
<code>$expr</code>
220-
<code>$expr</code>
221-
<code>$expr</code>
222-
</PossiblyNullArgument>
223-
</file>
224-
<file src="src/Components/Lists/GroupKeywords.php">
225-
<PossiblyNullPropertyAssignmentValue>
226-
<code>Expression::parse($parser, $list)</code>
227-
</PossiblyNullPropertyAssignmentValue>
228-
</file>
229-
<file src="src/Components/Lists/IndexHints.php">
230-
<MixedAssignment>
231-
<code><![CDATA[$expr->type]]></code>
232-
</MixedAssignment>
233-
</file>
234-
<file src="src/Components/Lists/JoinKeywords.php">
235-
<MixedArrayOffset>
236-
<code><![CDATA[JoinKeyword::JOINS[$token->keyword]]]></code>
237-
<code><![CDATA[JoinKeyword::JOINS[$token->keyword]]]></code>
238-
</MixedArrayOffset>
239-
<PossiblyInvalidPropertyAssignmentValue>
240-
<code>ArrayObj::parse($parser, $list)</code>
241-
</PossiblyInvalidPropertyAssignmentValue>
242-
<PossiblyNullPropertyAssignmentValue>
243-
<code><![CDATA[Expression::parse($parser, $list, ['field' => 'table'])]]></code>
244-
</PossiblyNullPropertyAssignmentValue>
245-
<UnusedVariable>
246-
<code>$state</code>
247-
<code>$state</code>
248-
<code>$state</code>
249-
</UnusedVariable>
250-
</file>
251-
<file src="src/Components/Lists/OrderKeywords.php">
252-
<PossiblyNullPropertyAssignmentValue>
253-
<code>Expression::parse($parser, $list)</code>
254-
</PossiblyNullPropertyAssignmentValue>
255-
</file>
256-
<file src="src/Components/Lists/ParameterDefinitions.php">
257-
<MixedAssignment>
258-
<code><![CDATA[$expr->name]]></code>
259-
</MixedAssignment>
260-
<PossiblyNullPropertyAssignmentValue>
261-
<code>DataType::parse($parser, $list)</code>
262-
</PossiblyNullPropertyAssignmentValue>
263-
<RedundantConditionGivenDocblockType>
264-
<code><![CDATA[isset($expr->name)]]></code>
265-
</RedundantConditionGivenDocblockType>
266-
</file>
267-
<file src="src/Components/Lists/RenameOperations.php">
268-
<PossiblyNullPropertyAssignmentValue>
269-
<code><![CDATA[Expression::parse(
270-
$parser,
271-
$list,
272-
[
273-
'breakOnAlias' => true,
274-
'parseField' => 'table',
275-
],
276-
)]]></code>
277-
<code><![CDATA[Expression::parse(
278-
$parser,
279-
$list,
280-
[
281-
'breakOnAlias' => true,
282-
'parseField' => 'table',
283-
],
284-
)]]></code>
285-
</PossiblyNullPropertyAssignmentValue>
286-
</file>
287-
<file src="src/Components/Lists/SetOperations.php">
288-
<PossiblyNullPropertyAssignmentValue>
289-
<code><![CDATA[$tmp->expr]]></code>
290-
</PossiblyNullPropertyAssignmentValue>
291-
<RedundantConditionGivenDocblockType>
292-
<code><![CDATA[$token->value === ',']]></code>
293-
</RedundantConditionGivenDocblockType>
294-
</file>
295200
<file src="src/Components/LockExpression.php">
296201
<MissingConstructor>
297202
<code>$table</code>
@@ -395,6 +300,101 @@
395300
<code>$type</code>
396301
</PossiblyNullPropertyAssignmentValue>
397302
</file>
303+
<file src="src/Components/Parsers/Conditions.php">
304+
<MixedArrayOffset>
305+
<code><![CDATA[self::ALLOWED_KEYWORDS[$token->value]]]></code>
306+
</MixedArrayOffset>
307+
</file>
308+
<file src="src/Components/Parsers/CreateDefinitions.php">
309+
<MixedAssignment>
310+
<code><![CDATA[$expr->name]]></code>
311+
<code><![CDATA[$expr->name]]></code>
312+
</MixedAssignment>
313+
</file>
314+
<file src="src/Components/Parsers/ExpressionArray.php">
315+
<InvalidReturnStatement>
316+
<code>$ret</code>
317+
</InvalidReturnStatement>
318+
<InvalidReturnType>
319+
<code>Expression[]</code>
320+
</InvalidReturnType>
321+
<PossiblyNullArgument>
322+
<code>$expr</code>
323+
<code>$expr</code>
324+
<code>$expr</code>
325+
</PossiblyNullArgument>
326+
</file>
327+
<file src="src/Components/Parsers/GroupKeywords.php">
328+
<PossiblyNullPropertyAssignmentValue>
329+
<code>Expression::parse($parser, $list)</code>
330+
</PossiblyNullPropertyAssignmentValue>
331+
</file>
332+
<file src="src/Components/Parsers/IndexHints.php">
333+
<MixedAssignment>
334+
<code><![CDATA[$expr->type]]></code>
335+
</MixedAssignment>
336+
</file>
337+
<file src="src/Components/Parsers/JoinKeywords.php">
338+
<MixedArrayOffset>
339+
<code><![CDATA[JoinKeyword::JOINS[$token->keyword]]]></code>
340+
<code><![CDATA[JoinKeyword::JOINS[$token->keyword]]]></code>
341+
</MixedArrayOffset>
342+
<PossiblyInvalidPropertyAssignmentValue>
343+
<code>ArrayObj::parse($parser, $list)</code>
344+
</PossiblyInvalidPropertyAssignmentValue>
345+
<PossiblyNullPropertyAssignmentValue>
346+
<code><![CDATA[Expression::parse($parser, $list, ['field' => 'table'])]]></code>
347+
</PossiblyNullPropertyAssignmentValue>
348+
<UnusedVariable>
349+
<code>$state</code>
350+
<code>$state</code>
351+
<code>$state</code>
352+
</UnusedVariable>
353+
</file>
354+
<file src="src/Components/Parsers/OrderKeywords.php">
355+
<PossiblyNullPropertyAssignmentValue>
356+
<code>Expression::parse($parser, $list)</code>
357+
</PossiblyNullPropertyAssignmentValue>
358+
</file>
359+
<file src="src/Components/Parsers/ParameterDefinitions.php">
360+
<MixedAssignment>
361+
<code><![CDATA[$expr->name]]></code>
362+
</MixedAssignment>
363+
<PossiblyNullPropertyAssignmentValue>
364+
<code>DataType::parse($parser, $list)</code>
365+
</PossiblyNullPropertyAssignmentValue>
366+
<RedundantConditionGivenDocblockType>
367+
<code><![CDATA[isset($expr->name)]]></code>
368+
</RedundantConditionGivenDocblockType>
369+
</file>
370+
<file src="src/Components/Parsers/RenameOperations.php">
371+
<PossiblyNullPropertyAssignmentValue>
372+
<code><![CDATA[Expression::parse(
373+
$parser,
374+
$list,
375+
[
376+
'breakOnAlias' => true,
377+
'parseField' => 'table',
378+
],
379+
)]]></code>
380+
<code><![CDATA[Expression::parse(
381+
$parser,
382+
$list,
383+
[
384+
'breakOnAlias' => true,
385+
'parseField' => 'table',
386+
],
387+
)]]></code>
388+
</PossiblyNullPropertyAssignmentValue>
389+
</file>
390+
<file src="src/Components/Parsers/SetOperations.php">
391+
<PossiblyNullPropertyAssignmentValue>
392+
<code><![CDATA[$tmp->expr]]></code>
393+
</PossiblyNullPropertyAssignmentValue>
394+
<RedundantConditionGivenDocblockType>
395+
<code><![CDATA[$token->value === ',']]></code>
396+
</RedundantConditionGivenDocblockType>
397+
</file>
398398
<file src="src/Components/PartitionDefinition.php">
399399
<MissingConstructor>
400400
<code>$expr</code>

src/Components/CaseExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace PhpMyAdmin\SqlParser\Components;
66

77
use PhpMyAdmin\SqlParser\Component;
8-
use PhpMyAdmin\SqlParser\Components\Lists\Conditions;
8+
use PhpMyAdmin\SqlParser\Components\Parsers\Conditions;
99
use PhpMyAdmin\SqlParser\Context;
1010
use PhpMyAdmin\SqlParser\Parseable;
1111
use PhpMyAdmin\SqlParser\Parser;

src/Components/IntoKeyword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace PhpMyAdmin\SqlParser\Components;
66

77
use PhpMyAdmin\SqlParser\Component;
8-
use PhpMyAdmin\SqlParser\Components\Lists\ExpressionArray;
8+
use PhpMyAdmin\SqlParser\Components\Parsers\ExpressionArray;
99
use PhpMyAdmin\SqlParser\Parseable;
1010
use PhpMyAdmin\SqlParser\Parser;
1111
use PhpMyAdmin\SqlParser\Token;

src/Components/JoinKeyword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace PhpMyAdmin\SqlParser\Components;
66

77
use PhpMyAdmin\SqlParser\Component;
8-
use PhpMyAdmin\SqlParser\Components\Lists\Conditions;
8+
use PhpMyAdmin\SqlParser\Components\Parsers\Conditions;
99

1010
use function array_search;
1111

src/Components/Lists/Array2d.php renamed to src/Components/Parsers/Array2d.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpMyAdmin\SqlParser\Components\Lists;
5+
namespace PhpMyAdmin\SqlParser\Components\Parsers;
66

77
use PhpMyAdmin\SqlParser\Components\ArrayObj;
88
use PhpMyAdmin\SqlParser\Parseable;

src/Components/Lists/Conditions.php renamed to src/Components/Parsers/Conditions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpMyAdmin\SqlParser\Components\Lists;
5+
namespace PhpMyAdmin\SqlParser\Components\Parsers;
66

77
use PhpMyAdmin\SqlParser\Components\Condition;
88
use PhpMyAdmin\SqlParser\Parseable;

src/Components/Lists/CreateDefinitions.php renamed to src/Components/Parsers/CreateDefinitions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpMyAdmin\SqlParser\Components\Lists;
5+
namespace PhpMyAdmin\SqlParser\Components\Parsers;
66

77
use PhpMyAdmin\SqlParser\Components\CreateDefinition;
88
use PhpMyAdmin\SqlParser\Components\DataType;

src/Components/Lists/ExpressionArray.php renamed to src/Components/Parsers/ExpressionArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpMyAdmin\SqlParser\Components\Lists;
5+
namespace PhpMyAdmin\SqlParser\Components\Parsers;
66

77
use PhpMyAdmin\SqlParser\Components\CaseExpression;
88
use PhpMyAdmin\SqlParser\Components\Expression;

src/Components/Lists/GroupKeywords.php renamed to src/Components/Parsers/GroupKeywords.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace PhpMyAdmin\SqlParser\Components\Lists;
5+
namespace PhpMyAdmin\SqlParser\Components\Parsers;
66

77
use PhpMyAdmin\SqlParser\Components\Expression;
88
use PhpMyAdmin\SqlParser\Components\GroupKeyword;

0 commit comments

Comments
 (0)