Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
27 | protected function handleCharacter($char) |
||
28 | { |
||
29 | switch ($char) { |
||
30 | case ' ': |
||
31 | case "\n": |
||
32 | $this->checkboxes->toggleCurrent(); |
||
33 | $this->output->sameLine()->write($this->util->cursor->defaultStyle()); |
||
34 | $this->output->sameLine()->write("\e[0m"); |
||
35 | return true; // Break the while loop as well |
||
36 | |||
37 | case "\e": |
||
38 | $this->handleAnsi(); |
||
39 | break; |
||
40 | } |
||
41 | |||
42 | return false; |
||
43 | } |
||
44 | |||
55 |