Code Duplication    Length = 7-8 lines in 2 locations

src/SWP/Bundle/ContentBundle/Rule/Applicator/ArticleRuleApplicator.php 1 location

@@ 116-123 (lines=8) @@
113
        return $this->resolveConfig($resolver, $configuration);
114
    }
115
116
    private function configureOptions(OptionsResolver $resolver)
117
    {
118
        $resolver->setDefaults([
119
            $this->supportedKeys[1] => null,
120
            $this->supportedKeys[2] => null,
121
        ]);
122
        $resolver->setDefined($this->supportedKeys[0]);
123
    }
124
125
    private function isAllowedType(RuleSubjectInterface $subject)
126
    {

src/SWP/Bundle/CoreBundle/Rule/Applicator/PublishArticleToFBIARuleApplicator.php 1 location

@@ 89-95 (lines=7) @@
86
        return $this->resolveConfig($resolver, $configuration);
87
    }
88
89
    private function configureOptions(OptionsResolver $resolver)
90
    {
91
        $resolver->setDefaults([
92
            $this->supportedKeys[0] => false,
93
        ]);
94
        $resolver->setDefined($this->supportedKeys[0]);
95
    }
96
97
    private function isAllowedType(RuleSubjectInterface $subject)
98
    {