We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 28 | final class ArrayVal implements Rule |
||
| 29 | { |
||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | 40 | public function apply($input): Result |
|
| 34 | { |
||
| 35 | 40 | return new Result($this->isArray($input), $input, $this); |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Returns whether the input can be used as an array or not. |
||
| 40 | * |
||
| 41 | * @param mixed $input |
||
| 42 | * |
||
| 43 | * @return bool |
||
| 44 | */ |
||
| 45 | 40 | private function isArray($input): bool |
|
| 49 | } |
||
| 50 |