Conditions | 6 |
Paths | 5 |
Total Lines | 24 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | protected function text():string{ |
||
28 | $str = []; |
||
29 | |||
30 | foreach($this->matrix->matrix() as $row){ |
||
31 | $r = []; |
||
32 | |||
33 | foreach($row as $col){ |
||
34 | $col = $this->options->moduleValues[$col]; |
||
35 | |||
36 | // fallback |
||
37 | if(is_bool($col) || !is_string($col)){ |
||
38 | $col = $col |
||
39 | ? $this->options->textDark |
||
40 | : $this->options->textLight; |
||
41 | } |
||
42 | |||
43 | $r[] = $col; |
||
44 | } |
||
45 | |||
46 | $str[] = implode('', $r); |
||
47 | } |
||
48 | |||
49 | return implode($this->options->eol, $str); |
||
50 | } |
||
51 | |||
60 |