Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2409-2417 (lines=9) @@
2406
     *
2407
     * @param PersistentCollectionInterface $coll
2408
     */
2409
    public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll)
2410
    {
2411
        $oid = spl_object_hash($coll);
2412
        if (isset($this->collectionDeletions[$oid])) {
2413
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2414
            unset($this->collectionDeletions[$oid]);
2415
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2416
        }
2417
    }
2418
2419
    /**
2420
     * INTERNAL:
@@ 2447-2455 (lines=9) @@
2444
     *
2445
     * @param PersistentCollectionInterface $coll
2446
     */
2447
    public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll)
2448
    {
2449
        $oid = spl_object_hash($coll);
2450
        if (isset($this->collectionUpdates[$oid])) {
2451
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2452
            unset($this->collectionUpdates[$oid]);
2453
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2454
        }
2455
    }
2456
2457
    /**
2458
     * Checks whether a PersistentCollection is scheduled for update.