Code Duplication    Length = 9-9 lines in 2 locations

htdocs/class/theme.php 2 locations

@@ 739-747 (lines=9) @@
736
            $str .= implode("\n", $this->htmlHeadStrings);
737
        } else {
738
            switch ($type) {
739
                case 'script':
740
                    foreach ($this->metas[$type] as $attrs) {
741
                        $str .= '<script' . $this->renderAttributes($attrs) . '>';
742
                        if (@$attrs['_']) {
743
                            $str .= "\n//<![CDATA[\n" . $attrs['_'] . "\n//]]>";
744
                        }
745
                        $str .= "</script>\n";
746
                    }
747
                    break;
748
                case 'link':
749
                    foreach ($this->metas[$type] as $attrs) {
750
                        $rel = $attrs['rel'];
@@ 755-763 (lines=9) @@
752
                        $str .= '<link rel="' . $rel . '"' . $this->renderAttributes($attrs) . " />\n";
753
                    }
754
                    break;
755
                case 'stylesheet':
756
                    foreach ($this->metas[$type] as $attrs) {
757
                        if (@$attrs['_']) {
758
                            $str .= '<style' . $this->renderAttributes($attrs) . ">\n/* <![CDATA[ */\n" . $attrs['_'] . "\n/* //]]> */\n</style>";
759
                        } else {
760
                            $str .= '<link rel="stylesheet"' . $this->renderAttributes($attrs) . " />\n";
761
                        }
762
                    }
763
                    break;
764
                case 'http':
765
                    foreach ($this->metas[$type] as $name => $content) {
766
                        $str .= '<meta http-equiv="' . htmlspecialchars($name, ENT_QUOTES) . '" content="' . htmlspecialchars($content, ENT_QUOTES) . "\" />\n";