Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSHttpCacheExtension.php 2 locations

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