Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2417-2425 (lines=9) @@
2414
     *
2415
     * @param PersistentCollectionInterface $coll
2416
     */
2417
    public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll)
2418
    {
2419
        $oid = spl_object_hash($coll);
2420
        if (isset($this->collectionDeletions[$oid])) {
2421
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2422
            unset($this->collectionDeletions[$oid]);
2423
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2424
        }
2425
    }
2426
2427
    /**
2428
     * INTERNAL:
@@ 2455-2463 (lines=9) @@
2452
     *
2453
     * @param PersistentCollectionInterface $coll
2454
     */
2455
    public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll)
2456
    {
2457
        $oid = spl_object_hash($coll);
2458
        if (isset($this->collectionUpdates[$oid])) {
2459
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2460
            unset($this->collectionUpdates[$oid]);
2461
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2462
        }
2463
    }
2464
2465
    /**
2466
     * Checks whether a PersistentCollection is scheduled for update.