Code Duplication    Length = 9-9 lines in 2 locations

htdocs/class/theme.php 2 locations

@@ 769-777 (lines=9) @@
766
            $str .= implode("\n", $this->htmlHeadStrings);
767
        } else {
768
            switch ($type) {
769
                case 'script':
770
                    foreach ($this->metas[$type] as $attrs) {
771
                        $str .= '<script' . $this->renderAttributes($attrs) . '>';
772
                        if (@$attrs['_']) {
773
                            $str .= "\n//<![CDATA[\n" . $attrs['_'] . "\n//]]>";
774
                        }
775
                        $str .= "</script>\n";
776
                    }
777
                    break;
778
                case 'link':
779
                    foreach ($this->metas[$type] as $attrs) {
780
                        $rel = $attrs['rel'];
@@ 785-793 (lines=9) @@
782
                        $str .= '<link rel="' . $rel . '"' . $this->renderAttributes($attrs) . " />\n";
783
                    }
784
                    break;
785
                case 'stylesheet':
786
                    foreach ($this->metas[$type] as $attrs) {
787
                        if (@$attrs['_']) {
788
                            $str .= '<style' . $this->renderAttributes($attrs) . ">\n/* <![CDATA[ */\n" . $attrs['_'] . "\n/* //]]> */\n</style>";
789
                        } else {
790
                            $str .= '<link rel="stylesheet"' . $this->renderAttributes($attrs) . " />\n";
791
                        }
792
                    }
793
                    break;
794
                case 'http':
795
                    foreach ($this->metas[$type] as $name => $content) {
796
                        $str .= '<meta http-equiv="' . htmlspecialchars($name, ENT_QUOTES) . '" content="' . htmlspecialchars($content, ENT_QUOTES) . "\" />\n";