Code Duplication    Length = 6-6 lines in 2 locations

src/Magister/Services/Support/helpers.php 2 locations

@@ 69-74 (lines=6) @@
66
            return $array[$key];
67
        }
68
69
        foreach (explode('.', $key) as $segment) {
70
            if (!is_array($array) || !array_key_exists($segment, $array)) {
71
                return $default;
72
            }
73
            $array = $array[$segment];
74
        }
75
76
        return $array;
77
    }
@@ 99-104 (lines=6) @@
96
            return true;
97
        }
98
99
        foreach (explode('.', $key) as $segment) {
100
            if (!is_array($array) || !array_key_exists($segment, $array)) {
101
                return false;
102
            }
103
            $array = $array[$segment];
104
        }
105
106
        return true;
107
    }