Code Duplication    Length = 9-9 lines in 2 locations

lib/Doctrine/ODM/MongoDB/UnitOfWork.php 2 locations

@@ 2462-2470 (lines=9) @@
2459
     *
2460
     * @param PersistentCollectionInterface $coll
2461
     */
2462
    public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll)
2463
    {
2464
        $oid = spl_object_hash($coll);
2465
        if (isset($this->collectionUpdates[$oid])) {
2466
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2467
            unset($this->collectionUpdates[$oid]);
2468
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2469
        }
2470
    }
2471
2472
    /**
2473
     * Checks whether a PersistentCollection is scheduled for update.
@@ 2424-2432 (lines=9) @@
2421
     *
2422
     * @param PersistentCollectionInterface $coll
2423
     */
2424
    public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll)
2425
    {
2426
        $oid = spl_object_hash($coll);
2427
        if (isset($this->collectionDeletions[$oid])) {
2428
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2429
            unset($this->collectionDeletions[$oid]);
2430
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2431
        }
2432
    }
2433
2434
    /**
2435
     * INTERNAL: