Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2435-2443 (lines=9) @@
2432
     *
2433
     * @param PersistentCollectionInterface $coll
2434
     */
2435
    public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll)
2436
    {
2437
        $oid = spl_object_hash($coll);
2438
        if (isset($this->collectionDeletions[$oid])) {
2439
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2440
            unset($this->collectionDeletions[$oid]);
2441
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2442
        }
2443
    }
2444
2445
    /**
2446
     * INTERNAL:
@@ 2473-2481 (lines=9) @@
2470
     *
2471
     * @param PersistentCollectionInterface $coll
2472
     */
2473
    public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll)
2474
    {
2475
        $oid = spl_object_hash($coll);
2476
        if (isset($this->collectionUpdates[$oid])) {
2477
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2478
            unset($this->collectionUpdates[$oid]);
2479
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2480
        }
2481
    }
2482
2483
    /**
2484
     * Checks whether a PersistentCollection is scheduled for update.