Code Duplication    Length = 6-6 lines in 2 locations

src/Arr.php 2 locations

@@ 28-33 (lines=6) @@
25
        }
26
27
        $keys = explode('.', $key);
28
        while (count($keys) > 0) {
29
            $subSet = $array[array_shift($keys)];
30
            if (is_array($subSet)) {
31
                return static::get($subSet, join('.', $keys), $default);
32
            }
33
        }
34
35
        return $default;
36
    }
@@ 58-63 (lines=6) @@
55
        }
56
57
        $keys = explode('.', $key);
58
        while (count($keys) > 0) {
59
            $subSet = $array[array_shift($keys)];
60
            if (is_array($subSet)) {
61
                return static::has($subSet, join('.', $keys));
62
            }
63
        }
64
65
        return false;
66
    }