Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 2399-2407 (lines=9) @@
2396
     *
2397
     * @param PersistentCollectionInterface $coll
2398
     */
2399
    public function unscheduleCollectionDeletion(PersistentCollectionInterface $coll)
2400
    {
2401
        $oid = spl_object_hash($coll);
2402
        if (isset($this->collectionDeletions[$oid])) {
2403
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2404
            unset($this->collectionDeletions[$oid]);
2405
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2406
        }
2407
    }
2408
2409
    /**
2410
     * INTERNAL:
@@ 2437-2445 (lines=9) @@
2434
     *
2435
     * @param PersistentCollectionInterface $coll
2436
     */
2437
    public function unscheduleCollectionUpdate(PersistentCollectionInterface $coll)
2438
    {
2439
        $oid = spl_object_hash($coll);
2440
        if (isset($this->collectionUpdates[$oid])) {
2441
            $topmostOwner = $this->getOwningDocument($coll->getOwner());
2442
            unset($this->collectionUpdates[$oid]);
2443
            unset($this->hasScheduledCollections[spl_object_hash($topmostOwner)][$oid]);
2444
        }
2445
    }
2446
2447
    /**
2448
     * Checks whether a PersistentCollection is scheduled for update.