Code Duplication    Length = 3-3 lines in 2 locations

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

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