@@ 39-55 (lines=17) @@ | ||
36 | /** |
|
37 | * @inheritDoc |
|
38 | */ |
|
39 | protected function setModuleValues():void{ |
|
40 | ||
41 | foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){ |
|
42 | $v = $this->options->moduleValues[$M_TYPE] ?? null; |
|
43 | ||
44 | if(!is_string($v)){ |
|
45 | $this->moduleValues[$M_TYPE] = $defaultValue |
|
46 | ? $this->options->markupDark |
|
47 | : $this->options->markupLight; |
|
48 | } |
|
49 | else{ |
|
50 | $this->moduleValues[$M_TYPE] = trim(strip_tags($v), '\'"'); |
|
51 | } |
|
52 | ||
53 | } |
|
54 | ||
55 | } |
|
56 | ||
57 | /** |
|
58 | * @return string |
@@ 32-48 (lines=17) @@ | ||
29 | /** |
|
30 | * @inheritDoc |
|
31 | */ |
|
32 | protected function setModuleValues():void{ |
|
33 | ||
34 | foreach($this::DEFAULT_MODULE_VALUES as $M_TYPE => $defaultValue){ |
|
35 | $v = $this->options->moduleValues[$M_TYPE] ?? null; |
|
36 | ||
37 | if(!is_string($v)){ |
|
38 | $this->moduleValues[$M_TYPE] = $defaultValue |
|
39 | ? $this->options->textDark |
|
40 | : $this->options->textLight; |
|
41 | } |
|
42 | else{ |
|
43 | $this->moduleValues[$M_TYPE] = $v; |
|
44 | } |
|
45 | ||
46 | } |
|
47 | ||
48 | } |
|
49 | ||
50 | /** |
|
51 | * @return string |