Commit Graph

10 Commits (dev)

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
Daniel Supernault 374344754e
Lint 9 months ago
Daniel Supernault b89c4f1cdc
Update ActivityPubFetchService, fix authorized_fetch support 3 years ago
a e6e16d2cdd Fix: Use correct response type and remove Accept from http signature 4 years ago
a e380868b44 fix typo: http -> https 4 years ago
a 6bf1bea325 Fix: Use correct Content-Type over ActivityPub
This was causing federation issues
4 years ago
Daniel Supernault 217922466a
Update InstanceActorController, fix content-type header 5 years ago
Daniel Supernault 0a8eb81bf0
Update InstanceActorController, improve json seralization by not escaping slashes 5 years ago
Daniel Supernault 2159eecdbc
Add InstanceActorController 6 years ago