Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSHttpCacheExtension.php 2 locations

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