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

Method saveEnabled

src/FileRise/Storage/SourcesConfig.php:372–381  ·  view source on GitHub ↗
(bool $enabled)

Source from the content-addressed store, hash-verified

370 }
371
372 public static function saveEnabled(bool $enabled): bool
373 {
374 if (self::proSourcesAvailable()) {
375 return ProSources::saveEnabled($enabled);
376 }
377
378 $raw = self::loadRaw();
379 $raw['enabled'] = $enabled ? true : false;
380 return self::saveRaw($raw);
381 }
382
383 public static function upsertSource(array $source): array
384 {

Callers 1

saveMethod · 0.80

Calls 3

proSourcesAvailableMethod · 0.95
loadRawMethod · 0.95
saveRawMethod · 0.95

Tested by

no test coverage detected