Code Duplication    Length = 9-9 lines in 2 locations

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

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