Passed
Push — main ( 3b4587...cb10fc )
by Usama
05:39
created

ListNotificationEvents   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getHeaderActions() 0 4 1
1
<?php
2
namespace Umun\Notifier\Filament\Resources\NotificationEventResource\Pages;
3
4
use Umun\Notifier\Filament\Resources\NotificationEventResource;
5
use Filament\Actions;
6
use Filament\Resources\Pages\ListRecords;
7
8
class ListNotificationEvents extends ListRecords
9
{
10
    protected static string $resource = NotificationEventResource::class;
11
12
13
    protected function getHeaderActions(): array
14
    {
15
        return [
16
            Actions\CreateAction::make(),
0 ignored issues
show
Bug introduced by
The type Filament\Actions\CreateAction was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
        ];
18
    }
19
}
20