Commit Graph

8 Commits (a142db87b4e63d7d760d5f1d337e9636c388e169)

Author SHA1 Message Date
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
Anil Kulkarni 9db038e4bb
Check for oauth keys from the config, as well as from disk 2 years ago
Daniel Supernault 4f2b8ed20a
Refactor total local post count logic, cache value and schedule updates twice daily to eliminate the perf issue on larger instances 2 years ago
Daniel Supernault f2f2a8097c
Update PixelfedDirectoryController, use cached stats 3 years ago
Daniel Supernault f08aab2231
Update PixelfedDirectoryController, fix boolean cast bug 3 years ago
Daniel Supernault 59c70239f8
Update Directory logic, add curated onboarding support 3 years ago
Daniel Supernault 94697d536b
Add Server Directory integration 4 years ago