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

Imagine/Cache/Resolver/WebPathResolver.php 1 location

@@ 139-145 (lines=7) @@
136
        return PathHelper::filePathToUrlPath($this->getFullPath($path, $filter));
137
    }
138
139
    private function getFullPath($path, $filter)
140
    {
141
        // crude way of sanitizing URL scheme ("protocol") part
142
        $path = str_replace('://', '---', $path);
143
144
        return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/');
145
    }
146
147
    /**
148
     * @return string