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())
@@ 248-250 (lines=3) @@
245
            }
246
247
            $pk = [];
248
            foreach($this->space->getPrimaryIndex()->parts as $part) {
249
                $pk[] = $this->original[$key][$part[0]];
250
            }
251
252
            $client->getSpace($this->space->getId())->update($pk, $operations);
253
            $this->original[$key] = $tuple;