Commit Graph

56 Commits

Author SHA1 Message Date
HDVinnie
3ad3bb992b PHP Style Change (Laravel Pint CI) 2024-07-19 03:43:14 +00:00
HDVinnie
8ad0097fc9 fix: HasFactory types 2024-07-18 23:42:13 -04:00
HDVinnie
c4cd52e23b 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
2024-06-19 13:43:59 -04:00
Roardom
cd8d348b8e fix: strict types
1. Need to use the path of a file and not the object.
2. When a torrent is uploaded, the upload form sends a string for the tmdb and the model is saved with a string and it's the database that does the conversion. We need to cast the string to an int if we want to reuse the model without rehydrating.
3. Some of the first_air_date and last_air_date are null and need to be checked to make sure they follow the correct format.
2024-05-27 06:09:35 +00:00
Roardom
12903f64ac fix: strict type issues
Don't pass null into functions that don't accept null.
2024-05-23 17:40:16 +00:00
Roardom
b1873bfa27 fix: decimal docblocks
MySQL decimal column type is casted to PHP string type by default. Let's also make sure it only has 2 decimal places while we're at it.
2024-05-23 15:46:31 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
HDVinnie
51fa8ec46b update: laravel
- Laravel 11 introduces a new default application structure with fewer default files. Namely, new Laravel applications contain fewer service providers, middleware, and configuration files.

However, it is not recommend that Laravel 10 applications upgrading to Laravel 11 attempt to migrate their application structure, as Laravel 11 has been carefully tuned to also support the Laravel 10 application structure.
2024-04-23 16:06:37 -04:00
HDVinnie
8a03bec818 add: model docblocks
- this resolves some larastan property issues but in return has revealed quite a few issues with our castings and such. baseline has been regenerated so we can work through them. The properties in docblocks are in order and match everything in DB schema wise.
2024-02-07 16:39:43 -05:00
Roardom
f2066f4441 fix: add type hints to models 2023-08-26 07:43:07 +00:00
Roardom
2ca7adbbe5 fix: various larastan controller issues 2023-08-25 09:13:18 +00:00
Roardom
450a475593 fix: casts type 2023-08-06 02:21:15 +00:00
Roardom
70e3505886 update: cruddy requests
Separate requests into cruddy routes. Use route model binding. Allow forfeit of award if request approval is revoked. Use form requests.
2023-07-07 03:18:13 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
Roardom
34c5abf019 refactor: request controller 2023-04-28 01:31:44 +00:00
HDVinnie
40db300774 fix: multiple bugs 2023-03-19 19:11:46 -04:00
Roardom
d97ab002f2 remove: redundant bbcode converter 2023-02-07 23:51:10 -06: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
Roardom
fc0235e39b update: fulfill requests with torrent id instead of info_hash 2022-12-23 16:07:47 -06:00
HDVinnie
ef51742c3d Merge branch '6.x.x' into Livewire-Comments 2022-09-09 09:06:21 -04:00
HDVinnie
38338b672d fix: #2353
- closes #2353
2022-08-24 19:52:38 -04:00
HDVinnie
1bf1ae5d68 update: model relations 2022-01-23 19:03:09 -05:00
StyleCI Bot
2cc3d2b2cb Apply fixes from StyleCI 2022-01-23 22:42:35 +00:00
HDVinnie
00d00024e5 chore: cleanup 2022-01-23 17:42:16 -05:00
StyleCI Bot
db58733d02 Apply fixes from StyleCI 2022-01-19 19:53:29 +00:00
Shift
bcb55abc2e Convert deprecated $dates property to $casts 2022-01-19 19:51:31 +00:00
HDVinnie
98521378d2 chore: phpdoc blocks 2022-01-10 17:46:43 -05:00
HDVinnie
ebb5b72c2b fix: model type hints 2022-01-08 16:26:53 -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
Oha-you
23122962c1 update: Improve Linkify, escape special chars for BBcode 2021-05-20 22:55:39 +03:00
HDVinnie
d28eb42074 cleanup: torrent request model 2020-12-28 23:51:12 -05:00
Laravel Shift
fac1da0b42 Shift cleanup 2020-09-08 22:25:06 +00:00
Laravel Shift
add31768f5 Shift to class based factories 2020-09-08 22:24:30 +00:00
HDVinnie
01093d711c Apply fixes from StyleCI
[ci skip] [skip ci]
2020-07-28 16:54:24 +00: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
c9c59cafc9 update: torrent request model 2020-06-06 21:52:50 -04:00
HDVinnie
3f688c0d65 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-06-03 06:10:58 +00:00
HDVinnie
b96511357b update: model doc blocks 2020-06-03 02:09:16 -04:00
HDVinnie
780e0c1f0e chore: update license block 2020-02-12 15:05:34 -05:00
HDVinnie
865a139038 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-22 15:49:44 +00:00
HDVinnie
4e9a2d9304 (Update) XSS Protection 🔐
- close #1068
- update dependencies
- add JS obfuscator
- enable purgeCSS by default
2020-01-20 10:10:24 -05:00
HDVinnie
9a893662de Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie
ef0b9e0203 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-11-13 14:36:38 +00:00
HDVinnie
2a0affa30d (Update) Model PHPDocs 🚀 2019-11-11 20:52:59 -05:00
HDVinnie
e0379e5b95 (Add) Audit System 🆕
- filtering to follow
2019-11-06 06:42:17 -05:00
HDVinnie
77e178069a Merge branch 'master' into Cruddy-By-Design 2019-10-28 14:39:16 -04:00
HDVinnie
eed3b51c92 (Update) CRUDDY PT.7 🚀 2019-10-25 17:35:14 -04:00
HDVinnie
c9cf937e8b (Update) Purifier 🚀 2019-10-12 18:28:22 -04:00
HDVinnie
a3efd98e84 (Security Update) HTMLPurifier 🔐
- closes #875
- Fixes HTML Tags Not Being Contained / Elevated within user-generated bodies like (posts, comments, signature, etc.)
2019-10-11 11:57:17 -04:00