We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | final class ContainsAny extends AbstractEnvelope |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Initializes the rule. |
||
| 28 | * |
||
| 29 | * @param array $needles At least one of the values provided must be found in input string or array |
||
| 30 | * @param bool $identical Defines whether the value should be compared strictly, when validating array |
||
| 31 | */ |
||
| 32 | 1 | public function __construct(array $needles, bool $identical = false) |
|
| 37 | ); |
||
| 38 | 1 | } |
|
| 39 | |||
| 40 | 1 | private function getRules(array $needles, bool $identical): array |
|
| 50 |