Lint
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2024-07-24 22:26:38 +02:00
parent db6248999a
commit d7cc80afe9
2 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,9 @@ class CreateExcelDocumentAction
public Form $form;
/**
* @param Collection<int, Participant> $participants
*/
public function handle(Form $form, Collection $participants): string
{
$this->form = $form;

View File

@ -4,6 +4,7 @@ namespace App\Prevention\Enums;
use App\Member\Member;
use Carbon\Carbon;
use Illuminate\Support\Collection;
enum Prevention
{
@ -39,8 +40,9 @@ enum Prevention
/**
* @param array<int, self> $preventions
* @return Collection<int, array{letter: string, value: bool, tooltip: string}>
*/
public static function items(array $preventions)
public static function items(array $preventions): Collection
{
return collect(static::cases())->map(fn ($case) => [
'letter' => $case->letter(),