Code Duplication    Length = 8-10 lines in 2 locations

htdocs/class/smarty/Smarty.class.php 1 location

@@ 1788-1795 (lines=8) @@
1785
     * @param string $compile_id
1786
     * @return string|null
1787
     */
1788
    function _get_auto_id($cache_id=null, $compile_id=null) {
1789
    if (isset($cache_id))
1790
        return (isset($compile_id)) ? $cache_id . '|' . $compile_id  : $cache_id;
1791
    elseif(isset($compile_id))
1792
        return $compile_id;
1793
    else
1794
        return null;
1795
    }
1796
1797
    /**
1798
     * trigger Smarty plugin error

htdocs/class/template.php 1 location

@@ 124-133 (lines=10) @@
121
     * @param  string $compile_id
122
     * @return string |null
123
     */
124
    public function _get_auto_id($cache_id = null, $compile_id = null)
125
    {
126
        if (isset($cache_id)) {
127
            return (isset($compile_id)) ? $compile_id . '-' . $cache_id : $cache_id;
128
        } elseif (isset($compile_id)) {
129
            return $compile_id;
130
        } else {
131
            return null;
132
        }
133
    }
134
135
    /**
136
     * XoopsTpl::setCompileId()