Commit Graph

16 Commits (b24503a46ccadf8e6b43438e7415f0222f5aa28d)

Author SHA1 Message Date
Your Name b24503a46c chore: rename Pirate English locale to BCP-47 en-x-pirate
Use the BCP-47 private-use subtag en-x-pirate instead of en-Pirate:
- rename lang/en-Pirate -> lang/en-x-pirate
- update crowdin.yml mapping (en-PT -> en-x-pirate)
- update ExportLanguages LOCALE_OVERRIDES key + display name
- bump locale code validation max length (6 -> 12) so the longer
  code passes in SpaController and HomeSettings
- regenerate locale exports/manifest and rebuild web assets
1 week ago
Your Name 8f4add2f1e polish 1 week ago
Your Name 54cfdf3c2b refactor: add return type declarations to controller methods
Adds explicit return type declarations to 498 controller methods
across 88 files. Types inferred from return statements:

- JsonResponse for response()->json() returns
- RedirectResponse for redirect()/back() returns
- View (contract) for view() returns
- Response for response() returns
- void for methods with no return value
- array for array returns
- string/int/bool for scalar returns

Also fixes 3 methods with incorrect bare returns:
- AvatarController::deleteAvatar - bare return → json response
- ImportPostController::checkPermissions - bare return → true
- RemoteAuthController::accountToId - bare return → empty array
4 weeks ago
Your Name c807a8524c refactor: replace short facade aliases with fully-qualified imports
Convert all 273 short facade alias imports (e.g. 'use Cache;') to their
fully-qualified class names (e.g. 'use Illuminate\Support\Facades\Cache;')
across 193 files.

This resolves 643 PHPStan 'class.notFound' errors caused by the static
analyzer being unable to resolve global aliases, and aligns with modern
Laravel conventions. It also unblocks removing the aliases array from
config/app.php in a future change.

All 107 tests pass.
4 weeks ago
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault 6033d83726
Fix unlisted post web redirect and api response 4 years ago
Shlee f47ed7bdd1
Update SpaController.php 4 years ago
Daniel Supernault 84209c2433
Remove arbitrary metro url redirect timeout 4 years ago
Daniel Supernault dab9bcaf36
Update SpaController, fix typo 5 years ago
Daniel Supernault b6c6c85bb7
Update SpaController, handle web redirects 5 years ago
Daniel Supernault a44b812b13
Update SpaController, redirect web ui hashtags to legacy page for unauthenticated users 5 years ago
Daniel Supernault 8d1af1d6a1
Update SpaController, fix variable typo. Fixes #3268 5 years ago
Daniel Supernault 1a7a4a052f
Update SpaController 5 years ago
Daniel Supernault 5c65e2b761
Update SpaController, add username redirect method 5 years ago
Daniel Supernault 7bc684e5d1
Update SpaController, persist web language changes 5 years ago
Daniel Supernault 7e35ab80ad
Update web routes 5 years ago