Code Duplication    Length = 3-3 lines in 2 locations

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

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