Code Duplication    Length = 8-8 lines in 2 locations

lib/Doctrine/ORM/PersistentCollection.php 2 locations

@@ 246-253 (lines=8) @@
243
     *
244
     * @return array
245
     */
246
    public function getDeleteDiff()
247
    {
248
        return array_udiff_assoc(
249
            $this->snapshot,
250
            $this->collection->toArray(),
251
            function($a, $b) { return $a === $b ? 0 : 1; }
252
        );
253
    }
254
255
    /**
256
     * INTERNAL:
@@ 261-268 (lines=8) @@
258
     *
259
     * @return array
260
     */
261
    public function getInsertDiff()
262
    {
263
        return array_udiff_assoc(
264
            $this->collection->toArray(),
265
            $this->snapshot,
266
            function($a, $b) { return $a === $b ? 0 : 1; }
267
        );
268
    }
269
270
    /**
271
     * INTERNAL: Gets the association mapping of the collection.