src/Services/UnionCoverage.php
BeforeProposed
+2−2
33namespace Schemas\Services;
44final class UnionCoverage {
55 public static function all(array $branches,mixed $reader): bool {
6 foreach ($branches as $branch) if (Compatibility::can($branch,$reader)) return true;
7 return false;
6 foreach ($branches as $branch) if (!Compatibility::can($branch,$reader)) return false;
7 return true;
88 }
99 public static function any(mixed $writer,array $branches): bool {
1010 foreach ($branches as $branch) if (Compatibility::can($writer,$branch)) return true;