Code Duplication    Length = 7-7 lines in 2 locations

Imagine/Cache/Resolver/FlysystemResolver.php 1 location

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

Imagine/Cache/Resolver/WebPathResolver.php 1 location

@@ 165-171 (lines=7) @@
162
        );
163
    }
164
165
    private function getFullPath($path, $filter)
166
    {
167
        // crude way of sanitizing URL scheme ("protocol") part
168
        $path = str_replace('://', '---', $path);
169
170
        return $this->cachePrefix.'/'.$filter.'/'.ltrim($path, '/');
171
    }
172
}
173