Commit Graph

7 Commits (54cfdf3c2b5f37013c40bc8567a96da1f42627d1)

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
Daniel Supernault 40478f258a
Update landing settings, use config_cache 3 years ago
Daniel Supernault db2da84bec
Update LandingController, fix config_cache api check 3 years ago
Daniel Supernault 6ea2bdc782
Update Admin Dashboard, allow admins to designate an admin account for the landing page and instance api endpoint 3 years ago
Daniel Supernault 385c166944
Update LandingController 4 years ago
Daniel Supernault b716926b9c
Update LandingController, fix configonfig variable names 4 years ago
Daniel Supernault 09c0032b39
New landing page design 4 years ago