Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function toArray(): array |
||
43 | { |
||
44 | if (\count($this->keys) === 1) { |
||
45 | $keysQuery = implode($this->keys); |
||
46 | } else { |
||
47 | $keysQuery = [ |
||
48 | TermType::MAKE_ARRAY, |
||
49 | array_values($this->keys) |
||
50 | ]; |
||
51 | } |
||
52 | |||
53 | return [ |
||
54 | TermType::WITHOUT, |
||
55 | [ |
||
56 | $this->query->toArray(), |
||
57 | $keysQuery |
||
58 | ] |
||
62 |