| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | protected function handleCharacter($char) |
||
| 28 | { |
||
| 29 | # Ignore space, as we can't select multiple options |
||
| 30 | if ($char === " ") { |
||
| 31 | return false; |
||
| 32 | } |
||
| 33 | |||
| 34 | # Use enter to select the current option |
||
| 35 | if ($char === "\n") { |
||
| 36 | $this->checkboxes->toggleCurrent(); |
||
| 37 | } |
||
| 38 | |||
| 39 | return parent::handleCharacter($char); |
||
| 40 | } |
||
| 41 | |||
| 52 |