Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public static function isDispatchable(object|string $target, CommitType ...$commitTypes): bool |
||
40 | { |
||
41 | return ArrayList::collect(self::getTransactional($target)) |
||
42 | ->map(static fn (Transactional $t) => $t->commitTypes) |
||
43 | ->flatten() |
||
44 | ->toArrayList() |
||
45 | ->every(static fn (CommitType $ct) => \in_array($ct, $commitTypes, true)) |
||
46 | ; |
||
49 |