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

@@ 42-48 (lines=7) @@
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function getFileUrl($path, $filter)
43
    {
44
        // crude way of sanitizing URL scheme ("protocol") part
45
        $path = str_replace('://', '---', $path);
46
    
47
        return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/');
48
    }
49
    
50
    /**
51
     * {@inheritdoc}