Code Duplication    Length = 3-3 lines in 2 locations

src/Container/FlatContainer.php 2 locations

@@ 131-133 (lines=3) @@
128
            list($key, $last) = $this->splitToLast($key);
129
130
            $top = $this->get($key);
131
            if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) {
132
                $top = [];
133
            }
134
135
            if ($top instanceof ContainerInterface) {
136
                $top = $top->set($last, $value);
@@ 168-170 (lines=3) @@
165
            list($key, $last) = $this->splitToLast($key);
166
167
            $top = $this->get($key);
168
            if (is_null($top) || (!is_array($top) && !($top instanceof ArrayAccess))) {
169
                return $this;
170
            }
171
172
            if ($top instanceof ContainerInterface) {
173
                $top = $top->remove($last);