Refactor CardResource and DateHelper: Clean up whitespace and update PHPDoc types

This commit is contained in:
2025-10-23 00:38:03 +05:00
parent 9e19abb2d9
commit 1c9e9c3bed
2 changed files with 8 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ class CardResource extends Resource
->native(false) ->native(false)
->columnSpan('1') ->columnSpan('1')
->required(), ->required(),
TextInput::make('name') TextInput::make('name')
->label(__('Card name')) ->label(__('Card name'))
->maxLength(255) ->maxLength(255)
@@ -75,15 +75,15 @@ class CardResource extends Resource
TextColumn::make('name') TextColumn::make('name')
->label(__('Card name')) ->label(__('Card name'))
->searchable(), ->searchable(),
TextColumn::make('month') TextColumn::make('month')
->label(__('Card month')) ->label(__('Card month'))
->searchable(), ->searchable(),
TextColumn::make('year') TextColumn::make('year')
->label(__('Card year')) ->label(__('Card year'))
->searchable(), ->searchable(),
TextColumn::make('created_at') TextColumn::make('created_at')
->dateTime() ->dateTime()
->sortable() ->sortable()

View File

@@ -23,7 +23,7 @@ class DateHelper
/** /**
* Static numbers for months * Static numbers for months
* *
* @return array<string, string> * @return array<int|string, string>
*/ */
public static function staticNumberMonths(): array public static function staticNumberMonths(): array
{ {
@@ -47,7 +47,6 @@ class DateHelper
* Years until * Years until
* *
* @param int|int $max * @param int|int $max
*
* @return array<string|int, string|int> * @return array<string|int, string|int>
*/ */
public static function yearsUntil(int $max = 50): array public static function yearsUntil(int $max = 50): array
@@ -140,4 +139,4 @@ class DateHelper
'2090' => '2090', '2090' => '2090',
]; ];
} }
} }