Code Duplication    Length = 3-3 lines in 2 locations

src/Repository.php 2 locations

@@ 195-197 (lines=3) @@
192
            unset($this->persisted[$key]);
193
194
            $pk = [];
195
            foreach($this->space->getPrimaryIndex()->parts as $part) {
196
                $pk[] = $this->original[$key][$part[0]];
197
            }
198
199
            $this->space->getMapper()->getClient()
200
                ->getSpace($this->space->getId())
@@ 246-248 (lines=3) @@
243
            }
244
245
            $pk = [];
246
            foreach($this->space->getPrimaryIndex()->parts as $part) {
247
                $pk[] = $this->original[$key][$part[0]];
248
            }
249
250
            $client->getSpace($this->space->getId())->update($pk, $operations);
251
            $this->original[$key] = $tuple;