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:
@@ -3,7 +3,6 @@
|
||||
namespace App\DTO;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
class ReportFilters
|
||||
{
|
||||
@@ -21,10 +20,10 @@ class ReportFilters
|
||||
return new self(
|
||||
dateFrom: isset($data['date_from']) ? Carbon::parse($data['date_from']) : null,
|
||||
dateTo: isset($data['date_to']) ? Carbon::parse($data['date_to']) : null,
|
||||
entityTypes: $data['entity_types'] ?? ['phases','features','inspections','issues','tasks'],
|
||||
includePhotos: (bool)($data['include_photos'] ?? false),
|
||||
entityTypes: $data['entity_types'] ?? ['phases', 'features', 'inspections', 'issues', 'tasks'],
|
||||
includePhotos: (bool) ($data['include_photos'] ?? false),
|
||||
format: $data['format'] ?? 'html',
|
||||
includeCharts: (bool)($data['include_charts'] ?? false),
|
||||
includeCharts: (bool) ($data['include_charts'] ?? false),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -55,14 +54,15 @@ class ReportFilters
|
||||
public function getDateRangeLabel(): string
|
||||
{
|
||||
if ($this->dateFrom && $this->dateTo) {
|
||||
return $this->dateFrom->format('d/m/Y') . ' - ' . $this->dateTo->format('d/m/Y');
|
||||
return $this->dateFrom->format('d/m/Y').' - '.$this->dateTo->format('d/m/Y');
|
||||
}
|
||||
if ($this->dateFrom) {
|
||||
return 'Desde ' . $this->dateFrom->format('d/m/Y');
|
||||
return 'Desde '.$this->dateFrom->format('d/m/Y');
|
||||
}
|
||||
if ($this->dateTo) {
|
||||
return 'Hasta ' . $this->dateTo->format('d/m/Y');
|
||||
return 'Hasta '.$this->dateTo->format('d/m/Y');
|
||||
}
|
||||
|
||||
return 'Todo el período';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user