Code Duplication    Length = 6-6 lines in 2 locations

src/Value/Container.php 2 locations

@@ 65-70 (lines=6) @@
62
    public function remove($key)
63
    {
64
        $value = &$this->values;
65
        foreach (explode('.', $key) as $part) {
66
            if (!array_key_exists($part, $value)) {
67
                return;
68
            }
69
            $value = &$value[$part];
70
        }
71
        unset($value); // @todo: no worky worky
72
    }
73
@@ 110-115 (lines=6) @@
107
    protected function traverse($key, $returnValue = true)
108
    {
109
        $value = $this->values;
110
        foreach (explode('.', $key) as $part) {
111
            if (!array_key_exists($part, $value)) {
112
                return false;
113
            }
114
            $value = $value[$part];
115
        }
116
        return $returnValue ? $value : true;
117
    }
118