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 | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Nullable extends AbstractWrapper |
||
| 17 | { |
||
| 18 | 22 | public function __construct(Validatable $rule) |
|
| 21 | 22 | } |
|
| 22 | |||
| 23 | 2 | public function assert($input) |
|
| 24 | { |
||
| 25 | 2 | if ($input === null) { |
|
| 26 | 1 | return true; |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | return parent::assert($input); |
|
| 30 | } |
||
| 31 | |||
| 32 | 2 | public function check($input) |
|
| 39 | } |
||
| 40 | |||
| 41 | 17 | public function validate($input) |
|
| 50 |