Code Duplication    Length = 5-6 lines in 2 locations

htdocs/class/smarty/Smarty_Compiler.class.php 2 locations

@@ 841-846 (lines=6) @@
838
     */
839
    function _compile_registered_object_tag($tag_command, $attrs, $tag_modifier)
840
    {
841
        if (substr($tag_command, 0, 1) == '/') {
842
            $start_tag = false;
843
            $tag_command = substr($tag_command, 1);
844
        } else {
845
            $start_tag = true;
846
        }
847
848
        list($object, $obj_comp) = explode('->', $tag_command);
849
@@ 672-676 (lines=5) @@
669
     */
670
    function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
671
    {
672
        if (substr($tag_command, 0, 1) == '/') {
673
            $start_tag = false;
674
            $tag_command = substr($tag_command, 1);
675
        } else
676
            $start_tag = true;
677
678
        $found = false;
679
        $have_function = true;