Code Duplication    Length = 8-9 lines in 3 locations

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

@@ 1637-1645 (lines=9) @@
1634
            }
1635
            $this->_parse_modifiers($return, $modifiers);
1636
            return $return;
1637
        } elseif (preg_match('~^' . $this->_db_qstr_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) {
1638
                // double quoted text
1639
                preg_match('~^(' . $this->_db_qstr_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match);
1640
                $return = $this->_expand_quoted_text($match[1]);
1641
                if($match[2] != '') {
1642
                    $this->_parse_modifiers($return, $match[2]);
1643
                }
1644
                return $return;
1645
            }
1646
        elseif(preg_match('~^' . $this->_num_const_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) {
1647
                // numerical constant
1648
                preg_match('~^(' . $this->_num_const_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match);
@@ 1646-1653 (lines=8) @@
1643
                }
1644
                return $return;
1645
            }
1646
        elseif(preg_match('~^' . $this->_num_const_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) {
1647
                // numerical constant
1648
                preg_match('~^(' . $this->_num_const_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match);
1649
                if($match[2] != '') {
1650
                    $this->_parse_modifiers($match[1], $match[2]);
1651
                    return $match[1];
1652
                }
1653
            }
1654
        elseif(preg_match('~^' . $this->_si_qstr_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) {
1655
                // single quoted text
1656
                preg_match('~^(' . $this->_si_qstr_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match);
@@ 1654-1661 (lines=8) @@
1651
                    return $match[1];
1652
                }
1653
            }
1654
        elseif(preg_match('~^' . $this->_si_qstr_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) {
1655
                // single quoted text
1656
                preg_match('~^(' . $this->_si_qstr_regexp . ')('. $this->_mod_regexp . '*)$~', $val, $match);
1657
                if($match[2] != '') {
1658
                    $this->_parse_modifiers($match[1], $match[2]);
1659
                    return $match[1];
1660
                }
1661
            }
1662
        elseif(preg_match('~^' . $this->_cvar_regexp . '(?:' . $this->_mod_regexp . '*)$~', $val)) {
1663
                // config var
1664
                return $this->_parse_conf_var($val);