Commit Graph

66 Commits

Author SHA1 Message Date
Roardom
64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
12fb2be874 fix: subtitle upload
Without this, laravel saves the file under a different name in a directory of the same name of the intended filename.
2024-02-14 02:41:16 +00:00
Roardom
c93790247e fix: allow uploading subtitles to unapproved torrents 2024-01-10 01:41:18 +00:00
Roardom
0ef7cc235a fix: phpstan level 7 controller errors 2024-01-07 17:13:20 +00:00
HDVinnie
3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
HDVinnie
b0c5f949d1 Merge pull request #3151 from Roardom/upload-subtitles-to-unapproved-torrents
(Update) Allow uploading subtitles to unapproved torrents
2023-10-08 13:13:33 -04:00
Roardom
45ebee70cb update: allow uploading subtitles to unapproved torrents 2023-10-07 05:25:50 +00:00
Roardom
dc7f8d8bcb fix: anon notification for anon-uploaded subtitles 2023-10-07 05:21:20 +00:00
Roardom
741adef615 add: moderation scopes 2023-07-10 04:20:40 +00:00
Roardom
0f1965260f refactor: use route model binding, mass assignment and form requests for subtitles 2023-07-07 03:18:13 +00:00
Roardom
0000838d8b refactor: cruddy torrents
Separate torrents into cruddy route names. Route model binding isn't possible due to the global scope on unapproved torrents. Use form requests. Simplify the controller flow where possible.
2023-07-07 03:18:13 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
Roardom
d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
Roardom
1fa4a3e506 refactor: swap sorting in laravel to ordering in the database 2023-06-19 23:18:40 +00:00
Roardom
a0429ca442 fix: achievement unlock
The unlock() function only takes a single argument
2023-04-12 03:19:22 +00:00
HDVinnie
f4ebee885c update: lint 2023-02-03 22:23:00 -05:00
HDVinnie
3650900c97 update: lint
- not_operator_with_space to false
2023-02-03 16:01:29 -05: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
2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
StyleCI Bot
2725397734 Apply fixes from StyleCI 2022-08-25 23:17:20 +00:00
HDVinnie
33494ca5ce refactor: simplify pointless boolean expressions in ifs 2022-08-25 19:17:06 -04:00
HDVinnie
594b7864d9 refactor: adopt new helpers in laravel 9 2022-03-06 17:20:05 -05:00
HDVinnie
bdd63aa816 update: controllers 2022-02-28 05:06:55 -05:00
HDVinnie
d3abd28925 update: type hints 2022-01-08 15:35:53 -05:00
HDVinnie
a2cdb5f5ff update: type hints 2022-01-08 14:37:50 -05:00
HDVinnie
77ec35bea5 chore: apply the laravel code style linter 2022-01-08 00:03:12 -05:00
HDVinnie
97394c062f chore: adopt type hints 2022-01-07 23:35:33 -05:00
HDVinnie
428db45a60 update: ability to add subtitles to pending uploads 2021-12-15 12:39:29 -05:00
HDVinnie
2a53cea216 refactor: newline after statement 2021-09-28 12:49:46 -04:00
clandestine8
a737482e79 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-09-06 23:26:02 +00:00
Oha-you
1ff90dee81 fix: Add subtitle file validation, remove .ico, edit rules 2021-05-20 23:35:15 +03:00
HDVinnie
6b02773725 fix: subtitle controller union type 2021-05-18 20:54:10 -04:00
HDVinnie
321847e067 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-05-16 02:41:53 +00:00
HDVinnie
3407075214 refactor: better php8 usage
- Change simple property init and assign to constructor promotion
- Remove unused variable in catch()
- Change docs types to union types, where possible
2021-05-15 22:41:28 -04:00
HDVinnie
9fc6c265b7 refactor: subtitle controller 2020-12-30 12:20:12 -05:00
HDVinnie
467d31f10a refactor: constructor promotions 2020-12-17 23:25:50 -05:00
HDVinnie
817ce03fd0 refactor: insecure uniqid usage 2020-12-02 21:18:16 -05:00
HDVinnie
4bc0c36f7b Apply fixes from StyleCI
[ci skip] [skip ci]
2020-11-03 20:08:37 +00:00
HDVinnie
f466b7be89 refactor: subtitle search 2020-11-03 15:08:22 -05:00
Howard Lau
d8819054e5 fix: atomic counter updates in SubtitleController 2020-08-31 13:32:50 +08:00
HDVinnie
10befaaea0 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-07-23 03:08:54 +00:00
HDVinnie
29628335f0 update: phpdoc blocks 2020-07-22 23:08:40 -04:00
HDVinnie
a975116218 refactor: preslash simple functions
- Add pre-slash to short named functions to improve performance by almost 30%
-  @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie
e7ccde0190 refactor: rename property to match type 2020-07-22 14:50:41 -04:00
PyR8zdl
603934c6ef Reverted a mistake.
Details here. https://github.com/HDInnovations/UNIT3D-Community-Edition/pull/1341#discussion_r425335151
2020-05-14 13:12:54 -05:00
PyR8zdl
93838a726a Subtitle-System Patch
1. Fixed typo in return route.
2. Made the use of filesystem consistent.
3. Removed unneeded copy to tmp directory.
4. Simplified mime-type and file return.
2020-05-14 11:42:31 -05:00
HDVinnie
0b9221a760 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-05-07 20:25:20 +00:00
HDVinnie
eb88163e48 update: subtitles system
- adds a subtitles index with faceted filtering
- linked in sidenav
2020-05-07 16:16:47 -04:00