| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | public function validate($string, $config, $context) |
||
| 6 | { |
||
| 7 | $allowed = array('false'); |
||
| 8 | if ($config->get('HTML.Trusted')) { |
||
| 9 | $allowed = array('', 'true', 'false'); |
||
| 10 | } |
||
| 11 | |||
| 12 | $enum = new HTMLPurifier_AttrDef_Enum($allowed); |
||
| 13 | |||
| 14 | return $enum->validate($string, $config, $context); |
||
| 15 | } |
||
| 17 |