Code Duplication    Length = 6-6 lines in 2 locations

src/Configuration.php 2 locations

@@ 60-65 (lines=6) @@
57
58
        $array = $this->values;
59
        $keys  = $this->explode($path);
60
        foreach ($keys as $key) {
61
            if (!isset($array[$key])) {
62
                return $default;
63
            }
64
            $array = $array[$key];
65
        }
66
67
        return $array;
68
    }
@@ 135-140 (lines=6) @@
132
    {
133
        $keys  = $this->explode($path);
134
        $array = $this->values;
135
        foreach ($keys as $key) {
136
            if (!isset($array[$key])) {
137
                return false;
138
            }
139
            $array = $array[$key];
140
        }
141
142
        return true;
143
    }