Code Duplication    Length = 8-10 lines in 2 locations

htdocs/class/template.php 1 location

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

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

@@ 1794-1801 (lines=8) @@
1791
     * @param string $compile_id
1792
     * @return string|null
1793
     */
1794
    function _get_auto_id($cache_id=null, $compile_id=null) {
1795
    if (isset($cache_id))
1796
        return (isset($compile_id)) ? $cache_id . '|' . $compile_id  : $cache_id;
1797
    elseif(isset($compile_id))
1798
        return $compile_id;
1799
    else
1800
        return null;
1801
    }
1802
1803
    /**
1804
     * trigger Smarty plugin error