Code Duplication    Length = 3-3 lines in 2 locations

src/Helpers/Arr.php 2 locations

@@ 59-61 (lines=3) @@
56
            $key = $lastKey;
57
        }
58
59
        if (is_array($array) && (isset($array[$key]) || array_key_exists($key, $array))) {
60
            return $array[$key];
61
        }
62
63
        if (($pos = strrpos($key, '.')) !== false) {
64
            $array = static::getValue($array, substr($key, 0, $pos), $default);
@@ 72-74 (lines=3) @@
69
            // this is expected to fail if the property does not exist, or __get() is not implemented
70
            // it is not reliably possible to check whether a property is accessible beforehand
71
            return $array->$key;
72
        } elseif (is_array($array)) {
73
            return (isset($array[$key]) || array_key_exists($key, $array)) ? $array[$key] : $default;
74
        } else {
75
            return $default;
76
        }
77
    }