Code Duplication    Length = 10-10 lines in 2 locations

src/ProxyClient/Symfony.php 1 location

@@ 53-62 (lines=10) @@
50
        return $this;
51
    }
52
53
    protected function configureOptions()
54
    {
55
        $resolver = parent::configureOptions();
56
        $resolver->setDefault('purge_method', PurgeListener::DEFAULT_PURGE_METHOD);
57
        $resolver->setAllowedTypes('purge_method', 'string');
58
        $resolver->setDefault('purge_tags_header', PurgeListener::DEFAULT_PURGE_TAGS_HEADER);
59
        $resolver->setAllowedTypes('purge_tags_header', 'string');
60
61
        return $resolver;
62
    }
63
64
    /**
65
     * Remove/Expire cache objects based on cache tags.

src/SymfonyCache/PurgeListener.php 1 location

@@ 122-131 (lines=10) @@
119
     *
120
     * @return OptionsResolver
121
     */
122
    protected function getOptionsResolver()
123
    {
124
        $resolver = parent::getOptionsResolver();
125
        $resolver->setDefault('purge_method', static::DEFAULT_PURGE_METHOD);
126
        $resolver->setAllowedTypes('purge_method', 'string');
127
        $resolver->setDefault('purge_tags_header', static::DEFAULT_PURGE_TAGS_HEADER);
128
        $resolver->setAllowedTypes('purge_tags_header', 'string');
129
130
        return $resolver;
131
    }
132
}
133