(StorageAdapterInterface $storage)
| 78 | } |
| 79 | |
| 80 | private static function shouldUseRemoteMarker(StorageAdapterInterface $storage): bool |
| 81 | { |
| 82 | if ($storage->isLocal()) { |
| 83 | return false; |
| 84 | } |
| 85 | if (class_exists('SourceContext')) { |
| 86 | $src = SourceContext::getActiveSource(); |
| 87 | $type = strtolower((string)($src['type'] ?? '')); |
| 88 | return $type === 's3'; |
| 89 | } |
| 90 | return true; |
| 91 | } |
| 92 | |
| 93 | private static function remoteDirMarker(): string |
| 94 | { |
no test coverage detected