Code Duplication    Length = 7-7 lines in 2 locations

Imagine/Cache/Resolver/FlysystemResolver.php 1 location

@@ 168-174 (lines=7) @@
165
    /**
166
     * {@inheritdoc}
167
     */
168
    protected function getFileUrl($path, $filter)
169
    {
170
        // crude way of sanitizing URL scheme ("protocol") part
171
        $path = str_replace('://', '---', $path);
172
173
        return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/');
174
    }
175
}
176

Utility/Path/PathResolver.php 1 location

@@ 66-72 (lines=7) @@
63
        return $this->cacheRoot;
64
    }
65
66
    private function getFullPath($path, $filter): string
67
    {
68
        // crude way of sanitizing URL scheme ("protocol") part
69
        $path = str_replace('://', '---', $path);
70
71
        return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/');
72
    }
73
}
74