@@ -58,8 +58,8 @@ public function getDocs(
58
58
*/
59
59
public function splitByMethods (Collection $ docs ): Collection
60
60
{
61
- $ splitDocs = collect ();
62
61
/** @var \Illuminate\Support\Collection<int, \Rakutentech\LaravelRequestDocs\Doc> $splitDocs */
62
+ $ splitDocs = collect ();
63
63
64
64
foreach ($ docs as $ doc ) {
65
65
foreach ($ doc ->getMethods () as $ method ) {
@@ -439,8 +439,8 @@ private function groupDocsByAPIURI(Collection $docs): void
439
439
$ regex = count ($ patterns ) > 0 ? '( ' . implode ('| ' , $ patterns ) . ') ' : '' ;
440
440
441
441
// A collection<string, int> to remember indexes with `group` => `index` pair.
442
- $ groupIndexes = collect ();
443
442
/** @var \Illuminate\Support\Collection<string, int> $groupIndexes */
443
+ $ groupIndexes = collect ();
444
444
445
445
foreach ($ docs as $ doc ) {
446
446
if ($ regex !== '' ) {
@@ -481,8 +481,8 @@ private function getGroupByURI(string $prefix, string $uri): string
481
481
private function groupDocsByFQController (Collection $ docs ): void
482
482
{
483
483
// To remember group indexes with group => index pair.
484
- $ groupIndexes = collect ();
485
484
/** @var \Illuminate\Support\Collection<string, int> $groupIndexes */
485
+ $ groupIndexes = collect ();
486
486
487
487
foreach ($ docs as $ doc ) {
488
488
$ group = $ doc ->getControllerFullPath ();
0 commit comments