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

Method getSourceById

src/FileRise/Storage/SourceContext.php:102–112  ·  view source on GitHub ↗
(?string $id)

Source from the content-addressed store, hash-verified

100 }
101
102 public static function getSourceById(?string $id): ?array
103 {
104 if (!self::sourcesEnabled()) {
105 return null;
106 }
107 $id = trim((string)$id);
108 if ($id === '') {
109 return null;
110 }
111 return SourcesConfig::getSource($id);
112 }
113
114 public static function listAllSources(): array
115 {

Callers 15

uploadRootForIdMethod · 0.95
metaRootForIdMethod · 0.95
isEmpty.phpFile · 0.80
capabilities.phpFile · 0.80
saveGrants.phpFile · 0.80
getGrants.phpFile · 0.80
resolveSourceIdMethod · 0.80
deleteFolderMethod · 0.80
getFolderListMethod · 0.80
deleteShareFolderLinkMethod · 0.80
moveFolderMethod · 0.80
handleUploadMethod · 0.80

Calls 2

sourcesEnabledMethod · 0.95
getSourceMethod · 0.80

Tested by 1

runRootBoundaryChecksMethod · 0.64