Roardom
a447269552
refactor: use moderation status enum and cast
...
For consistency and less magic numbers hard coded everywhere.
2025-02-26 14:23:02 +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
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
HDVinnie
378af760f2
add: #3636
...
- closes #3636
2024-03-12 10:42:31 -04:00
clandestine8
efa29cbd00
Fix: Application Controller
2023-07-31 20:27:04 -04:00
Roardom
b6b4313bdc
update: various database performance improvements
...
Use eager loading where necessary and add a few indexes. The existing index on private_messages for sender_id and read was probably a typo and intended for receiver_id. The first 3 tables indexes are added to are used for queries ran on every page load: namely the new pm, new notification and warnings indicator in the navbar. Additionally, another index on genre_movie proved useful for finding all the genres when given a movie id. Perhaps, another index for finding all movies within a genre would be good as well, but will leave that for a future optimization if deemed necessary.
2023-07-17 00:21:08 +00:00
Roardom
741adef615
add: moderation scopes
2023-07-10 04:20:40 +00:00
Roardom
c55de708e0
refactor: application controller
...
Use form requests and mass assignment.
2023-07-07 00:26:17 +00:00
Roardom
d2e36c368e
refactor: reduce temporary variables passed to views
2023-06-19 23:25:40 +00:00
HDVinnie
f4ebee885c
update: lint
2023-02-03 22:23:00 -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
HDVinnie
33494ca5ce
refactor: simplify pointless boolean expressions in ifs
2022-08-25 19:17:06 -04:00
StyleCI Bot
e292545306
Apply fixes from StyleCI
2022-05-31 22:06:07 +00:00
Shift
be2d37ed6e
Use Illuminate\Support\Carbon
2022-05-31 22:05:34 +00:00
StyleCI Bot
e4ba901ee6
Apply fixes from StyleCI
2022-03-15 13:41:03 +00:00
HDVinnie
4ce9d9fde7
fix : #2158
...
- closes #2158
2022-03-15 09:40:42 -04:00
HDVinnie
594b7864d9
refactor: adopt new helpers in laravel 9
2022-03-06 17:20:05 -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
StyleCI Bot
06bcb20688
Apply fixes from StyleCI
2022-01-08 18:56:52 +00: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
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
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
550d1e8ee0
refactor: staff application controller
2020-12-30 12:16:04 -05:00
HDVinnie
0733269867
update: phpdoc blocks
2020-07-22 16:57:13 -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
HDVinnie
bf08470bf5
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-05-21 07:51:11 +00:00
HDVinnie
163bedd917
refactor: email blacklist system
...
- closes #1011
2020-05-21 03:47:45 -04:00
HDVinnie
4afdfbdade
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-04-19 05:31:13 +00:00
HDVinnie
408bfafc3e
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-03-05 15:47:30 +00:00
HDVinnie
4b9c006a05
chore: phpdoc blocks cleanup
2020-03-05 10:46:14 -05:00
HDVinnie
c8d953a3ad
Merge branch 'master' into development
2020-02-12 18:03:21 -05:00
HDVinnie
e47afe4ab4
chore: styleci
2020-02-12 14:51:22 -05:00
HDVinnie
80c842e39c
chore: update license block
...
- make styleci happy
2020-02-12 14:49:18 -05:00
HDVinnie
dbb928f940
chore: update license block
2020-02-12 14:45:59 -05:00
HDVinnie
8d72989943
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-02-12 17:41:17 +00:00
HDVinnie
611fcd6bc1
refactor: if / else / elseif statements
...
- Change If Else Value Assign To Early Return
- Change Nested Ifs To Early Return
- Remove Always Else
2020-02-12 12:34:34 -05:00
HDVinnie
9a893662de
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie
c8f2390c4d
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-01-06 15:38:43 +00:00
HDVinnie
e0379e5b95
(Add) Audit System 🆕
...
- filtering to follow
2019-11-06 06:42:17 -05:00
HDVinnie
d889971834
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2019-11-05 22:40:30 +00:00
HDVinnie
7a0eb4f2d5
(Update) PHPDoc Comments 🚀
2019-11-05 10:33:04 -05:00
HDVinnie
eed3b51c92
(Update) CRUDDY PT.7 🚀
2019-10-25 17:35:14 -04:00
Laravel Shift
97e88dd68b
Leverage injected request object
...
Laravel automatically injects the current Http [request object][1] to all Controller actions and Middleware. Leveraging this object improves consistency and testability.
[1]: https://laravel.com/docs/5.7/requests#accessing-the-request
2019-05-09 00:05:13 +00:00