| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class SkipScriptByAttribute implements ValidatorInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var Config |
||
| 23 | */ |
||
| 24 | private $config; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * SkipScriptByAttribute constructor. |
||
| 28 | * |
||
| 29 | * @param Config $config |
||
| 30 | */ |
||
| 31 | public function __construct(Config $config) |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Validator function, handle javascript or not |
||
| 38 | * |
||
| 39 | * @param string $script |
||
| 40 | * @param Http $http |
||
| 41 | * |
||
| 42 | * @return bool |
||
| 43 | */ |
||
| 44 | public function validate(string $script, Http $http): bool |
||
| 55 |