Conditions | 6 |
Paths | 5 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | protected function toString():string{ |
||
41 | $str = ''; |
||
42 | |||
43 | foreach($this->matrix->matrix() as $row){ |
||
44 | foreach($row as $col){ |
||
45 | $col = $this->options->moduleValues[$col]; |
||
46 | |||
47 | // fallback |
||
48 | if(is_bool($col) || !is_string($col)){ |
||
49 | $col = $col ? $this->options->textDark : $this->options->textLight; |
||
50 | } |
||
51 | |||
52 | |||
53 | $str .= $col; |
||
54 | } |
||
55 | |||
56 | $str .= $this->options->eol; |
||
57 | } |
||
58 | |||
59 | return $str; |
||
60 | } |
||
61 | |||
63 |