Code Duplication    Length = 3-5 lines in 2 locations

htdocs/xoops_lib/Xoops/Core/Kernel/XoopsObject.php 1 location

@@ 189-191 (lines=3) @@
186
     */
187
    public function assignVar($key, $value)
188
    {
189
        if (isset($key) && isset($this->vars[$key])) {
190
            $this->vars[$key]['value'] = $value;
191
        }
192
    }
193
194
    /**

htdocs/class/xml/rss/xmlrss2parser.php 1 location

@@ 83-87 (lines=5) @@
80
     */
81
    public function setChannelData($name, &$value)
82
    {
83
        if (!isset($this->_channelData[$name])) {
84
            $this->_channelData[$name] = $value;
85
        } else {
86
            $this->_channelData[$name] .= $value;
87
        }
88
    }
89
90
    /**