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:
@@ -27,7 +27,7 @@ class SetLocale
|
||||
}
|
||||
|
||||
// 2. From session
|
||||
if (!$locale && Session::has('locale')) {
|
||||
if (! $locale && Session::has('locale')) {
|
||||
$sessionLocale = Session::get('locale');
|
||||
if (in_array($sessionLocale, $allowedLocales)) {
|
||||
$locale = $sessionLocale;
|
||||
@@ -35,7 +35,7 @@ class SetLocale
|
||||
}
|
||||
|
||||
// 3. From browser Accept-Language
|
||||
if (!$locale) {
|
||||
if (! $locale) {
|
||||
$browserLang = substr($request->server('HTTP_ACCEPT_LANGUAGE', 'en'), 0, 2);
|
||||
if (in_array($browserLang, $allowedLocales)) {
|
||||
$locale = $browserLang;
|
||||
@@ -43,7 +43,7 @@ class SetLocale
|
||||
}
|
||||
|
||||
// 4. Default to app locale
|
||||
if (!$locale) {
|
||||
if (! $locale) {
|
||||
$locale = config('app.locale', 'en');
|
||||
}
|
||||
|
||||
@@ -52,4 +52,4 @@ class SetLocale
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user