Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSHttpCacheExtension.php 2 locations

@@ 258-263 (lines=6) @@
255
    {
256
        if (!empty($config['additional_response_status'])) {
257
            $id = $this->getAlias().'cache_control.expression.'.md5(serialize($config['additional_response_status']));
258
            if (!$container->hasDefinition($id)) {
259
                $container
260
                    ->setDefinition($id, $this->createChildDefinition($this->getAlias().'.response_matcher.cache_control.cacheable_response'))
261
                    ->setArguments([$config['additional_response_status']])
262
                ;
263
            }
264
        } elseif (!empty($config['match_response'])) {
265
            $id = $this->getAlias().'cache_control.match_response.'.md5($config['match_response']);
266
            if (!$container->hasDefinition($id)) {
@@ 266-271 (lines=6) @@
263
            }
264
        } elseif (!empty($config['match_response'])) {
265
            $id = $this->getAlias().'cache_control.match_response.'.md5($config['match_response']);
266
            if (!$container->hasDefinition($id)) {
267
                $container
268
                    ->setDefinition($id, $this->createChildDefinition($this->getAlias().'.response_matcher.cache_control.expression'))
269
                    ->replaceArgument(0, $config['match_response'])
270
                ;
271
            }
272
        } else {
273
            $id = $this->getAlias().'.response_matcher.cacheable';
274
        }