Code Duplication    Length = 3-3 lines in 2 locations

src/Container/FlatContainer.php 2 locations

@@ 127-129 (lines=3) @@
124
            list($key, $last) = $this->splitToLast($key);
125
126
            $top = $this->get($key);
127
            if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) {
128
                $top = [];
129
            }
130
131
            if ($top instanceof ContainerInterface) {
132
                $top = $top->set($last, $value);
@@ 164-166 (lines=3) @@
161
            list($key, $last) = $this->splitToLast($key);
162
163
            $top = $this->get($key);
164
            if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) {
165
                return $this;
166
            }
167
168
            if ($top instanceof ContainerInterface) {
169
                $top = $top->remove($last);