Code Duplication    Length = 10-10 lines in 2 locations

src/Configuration.php 2 locations

@@ 49-58 (lines=10) @@
46
        return $this->options[$key];
47
    }
48
49
    public function isAllowedElement($element)
50
    {
51
        if ($element instanceof Element) {
52
            $element = $element->getName();
53
        }
54
55
        $disallowedElementArray = explode(',', $this->options['element-blacklist']);
56
57
        return !in_array($element, $disallowedElementArray);
58
    }
59
60
    public function isAllowedType($type)
61
    {
@@ 60-69 (lines=10) @@
57
        return !in_array($element, $disallowedElementArray);
58
    }
59
60
    public function isAllowedType($type)
61
    {
62
        if ($type instanceof Token) {
63
            $type = $type->getType();
64
        }
65
66
        $disallowedTypeArray = explode(',', $this->options['type-blacklist']);
67
68
        return !in_array($type, $disallowedTypeArray);
69
    }
70
71
    protected function configureOptions(OptionsResolver $resolver)
72
    {