Code Duplication    Length = 5-5 lines in 2 locations

lib/Dwoo/Data.php 2 locations

@@ 148-152 (lines=5) @@
145
                    settype($this->data[$key], 'array');
146
                }
147
148
                if ($merge === true && is_array($val)) {
149
                    $this->data[$key] = $val + $this->data[$key];
150
                } else {
151
                    $this->data[$key][] = $val;
152
                }
153
            }
154
        } elseif ($val !== null) {
155
            if (isset($this->data[$name]) && !is_array($this->data[$name])) {
@@ 161-165 (lines=5) @@
158
                $this->data[$name] = array();
159
            }
160
161
            if ($merge === true && is_array($val)) {
162
                $this->data[$name] = $val + $this->data[$name];
163
            } else {
164
                $this->data[$name][] = $val;
165
            }
166
        }
167
    }
168