| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 75 | public function toArray() |
||
| 76 | { |
||
| 77 | if (!$this->hasParameter('field')) { |
||
| 78 | $this->addParameter('field', '_all'); |
||
| 79 | } |
||
| 80 | |||
| 81 | if (!$this->hasParameter('size')) { |
||
| 82 | $this->addParameter('size', self::DEFAULT_SIZE); |
||
| 83 | } |
||
| 84 | |||
| 85 | $output = [ |
||
| 86 | $this->name => [ |
||
| 87 | 'text' => $this->text, |
||
| 88 | 'completion' => $this->getParameters(), |
||
| 89 | ] |
||
| 90 | ]; |
||
| 91 | |||
| 92 | return $output; |
||
| 93 | } |
||
| 94 | } |
||
| 95 |