Roardom
52e9c53f13
fix: cast floor to int to ensure int return type
...
There are no valid cases in the contexts where this function is used where the float will be greater than the range of the int (which is why the `min` functionr returns `mixed`)
2025-12-02 07:42:04 +00:00
Roardom
604b7e1937
add: spell check ci
...
Just an initial portion for now fixing incorrect text and preventing future incorrect text. Eventually, I'd like to fix everything still listed under "ignoredWords" in cspell.json.
2025-01-24 11:30:34 +00:00
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
94098c53ff
fix: some phpstan level 7 errors in Helpers
2024-01-07 17:21:12 +00:00
Roardom
811a76c0da
fix: larastan errors in Helpers\SystemInformation.php
2024-01-02 23:48:54 +00:00
HDVinnie
3f03214e39
PHP Style Change (Laravel Pint CI)
2023-11-07 23:54:38 +00:00
HDVinnie
88d114c526
PHP Style Change (Laravel Pint CI)
2023-08-30 09:39:04 +00:00
Roardom
2085656e76
fix: various larastan helper issues
2023-08-25 07:21:45 +00:00
HDVinnie
f397fdc168
fix: system info helper
2023-02-23 19:54:45 -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
Roardom
fd60381eb6
add: more load averages
2023-01-29 02:27:21 -06: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
888dcacf0b
fix: staff dashboard memory info
2022-08-07 11:04:40 -04:00
Shift
be2d37ed6e
Use Illuminate\Support\Carbon
2022-05-31 22:05:34 +00:00
HDVinnie
c0eeef8808
update: helpers
2022-02-28 04:59:08 -05:00
HDVinnie
00d00024e5
chore: cleanup
2022-01-23 17:42:16 -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
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
041927202c
refactor: type and name of catch exception should match
2021-05-15 14:01:27 -04:00
HDVinnie
999c16093b
cleanup: unused variables
2021-05-15 12:52:00 -04:00
HDVinnie
9399372237
refactor: power operator usage
2021-04-27 22:06:15 -04:00
HDVinnie
743d81cbf2
update: system info helper
2021-01-05 14:11:35 -05:00
HDVinnie
99c11a89e8
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-12-03 02:21:57 +00:00
HDVinnie
3bd8492128
refactor: in_array(...) usage
...
- Added the 'strict' (third) parameter for security's sake.
2020-12-02 21:21:43 -05:00
HDVinnie
1042342923
refactor: preslash simple functions
2020-09-04 13:06:59 -04:00
HDVinnie
aea25ecf2f
refactor: count on null
2020-07-22 16:41:51 -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
d66c18aaa7
refactor: consistent preg delimiters
2020-04-24 11:44:59 -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
46aa876c06
refactor: add literal separator to numbers
...
- This is for PHP7.4 + only
- Adds an `_` as thousands separator in numbers
2020-04-14 20:25:07 -04:00
HDVinnie
7cb264511f
update: units to binary
2020-03-07 00:57:44 -05:00
HDVinnie
1808854a76
chore: styleci
2020-03-06 09:08:37 -05:00
HDVinnie
6160c03ede
refactor: change variable with read only status and default value to a constant
2020-03-06 09:04:22 -05:00
HDVinnie
780e0c1f0e
chore: update license block
2020-02-12 15:05:34 -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
9a893662de
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie
e9378b71fa
(Update) Minor Cleanup 🚀
2019-11-05 17:05:39 -05:00
HDVinnie
da30d2a706
(Update) CRUDDY PT.8 🚀
2019-10-29 20:26:54 -04:00
HDVinnie
eed3b51c92
(Update) CRUDDY PT.7 🚀
2019-10-25 17:35:14 -04: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