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:
@@ -22,7 +22,7 @@ class CaptureDailyProgressSnapshot implements ShouldQueue
|
||||
public function handle(): void
|
||||
{
|
||||
$date = $this->snapshotDate ? Carbon::parse($this->snapshotDate) : Carbon::today();
|
||||
|
||||
|
||||
Log::info('Starting daily progress snapshot capture', ['date' => $date->toDateString()]);
|
||||
|
||||
$captured = 0;
|
||||
@@ -45,7 +45,7 @@ class CaptureDailyProgressSnapshot implements ShouldQueue
|
||||
private function capturePhaseSnapshots(Carbon $date): int
|
||||
{
|
||||
$count = 0;
|
||||
|
||||
|
||||
Phase::with(['project'])->chunkById(100, function ($phases) use ($date, &$count) {
|
||||
foreach ($phases as $phase) {
|
||||
// Skip if snapshot already exists for this date
|
||||
@@ -87,7 +87,7 @@ class CaptureDailyProgressSnapshot implements ShouldQueue
|
||||
private function captureFeatureSnapshots(Carbon $date): int
|
||||
{
|
||||
$count = 0;
|
||||
|
||||
|
||||
Feature::with(['layer.phase.project'])->chunkById(200, function ($features) use ($date, &$count) {
|
||||
foreach ($features as $feature) {
|
||||
if (ProgressSnapshot::where('trackable_type', Feature::class)
|
||||
@@ -131,7 +131,7 @@ class CaptureDailyProgressSnapshot implements ShouldQueue
|
||||
private function captureTaskSnapshots(Carbon $date): int
|
||||
{
|
||||
$count = 0;
|
||||
|
||||
|
||||
Task::with(['project', 'phase'])->chunkById(200, function ($tasks) use ($date, &$count) {
|
||||
foreach ($tasks as $task) {
|
||||
if (ProgressSnapshot::where('trackable_type', Task::class)
|
||||
@@ -171,4 +171,4 @@ class CaptureDailyProgressSnapshot implements ShouldQueue
|
||||
|
||||
return $count;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user