We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | final class FilterVar extends AbstractEnvelope |
||
| 31 | { |
||
| 32 | private const ALLOWED_FILTERS = [ |
||
| 33 | FILTER_VALIDATE_BOOLEAN, |
||
| 34 | FILTER_VALIDATE_EMAIL, |
||
| 35 | FILTER_VALIDATE_FLOAT, |
||
| 36 | FILTER_VALIDATE_INT, |
||
| 37 | FILTER_VALIDATE_IP, |
||
| 38 | FILTER_VALIDATE_REGEXP, |
||
| 39 | FILTER_VALIDATE_URL, |
||
| 40 | ]; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Initializes the rule. |
||
| 44 | * |
||
| 45 | * @param int $filter |
||
| 46 | * @param mixed $options |
||
| 47 | * |
||
| 48 | * @throws ComponentException |
||
| 49 | */ |
||
| 50 | 3 | public function __construct(int $filter, $options = null) |
|
| 59 |