Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 691-693 (lines=3) @@
688
        $arrayAccess ? $this->coll->offsetSet(null, $value) : $this->coll->add($value);
689
        $this->changed();
690
691
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
692
            $this->uow->unscheduleOrphanRemoval($value);
693
        }
694
695
        return true;
696
    }
@@ 731-733 (lines=3) @@
728
        $arrayAccess ? $this->coll->offsetSet($offset, $value) : $this->coll->set($offset, $value);
729
730
        // Handle orphanRemoval
731
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
732
            $this->uow->unscheduleOrphanRemoval($value);
733
        }
734
735
        $this->changed();
736
    }