Commit Graph

40 Commits (dev)

Author SHA1 Message Date
Your Name 53b698ec48 Revert "StrictArrayParamDimFetchRector"
This reverts commit a28d3df4c4.
6 days ago
Your Name a28d3df4c4 StrictArrayParamDimFetchRector 6 days ago
Your Name 5ebc1af91e BATCH 1 6 days ago
Your Name a286509622 Require visibility on collection store to match NOT NULL schema 2 weeks ago
Your Name 661b841428 Remove dead debug methods that echoed the raw request
CollectionController::index and StoryComposeController::createPoll had no
route mapping and simply returned $request->all(). Both are unreachable
debug leftovers; remove them. The live poll route maps to
ComposeController::createPoll, which is unaffected.
3 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 ffcef3eb2d fix: replace Auth facade with $request->user() in request-scoped classes
Replace Auth::user() with $request->user() and Auth::check() with
$request->user() !== null (or ! $request->user()) across all
controllers and middleware that have access to the request object.

This resolves 99 larastan.noAuthFacadeInRequestScope errors and
improves Octane compatibility.

For protected helper methods without $request in scope, uses the
request() helper instead.

Methods that previously lacked a Request parameter but used Auth
facade now accept Request $request via Laravel's auto-injection.
4 weeks ago
Your Name 1617734907 Revert "Merge pull request #6851 from pixelfed/fix/phpstan-auth-request-scope-2"
This reverts commit ce4baf6995, reversing
changes made to 9235cb979a.
4 weeks ago
Your Name 0939f495bb fix: replace Auth facade with $request->user() in request-scoped classes
Replace Auth::user() with $request->user() and Auth::check() with
$request->user() !== null (or ! $request->user()) across all
controllers and middleware that have access to the request object.

This resolves 99 larastan.noAuthFacadeInRequestScope errors and
improves Octane compatibility.

For protected helper methods without $request in scope, uses the
request() helper instead.

Methods that previously lacked a Request parameter but used Auth
facade now accept Request $request via Laravel's auto-injection.
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 4e1dd59992
Update CollectionController, fix showCollection signature 2 years ago
Daniel Supernault bc2495c676
Update CollectionsController, add new self route 2 years ago
daniel 6ffc964371
Merge pull request #4792 from mbliznikova/4790_4791_add_recently_deleted_post_to_collection_no_page_reloading_invalidate_cache_after_adding
4790 4791 add recently deleted post to collection no page reloading invalidate cache after adding
3 years ago
mbliznikova a7320535e9 #4791 Invalidate cache after adding a collection item for data consistency 3 years ago
mbliznikova 2c6edf37a7 oFix #3698, make unlisted photos visible in collections 3 years ago
Daniel Supernault abd52f4d3a
Update CollectionController, fixes #3946 4 years ago
Daniel Supernault b8ad594a05
Update CollectionController 4 years ago
Daniel Supernault 84e152896b
Update CollectionController 4 years ago
Daniel Supernault 6e76cf4b68
Update CollectionController, limit max title and description length 4 years ago
Daniel Supernault 3bf792072a
Update CollectionService 4 years ago
Daniel Supernault ab2d1315a0
Update CollectionController 4 years ago
Daniel Supernault 0a82e9466d
Update api routes 4 years ago
Daniel Supernault 44f4a9edd9
Improve CollectionService cache invalidation, fixes #3548 4 years ago
Daniel Supernault a0061eb56c
Update CollectionController, limit unpublished collections to owner 5 years ago
Daniel Supernault c7e1e473ca
Update CollectionController, fixes #3289 5 years ago
Daniel Supernault f0d48ade0d
Update CollectionController 5 years ago
Daniel Supernault bd249f0c39
Update CollectionController, fix broken unauthenticated access. Fixes #3242 5 years ago
Daniel Supernault 048642bead
Update Collections, add custom limit 6 years ago
Daniel Supernault a84ff19451
Update CollectionController, fix null bug 7 years ago
Daniel Supernault 46c9a3742e
Update CollectionController 7 years ago
Daniel Supernault c2826fd3fd
Update CollectionController, increase collection limit from 18 to 50 7 years ago
Daniel Supernault 8e033b3228
Update CollectionController 7 years ago
Daniel Supernault a8fe297c2b
Fixes #1521 7 years ago
Daniel Supernault 031c93915e
Update CollectionController 7 years ago
Daniel Supernault 6791d13fc5
Update CollectionController 7 years ago
Daniel Supernault 0d120f5c38
Update CollectionController 7 years ago
Daniel Supernault e74dbe7cd7
Update CollectionController 7 years ago
Daniel Supernault 5215a68162
Add CollectionController 8 years ago