1 | <?php |
||||||
2 | |||||||
3 | declare(strict_types=1); |
||||||
4 | |||||||
5 | namespace LaravelFreelancerNL\FluentAQL\Traits; |
||||||
6 | |||||||
7 | use LaravelFreelancerNL\FluentAQL\QueryBuilder; |
||||||
8 | |||||||
9 | /** |
||||||
10 | * Trait hasFunctions. |
||||||
11 | * |
||||||
12 | * AQL Function API calls. |
||||||
13 | */ |
||||||
14 | trait NormalizesArrayFunctions |
||||||
15 | { |
||||||
16 | 2 | protected function normalizeAppend(QueryBuilder $queryBuilder): void |
|||||
17 | { |
||||||
18 | 2 | $this->parameters['array'] = $queryBuilder->normalizeArgument( |
|||||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||||||
19 | 2 | $this->parameters['array'], |
|||||
20 | 2 | ['List', 'Query', 'Variable', 'Reference', 'Bind'] |
|||||
21 | ); |
||||||
22 | |||||||
23 | 2 | $this->parameters['values'] = $queryBuilder->normalizeArgument( |
|||||
24 | 2 | $this->parameters['values'], |
|||||
25 | 2 | ['List', 'Number', 'Query', 'Variable', 'Reference', 'Bind'] |
|||||
26 | ); |
||||||
27 | |||||||
28 | 2 | if (isset($this->parameters['unique'])) { |
|||||
29 | 1 | $this->parameters['unique'] = $queryBuilder->normalizeArgument( |
|||||
30 | 1 | $this->parameters['unique'], |
|||||
31 | 1 | ['Boolean', 'Query', 'Variable', 'Reference', 'Bind'] |
|||||
32 | ); |
||||||
33 | } |
||||||
34 | } |
||||||
35 | |||||||
36 | 1 | protected function normalizeCountDistinct(QueryBuilder $queryBuilder): void |
|||||
37 | { |
||||||
38 | 1 | $this->normalizeArrays($queryBuilder); |
|||||
0 ignored issues
–
show
The method
normalizeArrays() does not exist on LaravelFreelancerNL\Flue...ormalizesArrayFunctions . Did you maybe mean normalizeLast() ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. ![]() |
|||||||
39 | } |
||||||
40 | |||||||
41 | 2 | protected function normalizeFirst(QueryBuilder $queryBuilder): void |
|||||
42 | { |
||||||
43 | 2 | $this->normalizeArrays($queryBuilder); |
|||||
44 | } |
||||||
45 | |||||||
46 | 1 | protected function normalizeFlatten(QueryBuilder $queryBuilder): void |
|||||
47 | { |
||||||
48 | 1 | $this->parameters['array'] = $queryBuilder->normalizeArgument( |
|||||
0 ignored issues
–
show
|
|||||||
49 | 1 | $this->parameters['array'], |
|||||
50 | 1 | ['List', 'Query', 'Variable', 'Reference', 'Bind'] |
|||||
51 | ); |
||||||
52 | |||||||
53 | 1 | $this->parameters['depth'] = $queryBuilder->normalizeArgument( |
|||||
54 | 1 | $this->parameters['depth'], |
|||||
55 | 1 | ['Number', 'Query', 'Reference', 'Bind'] |
|||||
56 | ); |
||||||
57 | } |
||||||
58 | |||||||
59 | 1 | protected function normalizeIntersection(QueryBuilder $queryBuilder): void |
|||||
60 | { |
||||||
61 | 1 | $this->normalizeArrays($queryBuilder); |
|||||
62 | } |
||||||
63 | |||||||
64 | 1 | protected function normalizeLast(QueryBuilder $queryBuilder): void |
|||||
65 | { |
||||||
66 | 1 | $this->normalizeArrays($queryBuilder); |
|||||
67 | } |
||||||
68 | |||||||
69 | 2 | protected function normalizeLength(QueryBuilder $queryBuilder): void |
|||||
70 | { |
||||||
71 | 2 | $this->normalizeArrays($queryBuilder); |
|||||
72 | } |
||||||
73 | |||||||
74 | 1 | protected function normalizeShift(QueryBuilder $queryBuilder): void |
|||||
75 | { |
||||||
76 | 1 | $this->parameters[0] = $queryBuilder->normalizeArgument( |
|||||
0 ignored issues
–
show
|
|||||||
77 | 1 | $this->parameters[0], |
|||||
78 | 1 | ['List', 'Query', 'Variable', 'Reference', 'Bind'] |
|||||
79 | ); |
||||||
80 | } |
||||||
81 | |||||||
82 | 1 | protected function normalizeUnion(QueryBuilder $queryBuilder): void |
|||||
83 | { |
||||||
84 | 1 | $this->normalizeArrays($queryBuilder); |
|||||
85 | } |
||||||
86 | |||||||
87 | 1 | protected function normalizeUnionDistinct(QueryBuilder $queryBuilder): void |
|||||
88 | { |
||||||
89 | 1 | $this->normalizeArrays($queryBuilder); |
|||||
90 | } |
||||||
91 | |||||||
92 | 1 | protected function normalizeUnique(QueryBuilder $queryBuilder): void |
|||||
93 | { |
||||||
94 | 1 | $this->parameters[0] = $queryBuilder->normalizeArgument( |
|||||
0 ignored issues
–
show
|
|||||||
95 | 1 | $this->parameters[0], |
|||||
96 | 1 | ['List', 'Query', 'Variable', 'Reference', 'Bind'] |
|||||
97 | ); |
||||||
98 | } |
||||||
99 | } |
||||||
100 |