Commit Graph

16 Commits

Author SHA1 Message Date
Roardom
6fec472ac5 update: exclude cheated torrents under 5% the torrent size
Less false positives caused by different clients providing different traffic stats depending on if a downloaded piece is corrupted and retries or similar.
2025-05-29 09:37:40 +00:00
Roardom
596019ff53 update: improve cheated torrent algorithm 2025-05-28 12:26:59 +00:00
HDVinnie
482424550d fix: reported phpstan errors 2025-05-26 21:54:57 -04:00
Roardom
5f60ce6b77 refactor: enforce view filenames to use kebab case
Also had to use `@style` directives inside /resources/views/components/user-tag.blade.php. Prettier was erroring when the `@if` directive was inside the html attribute otherwise. Seems to have always been an issue, but the CI must only be formatting files that changed and because the file was only just changed now, it never discovered it until now.
2025-05-07 08:28:46 +00:00
Roardom
868ad35aa4 refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.

Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
Roardom
9ab8ba18e5 refactor: reduce usage of numeric strings 2024-08-26 10:14:52 +00:00
Roardom
2e57262e97 fix: strict types phpstan errors 2024-05-23 15:38:35 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
d08a808737 refactor: use route model binding for staff cheated torrents 2023-07-07 03:18:13 +00:00
Roardom
5890ebc749 refactor: miscellaneous staff controller refactors 2023-07-07 00:28:47 +00:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
Roardom
b5493c5642 refactor: swap where('id', '=', ) for find() 2023-06-19 23:18:40 +00:00
Roardom
72307485ec update: reduce false positives on cheated torrents 2023-04-25 22:03:42 +00:00
HDVinnie
472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie
5a9fd9211c update: CheatedTorrentController 2022-11-27 17:54:28 -05:00
Roardom
199cd9ea5f add: staff page to view cheated torrents 2022-09-30 14:15:05 -05:00