(?string $id)
| 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 | { |