mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-02-11 14:09:31 -06:00
fix: multiple bugs
- adds laravel 11 casts support to phpstan https://github.com/larastan/larastan/blob/2.x/UPGRADE.md#upgrading-to-296-from-295 - fixes multiple bugs found by phpstan - removes dead code in torrent filter trait - ignores three new files in phpstan.neon temp until debugged for timeouts
This commit is contained in:
@@ -539,11 +539,11 @@ class TorrentController extends BaseController
|
||||
->when($request->filled('malId'), fn ($query) => $query->ofMal((int) $request->malId))
|
||||
->when($request->filled('playlistId'), fn ($query) => $query->ofPlaylist((int) $request->playlistId))
|
||||
->when($request->filled('collectionId'), fn ($query) => $query->ofCollection((int) $request->collectionId))
|
||||
->when($request->filled('primaryLanguages'), fn ($query) => $query->ofOriginalLanguage($request->primaryLanguages))
|
||||
->when($request->filled('primaryLanguages'), fn ($query) => $query->ofPrimaryLanguage($request->primaryLanguages))
|
||||
->when($request->filled('adult'), fn ($query) => $query->ofAdult($request->boolean('adult')))
|
||||
->when($request->filled('free'), fn ($query) => $query->ofFreeleech($request->free))
|
||||
->when($request->filled('doubleup'), fn ($query) => $query->doubleup())
|
||||
->when($request->filled('refundable'), fn ($query) => $query->ofRefundable($request->boolean('refundable')))
|
||||
->when($request->filled('refundable'), fn ($query) => $query->refundable())
|
||||
->when($request->filled('featured'), fn ($query) => $query->featured())
|
||||
->when($request->filled('stream'), fn ($query) => $query->streamOptimized())
|
||||
->when($request->filled('sd'), fn ($query) => $query->sd())
|
||||
|
||||
Reference in New Issue
Block a user