Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
63 | public function toArray() |
||
64 | { |
||
65 | if (!$this->hasParameter('field')) { |
||
66 | $this->addParameter('field', '_all'); |
||
67 | } |
||
68 | |||
69 | if (!$this->hasParameter('size')) { |
||
70 | $this->addParameter('size', self::DEFAULT_SIZE); |
||
71 | } |
||
72 | |||
73 | $output = [ |
||
74 | 'text' => $this->text, |
||
75 | 'term' => $this->getParameters(), |
||
76 | ]; |
||
77 | |||
78 | return $output; |
||
79 | } |
||
80 | } |
||
81 |