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

Method listAllSources

src/FileRise/Storage/SourceContext.php:114–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112 }
113
114 public static function listAllSources(): array
115 {
116 if (!self::sourcesEnabled()) {
117 return [self::getActiveSource()];
118 }
119 $cfg = SourcesConfig::getConfig();
120 $sources = isset($cfg['sources']) && is_array($cfg['sources']) ? $cfg['sources'] : [];
121 return $sources ?: [self::getActiveSource()];
122 }
123
124 public static function isReadOnly(): bool
125 {

Callers 7

resumableCleanupMethod · 0.80
resolveTargetsMethod · 0.80
downloadLogRootsMethod · 0.80
getAuthFileLinkRecordMethod · 0.80
getShareRecordMethod · 0.80
findShareFolderRecordMethod · 0.80

Calls 3

sourcesEnabledMethod · 0.95
getActiveSourceMethod · 0.95
getConfigMethod · 0.45

Tested by

no test coverage detected