Conditions | 4 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | protected function setModuleValues():void{ |
||
30 | |||
31 | foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){ |
||
32 | $v = $this->options->moduleValues[$M_TYPE] ?? null; |
||
33 | |||
34 | if(!is_string($v)){ |
||
35 | $this->moduleValues[$M_TYPE] = $defaultValue |
||
36 | ? $this->options->textDark |
||
37 | : $this->options->textLight; |
||
38 | } |
||
39 | else{ |
||
40 | $this->moduleValues[$M_TYPE] = $v; |
||
41 | } |
||
74 |