()
| 55 | } |
| 56 | |
| 57 | private static function isLocalSourceType(): bool |
| 58 | { |
| 59 | if (!class_exists('SourceContext')) { |
| 60 | return true; |
| 61 | } |
| 62 | $src = SourceContext::getActiveSource(); |
| 63 | $type = strtolower((string)($src['type'] ?? 'local')); |
| 64 | return $type === '' || $type === 'local'; |
| 65 | } |
| 66 | |
| 67 | private static function stagingRoot(bool $isLocal): string |
| 68 | { |
no test coverage detected