Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function toArray(): array |
||
32 | { |
||
33 | if (\count($this->keys) === 1) { |
||
34 | $keysQuery = implode($this->keys); |
||
35 | } else { |
||
36 | $keysQuery = [ |
||
37 | TermType::MAKE_ARRAY, |
||
38 | array_values($this->keys) |
||
39 | ]; |
||
40 | } |
||
41 | |||
42 | return [ |
||
43 | TermType::HAS_FIELDS, |
||
44 | [ |
||
45 | [ |
||
46 | TermType::IMPLICIT_VAR |
||
47 | ], |
||
48 | $keysQuery |
||
49 | ] |
||
53 |