mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
Add phpstan level 7(#544)
This commit is contained in:
@ -16,17 +16,17 @@ protected function getStats(): array
|
||||
{
|
||||
$stats = [];
|
||||
|
||||
if ($this->server->webserver()) {
|
||||
if ($this->server->webserver() instanceof \App\Models\Service) {
|
||||
$stats[] = Stat::make('Sites', $this->server->sites()->count())
|
||||
->icon('heroicon-o-cursor-arrow-ripple');
|
||||
}
|
||||
|
||||
if ($this->server->database()) {
|
||||
if ($this->server->database() instanceof \App\Models\Service) {
|
||||
$stats[] = Stat::make('Databases', $this->server->databases()->count())
|
||||
->icon('heroicon-o-circle-stack');
|
||||
}
|
||||
|
||||
if ($this->server->defaultService('php')) {
|
||||
if ($this->server->defaultService('php') instanceof \App\Models\Service) {
|
||||
$stats[] = Stat::make('PHP Version', $this->server->defaultService('php')->version)
|
||||
->icon('heroicon-o-command-line');
|
||||
}
|
||||
|
Reference in New Issue
Block a user