| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 17 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 29 | public static function configFiles(string $basePath) : array  | 
            ||
| 30 |     { | 
            ||
| 31 |         if (! file_exists($basePath)) { | 
            ||
| 32 | return [];  | 
            ||
| 33 | }  | 
            ||
| 34 | $domain = new Domain();  | 
            ||
| 35 | $path = $domain->toString();  | 
            ||
| 36 |         if (file_exists($e = $basePath . DIRECTORY_SEPARATOR . 'config.php')) { | 
            ||
| 37 | $config = include $e;  | 
            ||
| 38 | $aliases = $config['los_domain']['aliases'] ?? [];  | 
            ||
| 39 |             if (array_key_exists($domain->toString(), $aliases)) { | 
            ||
| 40 | $path = $aliases[$domain->toString()];  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 |         $pattern = $basePath . DIRECTORY_SEPARATOR . $path . '/{{,*.}global,{,*.}local}.php'; | 
            ||
| 44 | return glob($pattern, GLOB_BRACE);  | 
            ||
| 45 | }  | 
            ||
| 46 | }  | 
            ||
| 47 |