We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 7 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Nullable extends AbstractWrapper |
||
| 17 | { |
||
| 18 | public function __construct(Validatable $rule) |
||
| 21 | } |
||
| 22 | |||
| 23 | public function assert($input) |
||
| 24 | { |
||
| 25 | if ($input === null) { |
||
| 26 | return true; |
||
| 27 | } |
||
| 28 | |||
| 29 | return parent::assert($input); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function check($input) |
||
| 39 | } |
||
| 40 | |||
| 41 | public function validate($input) |
||
| 50 |