Skip to content

Commit 06721df

Browse files
committed
phpstan
1 parent b57b2fa commit 06721df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LaravelRequestDocs.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ public function getDocs(
5858
*/
5959
public function splitByMethods(Collection $docs): Collection
6060
{
61-
$splitDocs = collect();
6261
/** @var \Illuminate\Support\Collection<int, \Rakutentech\LaravelRequestDocs\Doc> $splitDocs */
62+
$splitDocs = collect();
6363

6464
foreach ($docs as $doc) {
6565
foreach ($doc->getMethods() as $method) {
@@ -439,8 +439,8 @@ private function groupDocsByAPIURI(Collection $docs): void
439439
$regex = count($patterns) > 0 ? '(' . implode('|', $patterns) . ')' : '';
440440

441441
// A collection<string, int> to remember indexes with `group` => `index` pair.
442-
$groupIndexes = collect();
443442
/** @var \Illuminate\Support\Collection<string, int> $groupIndexes */
443+
$groupIndexes = collect();
444444

445445
foreach ($docs as $doc) {
446446
if ($regex !== '') {
@@ -481,8 +481,8 @@ private function getGroupByURI(string $prefix, string $uri): string
481481
private function groupDocsByFQController(Collection $docs): void
482482
{
483483
// To remember group indexes with group => index pair.
484-
$groupIndexes = collect();
485484
/** @var \Illuminate\Support\Collection<string, int> $groupIndexes */
485+
$groupIndexes = collect();
486486

487487
foreach ($docs as $doc) {
488488
$group = $doc->getControllerFullPath();

0 commit comments

Comments
 (0)