Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php 2 locations

@@ 400-402 (lines=3) @@
397
398
            $result = $this->collection->update($query, $update, $options);
399
400
            if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) {
401
                throw LockException::lockFailed($document);
402
            }
403
        }
404
405
        $this->handleCollections($document, $options);
@@ 426-428 (lines=3) @@
423
424
        $result = $this->collection->remove($query, $options);
425
426
        if (($this->class->isVersioned || $this->class->isLockable) && ! $result['n']) {
427
            throw LockException::lockFailed($document);
428
        }
429
    }
430
431
    /**