Commit Graph

9 Commits (a0f721781a292f938ad2a36ddcbf8f95a5b6aa03)

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
Shlee f99ee65676
Update PlaceController.php 1 month ago
Daniel Supernault ece23d751b
Update Places, improve cache invalidation/ttl 1 year ago
Daniel Supernault f81a4acdc6
Update PlaceController, fix show method 1 year ago
Daniel Supernault 9ab9ffbafe
Add places api endpoints 4 years ago
Daniel Supernault e7783af686
Update PlaceController, require authentication 5 years ago
Daniel Supernault dd5fa3a49d
Update PlaceController, fixes #2017 7 years ago
Daniel Supernault 37b88bcb1b
Update PlaceController, add place directory methods 7 years ago
Daniel Supernault 3ed275df31
Add Place model 7 years ago