We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 90.91% |
Changes | 0 |
1 | <?php |
||
24 | final class Equivalent extends AbstractRule |
||
25 | { |
||
26 | /** |
||
27 | * @var mixed |
||
28 | */ |
||
29 | private $compareTo; |
||
30 | |||
31 | /** |
||
32 | * Initializes the rule. |
||
33 | * |
||
34 | * @param mixed $compareTo |
||
35 | */ |
||
36 | 1 | public function __construct($compareTo) |
|
39 | 1 | } |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 10 | public function validate($input): bool |
|
51 | } |
||
52 | |||
53 | 5 | private function isStringEquivalent(string $input): bool |
|
62 |