Code Duplication    Length = 7-7 lines in 2 locations

src/Arrayy.php 2 locations

@@ 2606-2612 (lines=7) @@
2603
        }
2604
2605
        if (\array_key_exists($key, $usedArray) === true) {
2606
            if (\is_array($usedArray[$key]) === true) {
2607
                return static::create(
2608
                    [],
2609
                    $this->iteratorClass,
2610
                    false
2611
                )->createByReference($usedArray[$key]);
2612
            }
2613
2614
            return $usedArray[$key];
2615
        }
@@ 2713-2719 (lines=7) @@
2710
                return $fallback instanceof \Closure ? $fallback() : $fallback;
2711
            }
2712
2713
            if (\is_array($usedArrayTmp) === true) {
2714
                return static::create(
2715
                    [],
2716
                    $this->iteratorClass,
2717
                    false
2718
                )->createByReference($usedArrayTmp);
2719
            }
2720
2721
            return $usedArrayTmp;
2722
        }