Total Complexity | 6 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class HTMLPurifier_AttrDef_CSS_Ratio extends HTMLPurifier_AttrDef |
||
7 | { |
||
8 | /** |
||
9 | * @param string $ratio Ratio to validate |
||
10 | * @param HTMLPurifier_Config $config Configuration options |
||
11 | * @param HTMLPurifier_Context $context Context |
||
12 | * |
||
13 | * @return string|boolean |
||
14 | * |
||
15 | * @warning Some contexts do not pass $config, $context. These |
||
16 | * variables should not be used without checking HTMLPurifier_Length |
||
17 | */ |
||
18 | public function validate($ratio, $config, $context) |
||
47 |