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\Http\Controllers;
|
||||
|
||||
use App\Models\Project;
|
||||
use App\Models\User;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
@@ -16,6 +15,7 @@ class ProjectController extends Controller
|
||||
public function index()
|
||||
{
|
||||
Gate::authorize('view projects');
|
||||
|
||||
return view('projects.index');
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ class ProjectController extends Controller
|
||||
|
||||
// Assign creator as supervisor in project
|
||||
$project->users()->attach(Auth::id(), ['role_in_project' => 'supervisor']);
|
||||
|
||||
return redirect()->route('projects.map', $project)->with('success', 'Proyecto creado');
|
||||
}
|
||||
|
||||
@@ -94,4 +95,4 @@ class ProjectController extends Controller
|
||||
// (lo validaremos dentro del componente Livewire)
|
||||
return view('projects.map', compact('project'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user