Code Duplication    Length = 9-9 lines in 2 locations

htdocs/class/theme.php 2 locations

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