()
| 268 | } |
| 269 | |
| 270 | public static function getConfig(): array |
| 271 | { |
| 272 | if (self::proSourcesAvailable()) { |
| 273 | return self::withCapabilities(ProSources::getConfig()); |
| 274 | } |
| 275 | |
| 276 | $cfg = self::coreConfigFromRaw(self::loadRaw()); |
| 277 | $out = [ |
| 278 | 'enabled' => !empty($cfg['enabled']), |
| 279 | 'sources' => [], |
| 280 | ]; |
| 281 | |
| 282 | foreach ($cfg['sources'] as $src) { |
| 283 | $out['sources'][] = self::buildSourceView($src, true, false); |
| 284 | } |
| 285 | |
| 286 | return self::withCapabilities($out); |
| 287 | } |
| 288 | |
| 289 | public static function getPublicConfig(): array |
| 290 | { |
no test coverage detected