Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
17 | public function get(int $index): mixed |
||
18 | { |
||
19 | while ($this->valid && !isset($this->values[$index])) { |
||
20 | $this->readNext(); |
||
21 | } |
||
22 | |||
23 | if (is_array(value: $this->values[$index])) { |
||
24 | return trim(string: implode(separator: ' ', array: $this->values[$index])); |
||
25 | } |
||
26 | |||
27 | return $this->values[$index]; |
||
28 | } |
||
32 |