Kraken\Filesystem\FilesystemManager::filterPrefix PHP Метод

filterPrefix() приватный Метод

Filter $path in search for $prefix, if its present explode $path into $prefix and $newPath.
private filterPrefix ( string $path ) : string[]
$path string
Результат string[]
    private function filterPrefix($path)
    {
        if (!preg_match('#^.+\\:\\/\\/.*#', $path)) {
            throw new ReadException("No prefix detected in [{$path}].");
        }
        list($prefix, $newPath) = explode('://', $path, 2);
        return [$prefix, $newPath];
    }