You've already forked Atomcms-edit
chore: fix code style with Laravel Pint
This commit is contained in:
@@ -18,7 +18,6 @@ use App\Services\RconService;
|
||||
use App\Services\SettingsService;
|
||||
use App\Services\UpdateHistoryService;
|
||||
use BackedEnum;
|
||||
use Carbon\Carbon;
|
||||
use Exception;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Forms\Components\Placeholder;
|
||||
@@ -31,6 +30,7 @@ use Filament\Notifications\Notification;
|
||||
use Filament\Pages\Page;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Schema;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Support\Facades\Artisan;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -67,7 +67,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
|
||||
public string $catalogSyncUrl = '';
|
||||
|
||||
/** @var array<\App\Services\Diagnostics\DiagnosticResult> */
|
||||
/** @var array<DiagnosticResult> */
|
||||
public array $diagnostics = [];
|
||||
|
||||
public function mount(): void
|
||||
@@ -421,7 +421,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderServerInfoView(): \Illuminate\Contracts\View\View
|
||||
private function renderServerInfoView(): View
|
||||
{
|
||||
$load = sys_getloadavg();
|
||||
|
||||
@@ -438,7 +438,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderHotelStatusView(): \Illuminate\Contracts\View\View
|
||||
private function renderHotelStatusView(): View
|
||||
{
|
||||
$serviceName = $this->getSetting('emulator_service_name', 'emulator');
|
||||
$serviceStatus = $this->runCommand('systemctl is-active ' . escapeshellarg($serviceName) . ' 2>/dev/null') ?: 'inactive';
|
||||
@@ -479,7 +479,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderEmulatorInfoView(): \Illuminate\Contracts\View\View
|
||||
private function renderEmulatorInfoView(): View
|
||||
{
|
||||
$status = $this->getEmulatorStatusText();
|
||||
|
||||
@@ -491,7 +491,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderEmulatorSettingsView(): \Illuminate\Contracts\View\View
|
||||
private function renderEmulatorSettingsView(): View
|
||||
{
|
||||
return view('filament.components.commandocentrum.emulator-settings', [
|
||||
'emulatorBranchesHtml' => $this->getEmulatorBranchesHtml(),
|
||||
@@ -499,7 +499,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderEmulatorStatusView(): \Illuminate\Contracts\View\View
|
||||
private function renderEmulatorStatusView(): View
|
||||
{
|
||||
$serviceName = $this->getSetting('emulator_service_name', 'arcturus');
|
||||
$jarPath = $this->getSetting('emulator_jar_path', '/var/www/Emulator');
|
||||
@@ -540,7 +540,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderNitroSettingsView(): \Illuminate\Contracts\View\View
|
||||
private function renderNitroSettingsView(): View
|
||||
{
|
||||
return view('filament.components.commandocentrum.nitro-settings', [
|
||||
'nitroBranchesHtml' => $this->getNitroBranchesHtml(),
|
||||
@@ -548,7 +548,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderNitroStatusView(): \Illuminate\Contracts\View\View
|
||||
private function renderNitroStatusView(): View
|
||||
{
|
||||
$clientPath = $this->getSetting('nitro_client_path', '/var/www/nitro-client');
|
||||
$rendererPath = $this->getSetting('nitro_renderer_path', '/var/www/nitro-renderer');
|
||||
@@ -572,7 +572,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderBackupsListView(): \Illuminate\Contracts\View\View
|
||||
private function renderBackupsListView(): View
|
||||
{
|
||||
try {
|
||||
$backups = app(EmulatorControlAction::class)->getBackups();
|
||||
@@ -585,7 +585,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderClothingStatusView(): \Illuminate\Contracts\View\View
|
||||
private function renderClothingStatusView(): View
|
||||
{
|
||||
try {
|
||||
$count = DB::table('catalog_clothing')->count();
|
||||
@@ -598,7 +598,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderStaffActivityView(): \Illuminate\Contracts\View\View
|
||||
private function renderStaffActivityView(): View
|
||||
{
|
||||
try {
|
||||
$activities = StaffActivity::with('user:id,username,look')
|
||||
@@ -614,7 +614,7 @@ final class Commandocentrum extends Page implements HasForms
|
||||
]);
|
||||
}
|
||||
|
||||
private function renderUpdateHistoryView(): \Illuminate\Contracts\View\View
|
||||
private function renderUpdateHistoryView(): View
|
||||
{
|
||||
try {
|
||||
$history = app(UpdateHistoryService::class)->getRecent(10);
|
||||
|
||||
Reference in New Issue
Block a user