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

Method proSourcesAvailable

src/FileRise/Storage/SourcesConfig.php:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 private const ALL_TYPES = ['local', 's3', 'sftp', 'ftp', 'webdav', 'smb', 'gdrive', 'onedrive', 'dropbox'];
17
18 private static function proSourcesAvailable(): bool
19 {
20 if (!defined('FR_PRO_ACTIVE') || !FR_PRO_ACTIVE || !class_exists('ProSources')) {
21 return false;
22 }
23 if (!defined('FR_PRO_API_REQUIRE_SOURCES') || !function_exists('fr_pro_api_level_at_least')) {
24 return true;
25 }
26 return fr_pro_api_level_at_least((int)FR_PRO_API_REQUIRE_SOURCES);
27 }
28
29 public static function isProExtendedAvailable(): bool
30 {

Callers 12

allowedTypesMethod · 0.95
capabilityInfoMethod · 0.95
getConfigMethod · 0.95
getPublicConfigMethod · 0.95
getAdminListMethod · 0.95
getSourceMethod · 0.95
getFirstEnabledSourceMethod · 0.95
getDefaultSourceMethod · 0.95
saveEnabledMethod · 0.95
upsertSourceMethod · 0.95
deleteSourceMethod · 0.95

Calls 1

Tested by

no test coverage detected