Code Duplication    Length = 13-13 lines in 2 locations

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

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