Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSHttpCacheExtension.php 2 locations

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