Code Duplication    Length = 9-9 lines in 2 locations

class/class.datafieldmanager.php 1 location

@@ 580-588 (lines=9) @@
577
     *
578
     * @param $value mixed
579
     */
580
    public function setValue($value)
581
    {
582
        if (is_array($value)) {
583
            foreach ($value as $v) {
584
                $this->_value[] = $v;
585
            }
586
        } else {
587
            $this->_value[] = $value;
588
        }
589
    }
590
591
    /**

class/class.formimage.php 1 location

@@ 124-132 (lines=9) @@
121
     *
122
     * @param $value mixed
123
     */
124
    public function setValue($value)
125
    {
126
        if (is_array($value)) {
127
            foreach ($value as $v) {
128
                $this->_value[] = $v;
129
            }
130
        } else {
131
            $this->_value[] = $value;
132
        }
133
    }
134
135
    /**