Skip to content

Commit

Permalink
fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Oct 28, 2024
1 parent 3b506b2 commit 934554a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 79 deletions.
1 change: 1 addition & 0 deletions app/Checks/NodeVersionsCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function run(): Result
return $result;
}

// @phpstan-ignore-next-line
$latestVersion = app(SoftwareVersionService::class)->getDaemon();

$outdated = Node::query()->get()
Expand Down
2 changes: 1 addition & 1 deletion app/Checks/PanelVersionCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class PanelVersionCheck extends Check
public function run(): Result
{
/** @var SoftwareVersionService $versionService */
$versionService = app(SoftwareVersionService::class);
$versionService = app(SoftwareVersionService::class); // @phpstan-ignore-line

$isLatest = $versionService->isLatestPanel();
$currentVersion = $versionService->versionData()['version'];
Expand Down
6 changes: 6 additions & 0 deletions app/Filament/Pages/Health.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
class Health extends Page
{
protected static ?string $navigationIcon = 'tabler-heart';

protected static ?string $navigationGroup = 'Advanced';

protected static string $view = 'filament.pages.health';

// @phpstan-ignore-next-line
protected $listeners = [
'refresh-component' => '$refresh',
];
Expand All @@ -32,6 +34,7 @@ protected function getActions(): array

protected function getViewData(): array
{
// @phpstan-ignore-next-line
$checkResults = app(ResultStore::class)->latestResults();

if ($checkResults === null) {
Expand Down Expand Up @@ -60,6 +63,7 @@ public function refresh(): void

public static function getNavigationBadge(): ?string
{
// @phpstan-ignore-next-line
$results = app(ResultStore::class)->latestResults();

if ($results === null) {
Expand All @@ -82,6 +86,7 @@ public static function getNavigationBadgeColor(): string

public static function getNavigationBadgeTooltip(): ?string
{
// @phpstan-ignore-next-line
$results = app(ResultStore::class)->latestResults();

if ($results === null) {
Expand All @@ -103,6 +108,7 @@ public static function getNavigationBadgeTooltip(): ?string

public static function getNavigationIcon(): string
{
// @phpstan-ignore-next-line
$results = app(ResultStore::class)->latestResults();

if ($results === null) {
Expand Down
4 changes: 2 additions & 2 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public function boot(Application $app): void
]);

// Don't run any health checks during tests
if (!app()->runningUnitTests()) {
if (!$app->runningUnitTests()) {
Health::checks([
DebugModeCheck::new()->if(app()->isProduction()),
DebugModeCheck::new()->if($app->isProduction()),
EnvironmentCheck::new(),
CacheCheck::new(),
DatabaseCheck::new(),
Expand Down
76 changes: 0 additions & 76 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 934554a

Please sign in to comment.