Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 695-697 (lines=3) @@
692
        $arrayAccess ? $this->coll->offsetSet(null, $value) : $this->coll->add($value);
693
        $this->changed();
694
695
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
696
            $this->uow->unscheduleOrphanRemoval($value);
697
        }
698
699
        return true;
700
    }
@@ 736-738 (lines=3) @@
733
        $arrayAccess ? $this->coll->offsetSet($offset, $value) : $this->coll->set($offset, $value);
734
735
        // Handle orphanRemoval
736
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
737
            $this->uow->unscheduleOrphanRemoval($value);
738
        }
739
740
        $this->changed();
741
    }