Skip to content

Commit 8987c80

Browse files
authored
Merge pull request #5128 from gianlucalimbi/fix-collections-duplicates
[5.8] Fix Collections duplicates docs
2 parents c00b7d1 + d782edf commit 8987c80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

collections.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,17 +500,17 @@ The `dump` method dumps the collection's items:
500500

501501
If you want to stop executing the script after dumping the collection, use the [`dd`](#method-dd) method instead.
502502

503-
<a name="method-duplicates"><a>
503+
<a name="method-duplicates"></a>
504504
#### `duplicates()` {#collection-method}
505505

506506
the `duplicates` method retrieves and returns duplicate values from the collection:
507507

508508
$collection = collect(['a', 'b', 'a', 'c', 'b']);
509-
509+
510510
$collection->duplicates();
511-
511+
512512
// [ 2 => 'a', 4 => 'b' ]
513-
513+
514514
<a name="method-each"></a>
515515
#### `each()` {#collection-method}
516516

0 commit comments

Comments
 (0)