Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 428-440 (lines=13) @@
425
    /**
426
     * {@inheritdoc}
427
     */
428
    public function remove($key)
429
    {
430
        $this->initialize();
431
        $removed = $this->coll->remove($key);
432
433
        if ( ! $removed) {
434
            return $removed;
435
        }
436
437
        $this->changed();
438
439
        return $removed;
440
    }
441
442
    /**
443
     * {@inheritdoc}
@@ 445-457 (lines=13) @@
442
    /**
443
     * {@inheritdoc}
444
     */
445
    public function removeElement($element)
446
    {
447
        $this->initialize();
448
        $removed = $this->coll->removeElement($element);
449
450
        if ( ! $removed) {
451
            return $removed;
452
        }
453
454
        $this->changed();
455
456
        return $removed;
457
    }
458
459
    /**
460
     * {@inheritdoc}