| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 32 | public function __invoke(): Closure |
|
| 24 | { |
||
| 25 | 32 | return |
|
| 26 | /** |
||
| 27 | * @param array<T> $values |
||
| 28 | * |
||
| 29 | * @return Closure(iterable<TKey, T>): Generator<TKey, bool> |
||
| 30 | */ |
||
| 31 | 32 | static fn (array $values): Closure => (new MatchOne())()(static fn (): bool => true)( |
|
| 32 | /** |
||
| 33 | * @param T $value |
||
| 34 | */ |
||
| 35 | 32 | static fn (mixed $value): bool => in_array($value, $values, true) |
|
| 36 | 32 | ); |
|
| 39 |