Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Boy132\Tickets\Filament\Server\Resources\Tickets\TicketResource;
use Filament\Resources\Pages\CreateRecord;
use Filament\Actions\Action;

class CreateTicket extends CreateRecord
{
Expand All @@ -15,4 +16,21 @@ public function getBreadcrumbs(): array
{
return [];
}

protected function getFormActions(): array
{
return [
Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->submit('create')
->color('primary')
->button(),

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix trailing whitespace — this is causing the Pint CI failure.

Line 28 (the blank line between the two Action chains) has trailing whitespace, which is the one style issue flagged by Pint. Remove the whitespace to fix the pipeline.

🧹 Proposed fix
             Action::make('create')
                 ->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
                 ->submit('create')
                 ->color('primary')
                 ->button(),
-            
+
             Action::make('cancel')
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@tickets/src/Filament/Server/Resources/Tickets/Pages/CreateTicket.php` at line
28, Remove the trailing whitespace on the blank line in CreateTicket.php that
sits between the two Action chains; open the CreateTicket class file and delete
the extra spaces on the empty line separating the chained ->actions(...) calls
so the file has a truly empty line (no trailing spaces) and Pint CI will pass.

Action::make('cancel')
->label(__('filament-panels::resources/pages/create-record.form.actions.cancel.label'))
->url($this->getResource()::getUrl())
->color('gray')
->button(),
];
}
}
Loading