Commit Graph

25 Commits (0435d08568baf6c502c623e8fc8075375d6ae151)

Author SHA1 Message Date
Your Name 0435d08568 RemoveAlwaysElseRector 5 days ago
Your Name 0d999f5dda added return type to function 5 days ago
Daniel Supernault e0550c441c
Fix AdminApiController profiles endpoint, dont include deleted accounts 1 week ago
Daniel Supernault b2deebb72b
Update AdminApiController, fix typo 1 week ago
Daniel Supernault 6232d35d90
Update AccountService and AdminApiController 1 week ago
Daniel Supernault 96229868ff
Update AdminApiController, fix missing resource 1 week ago
Daniel Supernault 27bc6e792a
Update AdminApiController and PublicTimelineService 1 week ago
Your Name df1e771f93 Fix admin instance stats endpoint 404 on Postgres via strict is_admin check 2 weeks ago
Your Name c0cde2f682 refactor: move 52 legacy models from App\ to App\Models\
Move all Eloquent models from the app/ root directory to app/Models/
for consistency with modern Laravel conventions. The project already had
54 models in App\Models; this migrates the remaining 52 legacy models.

Changes:
- Move 52 model files from app/ to app/Models/
- Update namespace declarations in each model
- Update all ~1000 import references across the codebase
- Add Relation::morphMap() in AppServiceProvider for backward
  compatibility with existing polymorphic database records
- Add missing HasSnowflakePrimary imports for models that relied
  on same-namespace resolution
4 weeks 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
Shift 19880c2ffb
Convert string references to `::class`
PHP 5.5.9 adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
4 weeks ago
Daniel Supernault a9f24f85da
Update AdminApiController 2 years ago
Daniel Supernault 0aafb863e8
Update AdminApiController 2 years ago
Emelia Smith 9330cd02f7
Implement proper OAuth authorization on Admin API endpoints 3 years ago
Daniel Supernault 763ce19a0a
Update AdminApiController, improve admin moderation tools 3 years ago
Daniel Supernault 4f850e54ad
Update AdminApiController, include more data for getUser method 3 years ago
Daniel Supernault 5c5541fc01
Update AdminApiController 3 years ago
Daniel Supernault 89c3710d3c
Update AdminApiController, add instance stats endpoint 3 years ago
Daniel Supernault 588ca653a8
Update admin autospam apis, remove autospam warning notifications when appropriate 3 years ago
Daniel Supernault 84fb59d00a
Update AdminApiController, fix postgres support 4 years ago
Daniel Supernault d5dc928224
Update admin api 4 years ago
Daniel Supernault a224c71151
Add admin api 4 years ago
Daniel Supernault 89ca18b14e
ComposeUI update 7 years ago
Daniel Supernault 32d7ab091d
Add AdminApiController 7 years ago