Skip to content

Commit

Permalink
phpstan happiness
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Dec 25, 2024
1 parent f838b8c commit 04770d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Maker/MakeStimulusController.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ private function getValuesTypes(): array
}

/**
* @param array<int, string> $targets
* @param array{name: string, type: string} $values
* @param array<int, string> $classes
* @param array<int, string> $targets
* @param array<array{name: string, type: string}> $values
* @param array<int, string> $classes
*/
private function generateUsageExample(string $name, array $targets, array $values, array $classes): string
{
Expand Down Expand Up @@ -331,7 +331,7 @@ private function generateUsageExample(string $name, array $targets, array $value
$controller,
$htmlValues ? ("\n ".implode("\n ", $htmlValues)) : '',
$htmlClasses ? ("\n ".implode("\n ", $htmlClasses)) : '',
$htmlValues || $htmlClasses ? "\n" : '',
($htmlValues || $htmlClasses) ? "\n" : '',
$htmlTargets ? ("\n ".implode("\n ", $htmlTargets)) : '',
"\n <!-- ... -->\n",
);
Expand Down

0 comments on commit 04770d7

Please sign in to comment.