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

Method isLocalSourceType

src/FileRise/Domain/UploadModel.php:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 private static function isLocalSourceType(): bool
58 {
59 if (!class_exists('SourceContext')) {
60 return true;
61 }
62 $src = SourceContext::getActiveSource();
63 $type = strtolower((string)($src['type'] ?? 'local'));
64 return $type === '' || $type === 'local';
65 }
66
67 private static function stagingRoot(bool $isLocal): string
68 {

Callers 5

sweepResumableExpiredMethod · 0.95
purgeResumableAllMethod · 0.95
handleUploadMethod · 0.95
removeChunksMethod · 0.95

Calls 1

getActiveSourceMethod · 0.80

Tested by

no test coverage detected