Code Duplication    Length = 6-6 lines in 2 locations

src/Value/Container.php 2 locations

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