Refactor CardResource and DateHelper: Clean up whitespace and update PHPDoc types
This commit is contained in:
1 parent
9e19abb2d9
commit
1c9e9c3bed
2 files changed
+8
-9
No files matched your search
@@ -55,7 +55,7 @@ public static function form(Schema $schema): Schema
|
||||
->native(false)
|
||||
->columnSpan('1')
|
||||
->required(),
|
||||
|
||||
|
||||
TextInput::make('name')
|
||||
->label(__('Card name'))
|
||||
->maxLength(255)
|
||||
@@ -75,15 +75,15 @@ public static function table(Table $table): Table
|
||||
TextColumn::make('name')
|
||||
->label(__('Card name'))
|
||||
->searchable(),
|
||||
|
||||
TextColumn::make('month')
|
||||
|
||||
TextColumn::make('month')
|
||||
->label(__('Card month'))
|
||||
->searchable(),
|
||||
|
||||
TextColumn::make('year')
|
||||
|
||||
TextColumn::make('year')
|
||||
->label(__('Card year'))
|
||||
->searchable(),
|
||||
|
||||
|
||||
TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
|
||||
@@ -23,7 +23,7 @@ public static function monthsAsNumber(): array
|
||||
/**
|
||||
* Static numbers for months
|
||||
*
|
||||
* @return array<string, string>
|
||||
* @return array<int|string, string>
|
||||
*/
|
||||
public static function staticNumberMonths(): array
|
||||
{
|
||||
@@ -47,7 +47,6 @@ public static function staticNumberMonths(): array
|
||||
* Years until
|
||||
*
|
||||
* @param int|int $max
|
||||
*
|
||||
* @return array<string|int, string|int>
|
||||
*/
|
||||
public static function yearsUntil(int $max = 50): array
|
||||
@@ -140,4 +139,4 @@ public static function staticNumberYears(): array
|
||||
'2090' => '2090',
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user