Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 256-263 (lines=8) @@
253
    }
254
255
    /** {@inheritdoc} */
256
    public function getDeleteDiff()
257
    {
258
        return array_udiff_assoc(
259
            $this->snapshot,
260
            $this->coll->toArray(),
261
            function ($a, $b) { return $a === $b ? 0 : 1; }
262
        );
263
    }
264
265
    /** {@inheritdoc} */
266
    public function getDeletedDocuments()
@@ 281-288 (lines=8) @@
278
    }
279
280
    /** {@inheritdoc} */
281
    public function getInsertDiff()
282
    {
283
        return array_udiff_assoc(
284
            $this->coll->toArray(),
285
            $this->snapshot,
286
            function ($a, $b) { return $a === $b ? 0 : 1; }
287
        );
288
    }
289
290
    /** {@inheritdoc} */
291
    public function getInsertedDocuments()