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

Method shouldUseRemoteMarker

src/FileRise/Domain/FileModel.php:80–91  ·  view source on GitHub ↗
(StorageAdapterInterface $storage)

Source from the content-addressed store, hash-verified

78 }
79
80 private static function shouldUseRemoteMarker(StorageAdapterInterface $storage): bool
81 {
82 if ($storage->isLocal()) {
83 return false;
84 }
85 if (class_exists('SourceContext')) {
86 $src = SourceContext::getActiveSource();
87 $type = strtolower((string)($src['type'] ?? ''));
88 return $type === 's3';
89 }
90 return true;
91 }
92
93 private static function remoteDirMarker(): string
94 {

Callers 1

Calls 2

getActiveSourceMethod · 0.80
isLocalMethod · 0.45

Tested by

no test coverage detected