Code Duplication    Length = 13-13 lines in 2 locations

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

@@ 359-371 (lines=13) @@
356
    /**
357
     * {@inheritdoc}
358
     */
359
    public function remove($key)
360
    {
361
        $this->initialize();
362
        $removed = $this->coll->remove($key);
363
364
        if ( ! $removed) {
365
            return $removed;
366
        }
367
368
        $this->changed();
369
370
        return $removed;
371
    }
372
373
    /**
374
     * {@inheritdoc}
@@ 376-388 (lines=13) @@
373
    /**
374
     * {@inheritdoc}
375
     */
376
    public function removeElement($element)
377
    {
378
        $this->initialize();
379
        $removed = $this->coll->removeElement($element);
380
381
        if ( ! $removed) {
382
            return $removed;
383
        }
384
385
        $this->changed();
386
387
        return $removed;
388
    }
389
390
    /**
391
     * {@inheritdoc}