Code Duplication    Length = 7-7 lines in 2 locations

src/Config.php 2 locations

@@ 285-291 (lines=7) @@
282
                    $this->data[] = $value;
283
                } elseif ($value instanceof self && $this->data[$key] instanceof self) {
284
                    $this->data[$key]->merge($value);
285
                } else {
286
                    if ($value instanceof self) {
287
                        $this->data[$key] = new static($value->toArray(), $this->allowModifications);
288
                    } else {
289
                        $this->data[$key] = $value;
290
                    }
291
                }
292
            } else {
293
                if ($value instanceof self) {
294
                    $this->data[$key] = new static($value->toArray(), $this->allowModifications);
@@ 292-298 (lines=7) @@
289
                        $this->data[$key] = $value;
290
                    }
291
                }
292
            } else {
293
                if ($value instanceof self) {
294
                    $this->data[$key] = new static($value->toArray(), $this->allowModifications);
295
                } else {
296
                    $this->data[$key] = $value;
297
                }
298
            }
299
        }
300
301
        return $this;