Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/PersistentCollection/PersistentCollectionTrait.php 2 locations

@@ 702-704 (lines=3) @@
699
        $arrayAccess ? $this->coll->offsetSet(null, $value) : $this->coll->add($value);
700
        $this->changed();
701
702
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
703
            $this->uow->unscheduleOrphanRemoval($value);
704
        }
705
706
        return true;
707
    }
@@ 743-745 (lines=3) @@
740
        $arrayAccess ? $this->coll->offsetSet($offset, $value) : $this->coll->set($offset, $value);
741
742
        // Handle orphanRemoval
743
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
744
            $this->uow->unscheduleOrphanRemoval($value);
745
        }
746
747
        $this->changed();
748
    }