Code Duplication    Length = 8-8 lines in 2 locations

lib/Doctrine/ORM/PersistentCollection.php 2 locations

@@ 254-261 (lines=8) @@
251
     *
252
     * @return array
253
     */
254
    public function getDeleteDiff()
255
    {
256
        return array_udiff_assoc(
257
            $this->snapshot,
258
            $this->collection->toArray(),
259
            function($a, $b) { return $a === $b ? 0 : 1; }
260
        );
261
    }
262
263
    /**
264
     * INTERNAL:
@@ 269-276 (lines=8) @@
266
     *
267
     * @return array
268
     */
269
    public function getInsertDiff()
270
    {
271
        return array_udiff_assoc(
272
            $this->collection->toArray(),
273
            $this->snapshot,
274
            function($a, $b) { return $a === $b ? 0 : 1; }
275
        );
276
    }
277
278
    /**
279
     * INTERNAL: Gets the association mapping of the collection.