We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 8 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | final class Sorted extends AbstractRule |
||
23 | { |
||
24 | /** |
||
25 | * @var callable |
||
26 | */ |
||
27 | private $fn = null; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $ascending = true; |
||
33 | |||
34 | 7 | public function __construct(?callable $fn = null, bool $ascending = true) |
|
40 | 1 | } |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 10 | public function validate($input): bool |
|
62 |