Code Duplication    Length = 7-7 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2553-2559 (lines=7) @@
2550
        }
2551
2552
        if (\array_key_exists($key, $usedArray) === true) {
2553
            if (\is_array($usedArray[$key]) === true) {
2554
                return static::create(
2555
                    [],
2556
                    $this->iteratorClass,
2557
                    false
2558
                )->createByReference($usedArray[$key]);
2559
            }
2560
2561
            return $usedArray[$key];
2562
        }
@@ 2660-2666 (lines=7) @@
2657
                return $fallback instanceof \Closure ? $fallback() : $fallback;
2658
            }
2659
2660
            if (\is_array($usedArrayTmp) === true) {
2661
                return static::create(
2662
                    [],
2663
                    $this->iteratorClass,
2664
                    false
2665
                )->createByReference($usedArrayTmp);
2666
            }
2667
2668
            return $usedArrayTmp;
2669
        }