Code Duplication    Length = 7-7 lines in 2 locations

src/Arr/Transform.php 2 locations

@@ 398-404 (lines=7) @@
395
396
        $results = [];
397
398
        foreach ($array as $key => $value) {
399
            if (is_array($value)) {
400
                $results = array_merge($results, $this->dot($value, $prepend . $key . '.'));
401
            } else {
402
                $results[$prepend . $key] = $value;
403
            }
404
        }
405
406
        return $this->dotted[$cache] = $results;
407
    }
@@ 453-459 (lines=7) @@
450
    {
451
        $flattened = [];
452
453
        foreach ($array as $key => $value) {
454
            if (is_array($value)) {
455
                $flattened = array_merge($flattened, $this->flatten($value, $separator, $prepend . $key . $separator));
456
            } else {
457
                $flattened[$prepend . $key] = $value;
458
            }
459
        }
460
461
        return $flattened;
462
    }