fix: add return types to render() methods
Add \Illuminate\Contracts\View\View return type to 23 Livewire and Blade component render() methods for better static analysis. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7e367803fc
commit
560c6aec4d
23 changed files with 23 additions and 23 deletions
|
|
@ -362,7 +362,7 @@ class ActivityFeed extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('core.activity::admin.activity-feed');
|
return view('core.activity::admin.activity-feed');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ class ConfigPanel extends Component
|
||||||
$this->dispatch('config-cleared');
|
$this->dispatch('config-cleared');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('core.config::admin.config-panel')
|
return view('core.config::admin.config-panel')
|
||||||
->layout('hub::admin.layouts.app', ['title' => 'Configuration']);
|
->layout('hub::admin.layouts.app', ['title' => 'Configuration']);
|
||||||
|
|
|
||||||
|
|
@ -277,7 +277,7 @@ class WorkspaceConfig extends Component
|
||||||
$this->dispatch('config-cleared');
|
$this->dispatch('config-cleared');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('core.config::admin.workspace-config')
|
return view('core.config::admin.workspace-config')
|
||||||
->layout('hub::admin.layouts.app', ['title' => 'Settings']);
|
->layout('hub::admin.layouts.app', ['title' => 'Settings']);
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class ActivityFeed extends Component
|
||||||
return $item['color'] ?? 'gray';
|
return $item['color'] ?? 'gray';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.activity-feed');
|
return view('admin::components.activity-feed');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class ActivityLog extends Component
|
||||||
return is_array($value) ? json_encode($value) : (string) $value;
|
return is_array($value) ? json_encode($value) : (string) $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.activity-log');
|
return view('admin::components.activity-log');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class Alert extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.alert');
|
return view('admin::components.alert');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class CardGrid extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.card-grid');
|
return view('admin::components.card-grid');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class ClearFilters extends Component
|
||||||
->implode('; ');
|
->implode('; ');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.clear-filters');
|
return view('admin::components.clear-filters');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class DataTable extends Component
|
||||||
return $align === 'right' ? 'text-right' : '';
|
return $align === 'right' ? 'text-right' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.data-table');
|
return view('admin::components.data-table');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ class EditableTable extends Component
|
||||||
return count($this->columns) + ($this->selectable ? 1 : 0);
|
return count($this->columns) + ($this->selectable ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.editable-table');
|
return view('admin::components.editable-table');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ class Filter extends Component
|
||||||
})->values()->all();
|
})->values()->all();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.filter');
|
return view('admin::components.filter');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class FilterBar extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.filter-bar');
|
return view('admin::components.filter-bar');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ class LinkGrid extends Component
|
||||||
return $item['icon'] ?? 'arrow-right';
|
return $item['icon'] ?? 'arrow-right';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.link-grid');
|
return view('admin::components.link-grid');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class ManagerTable extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.manager-table');
|
return view('admin::components.manager-table');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ class Metrics extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.metrics');
|
return view('admin::components.metrics');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class ProgressList extends Component
|
||||||
return is_numeric($value) ? number_format($value) : (string) $value;
|
return is_numeric($value) ? number_format($value) : (string) $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.progress-list');
|
return view('admin::components.progress-list');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ class Search extends Component
|
||||||
$this->wireModel = $this->model ? "wire:model.live.debounce.300ms=\"{$this->model}\"" : '';
|
$this->wireModel = $this->model ? "wire:model.live.debounce.300ms=\"{$this->model}\"" : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.search');
|
return view('admin::components.search');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class ServiceCard extends Component
|
||||||
$this->statusColor = $this->status === 'online' ? 'green' : 'red';
|
$this->statusColor = $this->status === 'online' ? 'green' : 'red';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.service-card');
|
return view('admin::components.service-card');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ class Sidemenu extends Component
|
||||||
return app(AdminMenuRegistry::class)->build($workspace, $isAdmin);
|
return app(AdminMenuRegistry::class)->build($workspace, $isAdmin);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.sidemenu');
|
return view('admin::components.sidemenu');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ class Stats extends Component
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.stats');
|
return view('admin::components.stats');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ class StatusCards extends Component
|
||||||
return $item['color'] ?? 'gray';
|
return $item['color'] ?? 'gray';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('admin::components.status-cards');
|
return view('admin::components.status-cards');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -451,7 +451,7 @@ class HeaderConfigurationManager extends Component
|
||||||
/**
|
/**
|
||||||
* Render the component.
|
* Render the component.
|
||||||
*/
|
*/
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('core::headers.livewire.header-configuration-manager');
|
return view('core::headers.livewire.header-configuration-manager');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ use Livewire\Component;
|
||||||
*/
|
*/
|
||||||
class Index extends Component
|
class Index extends Component
|
||||||
{
|
{
|
||||||
public function render()
|
public function render(): \Illuminate\Contracts\View\View
|
||||||
{
|
{
|
||||||
return view('trees::web.index', [
|
return view('trees::web.index', [
|
||||||
'stats' => $this->getGlobalStats(),
|
'stats' => $this->getGlobalStats(),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue