Code Duplication    Length = 7-7 lines in 2 locations

Imagine/Cache/Resolver/FlysystemResolver.php 1 location

@@ 105-111 (lines=7) @@
102
    /**
103
     * {@inheritdoc}
104
     */
105
    protected function getFileUrl($path, $filter)
106
    {
107
        // crude way of sanitizing URL scheme ("protocol") part
108
        $path = str_replace('://', '---', $path);
109
110
        return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/');
111
    }
112
113
    /**
114
     * Resolves filtered path for rendering in the browser.

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}