| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 70.59% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | trait NormalizesFunctions |
||
| 13 | { |
||
| 14 | use NormalizesArrayFunctions; |
||
| 15 | use NormalizesDateFunctions; |
||
| 16 | use NormalizesGeoFunctions; |
||
| 17 | use NormalizesMiscellaneousFunctions; |
||
| 18 | use NormalizesNumericFunctions; |
||
| 19 | |||
| 20 | 1 | protected function normalizeArrays(QueryBuilder $queryBuilder) |
|
| 21 | { |
||
| 22 | 1 | foreach ($this->parameters as $key => $parameter) { |
|
| 23 | 1 | $this->parameters[$key] = $queryBuilder->normalizeArgument( |
|
|
|
|||
| 24 | 1 | $parameter, |
|
| 25 | 1 | ['List', 'Query', 'Variable', 'Reference', 'Bind'] |
|
| 26 | ); |
||
| 27 | } |
||
| 28 | 1 | } |
|
| 29 | |||
| 30 | 6 | protected function normalizeNumbers(QueryBuilder $queryBuilder) |
|
| 31 | { |
||
| 32 | 6 | foreach ($this->parameters as $key => $parameter) { |
|
| 33 | 6 | $this->parameters[$key] = $queryBuilder->normalizeArgument( |
|
| 34 | 6 | $parameter, |
|
| 35 | 6 | ['Number', 'Function', 'Query', 'Reference', 'Bind'] |
|
| 36 | ); |
||
| 37 | } |
||
| 38 | 6 | } |
|
| 39 | |||
| 40 | protected function normalizeStrings(QueryBuilder $queryBuilder) |
||
| 46 | ); |
||
| 47 | } |
||
| 48 | } |
||
| 50 |