Code Duplication    Length = 6-6 lines in 2 locations

src/DependencyInjection/FOSHttpCacheExtension.php 2 locations

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