Code Duplication    Length = 9-9 lines in 2 locations

src/Configuration.php 2 locations

@@ 100-108 (lines=9) @@
97
        $resolver->setAllowedTypes('element-blacklist', 'string');
98
        $resolver->setNormalizer(
99
            'element-blacklist',
100
            function (Options $options, $value) {
101
                $valueArray = explode(',', $value);
102
                $formattedValueArray = array();
103
                foreach ($valueArray as $data) {
104
                    $formattedValueArray[] = trim(strtolower($data));
105
                }
106
107
                return implode(',', $formattedValueArray);
108
            }
109
        );
110
111
        // indent-spaces
@@ 154-162 (lines=9) @@
151
        );
152
        $resolver->setNormalizer(
153
            'type-blacklist',
154
            function (Options $options, $value) {
155
                $valueArray = explode(',', $value);
156
                $formattedValueArray = array();
157
                foreach ($valueArray as $data) {
158
                    $formattedValueArray[] = trim(strtolower($data));
159
                }
160
161
                return implode(',', $formattedValueArray);
162
            }
163
        );
164
    }
165