Code Duplication    Length = 9-9 lines in 2 locations

Service/FilterService.php 2 locations

@@ 117-125 (lines=9) @@
114
            $resolver
115
        );
116
117
        if ($this->webpGenerate) {
118
            // add webp in new location
119
            $filteredWebpBinary = $this->createFilteredWebpBinary($path, $filter);
120
            $this->cacheManager->store($filteredWebpBinary, $path.'.webp', $filter, $resolver);
121
122
            if ($webp) {
123
                return $this->cacheManager->resolve($path.'.webp', $filter, $resolver);
124
            }
125
        }
126
127
        return $this->cacheManager->resolve($path, $filter, $resolver);
128
    }
@@ 164-172 (lines=9) @@
161
            $resolver
162
        );
163
164
        if ($this->webpGenerate) {
165
            // add webp in new location
166
            $filteredWebpBinary = $this->createFilteredWebpBinary($path, $filter);
167
            $this->cacheManager->store($filteredWebpBinary, $runtimePath.'.webp', $filter, $resolver);
168
169
            if ($webp) {
170
                return $this->cacheManager->resolve($runtimePath.'.webp', $filter, $resolver);
171
            }
172
        }
173
174
        return $this->cacheManager->resolve($runtimePath, $filter, $resolver);
175
    }