Code Duplication    Length = 3-3 lines in 2 locations

src/Repository.php 2 locations

@@ 283-285 (lines=3) @@
280
            unset($this->persisted[$key]);
281
282
            $pk = [];
283
            foreach ($this->space->getPrimaryIndex()->parts as $part) {
284
                $pk[] = $this->original[$key][$part[0]];
285
            }
286
287
            foreach ($this->getMapper()->getPlugins() as $plugin) {
288
                $plugin->beforeRemove($instance, $this->space);
@@ 333-335 (lines=3) @@
330
            }
331
332
            $pk = [];
333
            foreach ($this->space->getPrimaryIndex()->parts as $part) {
334
                $pk[] = $this->original[$key][$part[0]];
335
            }
336
337
            foreach ($this->getMapper()->getPlugins() as $plugin) {
338
                $plugin->beforeUpdate($instance, $this->space);