chore: cleanup dead code + format with Pint
- Remove unused FeaturesController (empty stubs, no routes) - Remove ConvertSpatialFile CLI command (unused; service used in LayerManager) - Remove MigrateGeojsonToFeatures CLI command (one-shot migration, not referenced) - Remove .claude/worktrees/ (11 old agent worktrees from June) - Apply Laravel Pint formatting across 219 files (style only, no functional changes) Tests: 101 passing (319 assertions) API routes: unchanged (8 routes intact)
This commit is contained in:
@@ -10,7 +10,7 @@ use Livewire\Component;
|
||||
class ReportBuilder extends Component
|
||||
{
|
||||
public Project $project;
|
||||
|
||||
|
||||
public array $filters = [
|
||||
'date_from' => null,
|
||||
'date_to' => null,
|
||||
@@ -19,8 +19,9 @@ class ReportBuilder extends Component
|
||||
'include_charts' => false,
|
||||
'format' => 'html',
|
||||
];
|
||||
|
||||
|
||||
public bool $showPreview = false;
|
||||
|
||||
public ?array $previewData = null;
|
||||
|
||||
public function mount(Project $project)
|
||||
@@ -32,7 +33,7 @@ class ReportBuilder extends Component
|
||||
public function authorizeAccess(): void
|
||||
{
|
||||
$user = auth()->guard()->user();
|
||||
if (!$user->can('manage all') && !$this->project->users()->where('user_id', $user->id)->exists()) {
|
||||
if (! $user->can('manage all') && ! $this->project->users()->where('user_id', $user->id)->exists()) {
|
||||
abort(403);
|
||||
}
|
||||
}
|
||||
@@ -122,4 +123,4 @@ class ReportBuilder extends Component
|
||||
'availableEntities' => (new ReportFilters)->getAvailableEntities(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user