Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 230-237 (lines=8) @@
227
    }
228
229
    /** {@inheritdoc} */
230
    public function getDeleteDiff()
231
    {
232
        return array_udiff_assoc(
233
            $this->snapshot,
234
            $this->coll->toArray(),
235
            function ($a, $b) { return $a === $b ? 0 : 1; }
236
        );
237
    }
238
239
    /** {@inheritdoc} */
240
    public function getDeletedDocuments()
@@ 255-262 (lines=8) @@
252
    }
253
254
    /** {@inheritdoc} */
255
    public function getInsertDiff()
256
    {
257
        return array_udiff_assoc(
258
            $this->coll->toArray(),
259
            $this->snapshot,
260
            function ($a, $b) { return $a === $b ? 0 : 1; }
261
        );
262
    }
263
264
    /** {@inheritdoc} */
265
    public function getInsertedDocuments()