Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 454-456 (lines=3) @@
451
        $this->coll->set($key, $value);
452
453
        // Handle orphanRemoval
454
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
455
            $this->uow->unscheduleOrphanRemoval($value);
456
        }
457
458
        $this->changed();
459
    }
@@ 476-478 (lines=3) @@
473
        $this->coll->add($value);
474
        $this->changed();
475
476
        if ($this->uow !== null && $this->isOrphanRemovalEnabled() && $value !== null) {
477
            $this->uow->unscheduleOrphanRemoval($value);
478
        }
479
480
        return true;
481
    }