Code Duplication    Length = 3-3 lines in 2 locations

src/Repository.php 2 locations

@@ 296-298 (lines=3) @@
293
            unset($this->persisted[$key]);
294
295
            $pk = [];
296
            foreach ($this->space->getPrimaryIndex()['parts'] as $part) {
297
                $pk[] = $this->original[$key][$part[0]];
298
            }
299
300
            foreach ($this->getMapper()->getPlugins() as $plugin) {
301
                $plugin->beforeRemove($instance, $this->space);
@@ 374-376 (lines=3) @@
371
            }
372
373
            $pk = [];
374
            foreach ($this->space->getPrimaryIndex()['parts'] as $part) {
375
                $pk[] = $this->original[$key][$part[0]];
376
            }
377
378
            $client->getSpace($this->space->getId())->update($pk, $operations);
379
            $this->original[$key] = $tuple;