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