Code Duplication    Length = 5-5 lines in 2 locations

htdocs/class/xoopseditor/tinymce/tinymce.php 1 location

@@ 256-260 (lines=5) @@
253
        $css_content = file_get_contents( $css_path . '/' . $css_file );
254
255
        // get all import css files
256
        if ( preg_match_all("~\@import url\((.*\.css)\);~sUi", $css_content, $matches, PREG_PATTERN_ORDER) ) {
257
            foreach( $matches[1] as $key => $css_import ) {
258
                $css = array_merge( $css, $this->loadCss( $css_import) );
259
            }
260
        }
261
        return $css;
262
    }
263

htdocs/class/xoopseditor/tinymce4/tinymce.php 1 location

@@ 278-282 (lines=5) @@
275
        $css_content = file_get_contents($css_path . '/' . $css_file);
276
277
        // get all import css files
278
        if (preg_match_all("~\@import url\((.*\.css)\);~sUi", $css_content, $matches, PREG_PATTERN_ORDER)) {
279
            foreach ($matches[1] as $key => $css_import) {
280
                $css = array_merge($css, $this->loadCss($css_import));
281
            }
282
        }
283
284
        return $css;
285
    }