NotifierDashboard   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 14
c 1
b 0
f 1
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getWidgets() 0 9 1
1
<?php
2
3
namespace Usamamuneerchaudhary\Notifier\Filament\Pages;
4
5
use Filament\Pages\Page;
6
use Usamamuneerchaudhary\Notifier\Filament\Widgets\NotificationAnalyticsChart;
7
use Usamamuneerchaudhary\Notifier\Filament\Widgets\NotificationChannelPerformance;
8
use Usamamuneerchaudhary\Notifier\Filament\Widgets\NotificationEngagementStats;
9
use Usamamuneerchaudhary\Notifier\Filament\Widgets\NotificationStatsOverview;
10
use Usamamuneerchaudhary\Notifier\Filament\Widgets\NotificationTimeSeriesChart;
11
use Usamamuneerchaudhary\Notifier\Filament\Widgets\RateLimitingStatusWidget;
12
13
class NotifierDashboard extends Page
14
{
15
    protected static string|null|\BackedEnum $navigationIcon = 'heroicon-o-chart-bar';
0 ignored issues
show
Bug introduced by
The type BackedEnum 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...
16
    protected static string|null|\UnitEnum $navigationGroup = 'Notifier';
0 ignored issues
show
Bug introduced by
The type UnitEnum 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
    protected static ?string $title = 'Notifier Dashboard';
18
    protected static ?string $navigationLabel = 'Dashboard';
19
    protected static ?int $navigationSort = 0;
20
    protected string $view = 'notifier::pages.dashboard';
21
22
23
    protected function getWidgets(): array
24
    {
25
        return [
26
            NotificationStatsOverview::class,
27
            NotificationEngagementStats::class,
28
            NotificationTimeSeriesChart::class,
29
            NotificationAnalyticsChart::class,
30
            NotificationChannelPerformance::class,
31
            RateLimitingStatusWidget::class,
32
        ];
33
    }
34
}
35
36