Code Duplication    Length = 5-7 lines in 3 locations

typo3/sysext/core/Classes/Html/RteHtmlParser.php 3 locations

@@ 169-173 (lines=5) @@
166
    {
167
        $this->tsConfig = $thisConfig;
168
        $this->procOptions = (array)$thisConfig['proc.'];
169
        if (isset($this->procOptions['allowedClasses.'])) {
170
            $this->allowedClasses = (array)$this->procOptions['allowedClasses.'];
171
        } else {
172
            $this->allowedClasses = GeneralUtility::trimExplode(',', $this->procOptions['allowedClasses'], true);
173
        }
174
175
        // Dynamic configuration of blockElementList
176
        if ($this->procOptions['blockElementList']) {
@@ 181-185 (lines=5) @@
178
        }
179
180
        // Define which attributes are allowed on <p> tags
181
        if (isset($this->procOptions['allowAttributes.'])) {
182
            $this->allowedAttributesForParagraphTags = $this->procOptions['allowAttributes.'];
183
        } elseif (isset($this->procOptions['keepPDIVattribs'])) {
184
            $this->allowedAttributesForParagraphTags = GeneralUtility::trimExplode(',', strtolower($this->procOptions['keepPDIVattribs']), true);
185
        }
186
        // Override tags which are allowed outside of <p> tags
187
        if (isset($this->procOptions['allowTagsOutside'])) {
188
            if (!isset($this->procOptions['allowTagsOutside.'])) {
@@ 187-193 (lines=7) @@
184
            $this->allowedAttributesForParagraphTags = GeneralUtility::trimExplode(',', strtolower($this->procOptions['keepPDIVattribs']), true);
185
        }
186
        // Override tags which are allowed outside of <p> tags
187
        if (isset($this->procOptions['allowTagsOutside'])) {
188
            if (!isset($this->procOptions['allowTagsOutside.'])) {
189
                $this->allowedTagsOutsideOfParagraphs = GeneralUtility::trimExplode(',', strtolower($this->procOptions['allowTagsOutside']), true);
190
            } else {
191
                $this->allowedTagsOutsideOfParagraphs = (array)$this->procOptions['allowTagsOutside.'];
192
            }
193
        }
194
195
        // Setting modes / transformations to be called
196
        if ((string)$this->procOptions['overruleMode'] !== '') {