MCPcopy Create free account
hub / github.com/error311/FileRise / isTypeAllowed

Method isTypeAllowed

src/FileRise/Storage/SourcesConfig.php:39–43  ·  view source on GitHub ↗
(string $type)

Source from the content-addressed store, hash-verified

37 }
38
39 public static function isTypeAllowed(string $type): bool
40 {
41 $type = strtolower(trim($type));
42 return in_array($type, self::allowedTypes(), true);
43 }
44
45 public static function capabilityInfo(): array
46 {

Callers 2

normalizeSourceStoredMethod · 0.95
upsertSourceMethod · 0.95

Calls 1

allowedTypesMethod · 0.95

Tested by

no test coverage detected