Code Duplication    Length = 5-6 lines in 2 locations

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

@@ 677-681 (lines=5) @@
674
     */
675
    function _compile_block_tag($tag_command, $tag_args, $tag_modifier, &$output)
676
    {
677
        if (substr($tag_command, 0, 1) == '/') {
678
            $start_tag = false;
679
            $tag_command = substr($tag_command, 1);
680
        } else
681
            $start_tag = true;
682
683
        $found = false;
684
        $have_function = true;
@@ 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