Roardom
3de7b17381
refactor: swap null coalescing for default model in user settings
...
Cleans up the code to remove null coalescing on user_settings when it doesn't exist. Sometimes null was unintentionally being cast to false. Allowing the user_setting remain optional allows the site administration to configure and change defaults for their users without it affecting users who have explicitly chosen their existing user settings.
Alternative to #4789
2025-06-20 03:00:48 +00:00
Roardom
d00475778b
update: normalize user settings
...
Use a 1-1 relation. Cache it indefinitely to reduce queries for every http request. This will make it much easier to add additional user settings for various site features without sacrificing clean code or performance.
2024-05-26 10:42:00 +00:00
Roardom
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
HDVinnie
3f03214e39
PHP Style Change (Laravel Pint CI)
2023-11-07 23:54:38 +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
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
HDVinnie
aa15a5a1b5
update: middleware
2022-02-28 05:04:54 -05:00
HDVinnie
98521378d2
chore: phpdoc blocks
2022-01-10 17:46:43 -05:00
HDVinnie
97394c062f
chore: adopt type hints
2022-01-07 23:35:33 -05: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
8b333880de
cleanup: multiline comment opening/closing
2021-05-15 13:01:30 -04:00
HDVinnie
1042342923
refactor: preslash simple functions
2020-09-04 13:06:59 -04:00
HDVinnie
20e291af25
fix: multilingual support
2020-08-03 10:51:32 -04:00
HDVinnie
612d1d53f6
update: language settings
...
- closes #1383
2020-08-01 13:19:18 -04:00
HDVinnie
46b40a8e0e
refactor: imports
2020-07-22 16:39:04 -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
78608a4666
refactor: space after sole ! operators
...
- There should be a space after sole `!` operators
2020-04-14 22:31:48 -04: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
9a893662de
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie
d889971834
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2019-11-05 22:40:30 +00:00
HDVinnie
eed3b51c92
(Update) CRUDDY PT.7 🚀
2019-10-25 17:35:14 -04:00
HDVinnie
8136aad61a
(Fix) Multilingual System 🐛
...
- closes #860
2019-09-27 10:56:33 -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
HDVinnie
e0e1aa924b
Apply fixes from StyleCI
2019-02-22 13:16:32 +00:00
HDVinnie
3c87845e54
(Update) Namespace models under App\Models 🚀
2019-02-22 08:15:41 -05:00
HDVinnie
2f2c52328b
Apply fixes from StyleCI
2018-12-06 22:57:41 +00:00
HDVinnie
00bb324053
Apply fixes from StyleCI
2018-12-06 14:42:13 +00:00
HDVinnie
db9feef9c9
(Update) Import Facade’s Explicitly
2018-07-11 11:21:33 -04:00
HDVinnie
f3010a3d49
(Update) Update Middelware
...
- remove facade use and replace with helpers
- cleanup
2018-03-21 12:03:16 -04:00
Hyleus
777bb63880
Change license to AGPL
2018-02-12 17:27:32 +01:00
HDVinnie
e1934a2657
(Feature) User Language System
...
- Need more lang files translated
- Closes #25
2017-12-27 22:04:16 -05:00