Code Duplication    Length = 9-9 lines in 2 locations

htdocs/class/theme.php 2 locations

@@ 753-761 (lines=9) @@
750
            $str .= implode("\n", $this->htmlHeadStrings);
751
        } else {
752
            switch ($type) {
753
                case 'script':
754
                    foreach ($this->metas[$type] as $attrs) {
755
                        $str .= '<script' . $this->renderAttributes($attrs) . '>';
756
                        if (@$attrs['_']) {
757
                            $str .= "\n//<![CDATA[\n" . $attrs['_'] . "\n//]]>";
758
                        }
759
                        $str .= "</script>\n";
760
                    }
761
                    break;
762
                case 'link':
763
                    foreach ($this->metas[$type] as $attrs) {
764
                        $rel = $attrs['rel'];
@@ 769-777 (lines=9) @@
766
                        $str .= '<link rel="' . $rel . '"' . $this->renderAttributes($attrs) . " />\n";
767
                    }
768
                    break;
769
                case 'stylesheet':
770
                    foreach ($this->metas[$type] as $attrs) {
771
                        if (@$attrs['_']) {
772
                            $str .= '<style' . $this->renderAttributes($attrs) . ">\n/* <![CDATA[ */\n" . $attrs['_'] . "\n/* //]]> */\n</style>";
773
                        } else {
774
                            $str .= '<link rel="stylesheet"' . $this->renderAttributes($attrs) . " />\n";
775
                        }
776
                    }
777
                    break;
778
                case 'http':
779
                    foreach ($this->metas[$type] as $name => $content) {
780
                        $str .= '<meta http-equiv="' . htmlspecialchars($name, ENT_QUOTES) . '" content="' . htmlspecialchars($content, ENT_QUOTES) . "\" />\n";