Conditions | 6 |
Paths | 32 |
Total Lines | 25 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __construct( |
||
21 | private string $stringColor = '', |
||
22 | private string $commentColor = '', |
||
23 | private string $keywordColor = '', |
||
24 | private string $defaultColor = '', |
||
25 | private string $htmlColor = '', |
||
26 | ) { |
||
27 | if ($stringColor) { |
||
28 | ini_set('highlight.string', $stringColor); |
||
29 | } |
||
30 | |||
31 | if ($commentColor) { |
||
32 | ini_set('highlight.comment', $commentColor); |
||
33 | } |
||
34 | |||
35 | if ($keywordColor) { |
||
36 | ini_set('highlight.keyword', $keywordColor); |
||
37 | } |
||
38 | |||
39 | if ($defaultColor) { |
||
40 | ini_set('highlight.default', $defaultColor); |
||
41 | } |
||
42 | |||
43 | if ($htmlColor) { |
||
44 | ini_set('highlight.html', $htmlColor); |
||
45 | } |
||
59 |