Conditions | 6 |
Paths | 4 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
66 | 87 | private function checkForDeprecatedOptions(array $config) |
|
67 | { |
||
68 | 87 | foreach ($config as $key => $value) { |
|
69 | 81 | if ($key === 'bold_style' && $value !== '**') { |
|
70 | 3 | @trigger_error('Customizing the bold_style option is deprecated and may be removed in the next major version', E_USER_DEPRECATED); |
|
|
|||
71 | 81 | } elseif ($key === 'italic_style' && $value !== '*') { |
|
72 | 29 | @trigger_error('Customizing the italic_style option is deprecated and may be removed in the next major version', E_USER_DEPRECATED); |
|
73 | 2 | } |
|
74 | 58 | } |
|
75 | 87 | } |
|
76 | } |
||
77 |
If you suppress an error, we recommend checking for the error condition explicitly: