Roardom
1eab41af1a
fix: time elapsed calculation type warning
...
Sometimes an average seedtime is passed into here which isn't an int. This function currently only supports units above one second, so cast to int first.
2024-10-25 05:44:14 +00:00
Roardom
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
HDVinnie
fff090a2dc
PHP Style Change (Laravel Pint CI)
2024-05-21 23:33:57 +00:00
Alejo Gaitán
b98114d663
update: timeElapsed now returns used values only
...
Return a string with date measures that are not 0, only include unit measures that are used, helping to improve readability.
2024-05-21 20:33:02 -03:00
Roardom
6f5075e78f
refactor: simplify timeElapsed helper
2024-05-21 02:47:06 +00:00
Roardom
4824df9383
refactor: simplify formatBytes helper
2024-05-21 02:46:55 +00:00
Roardom
d2311b6889
remove: unused timeRemaining helper
2024-05-21 00:37:38 +00:00
Roardom
5447d96266
refactor: swap custom ordinal helper for framework helper
2024-05-21 00:29:03 +00:00
Roardom
ec54ae4808
fix: larastan errors in Helpers\StringHelper.php
2024-01-02 23:48:30 +00:00
Roardom
2085656e76
fix: various larastan helper issues
2023-08-25 07:21:45 +00:00
Roardom
9d4789ba91
refactor: require whitespace before statements
2023-07-07 00:27:13 +00: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
f6bf6a326e
PSR12 Linting
2022-09-11 23:54:18 +00:00
Roardom
1c9022b33d
update: use non-breaking space between number and byte unit
2022-05-15 01:33:41 -05:00
HDVinnie
c0eeef8808
update: helpers
2022-02-28 04:59:08 -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
HDVinnie
fce0d67917
update: combine assigns
2021-06-05 17:17:47 -04:00
Oha-you
bcd1254d9c
fix: Better breakdown and calculation of profile stats, show negative values
2021-06-01 23:21:21 +03:00
HDVinnie
00b68814a2
refactor: access modifiers shall be defined
2021-04-27 21:37: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
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
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
29cd6e8eb6
refactor: use identical over equal with same type
2020-02-16 21:04:19 -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
eed3b51c92
(Update) CRUDDY PT.7 🚀
2019-10-25 17:35:14 -04:00
Morgan Wong
90aaa2b618
(Update) fine tune translation 🌎
2019-05-17 04:35:14 +08:00
Laravel Shift
dcc003602b
Adopt Laravel coding style
...
The Laravel framework adopts the PSR-2 coding style with some additions.
Laravel apps *should* adopt this coding style as well.
However, Shift allows you to customize the adopted coding style through
the [.shiftrc][1] file by using your [PHP CS Fixer][2] config.
[1]: https://laravelshift.com/shiftrc-configuration-file
[2]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
2019-05-09 00:04:58 +00:00
HDVinnie
67339d7329
(Update) PHPDocs 🚀
2019-04-03 20:02:01 -04:00
singularity43
5a6fc6c6cb
(Update) StringHelper
...
Add timeRemaining helper.
2019-02-01 19:23:12 -05:00
HDVinnie
00bb324053
Apply fixes from StyleCI
2018-12-06 14:42:13 +00:00
HDVinnie
b7139af941
(Add) Top Uploaders Block
...
- added to codebase per @Linux paid request. Thank him for this addition as he paid me to add it.
2018-11-22 20:51:31 -05:00
Hyleus
777bb63880
Change license to AGPL
2018-02-12 17:27:32 +01:00
Hyleus
f7f301fcd4
Fix the bytes formatting
2017-12-19 17:51:26 +01:00
HDVinnie
77a8c2140a
(Update) NOTICE OF LICENSE
...
- Updated Author Names To Match GitHub Usernames For Clarity.
2017-12-15 22:45:37 -05:00
poppabear8883
e58563c88e
Reformatted per psr-2 coding standards
2017-12-12 21:50:27 -05:00
Hyleus
6ce8b90e55
Improve the byte prefixes
...
This will change the byte prefixes to IEC prefixes. The functions are
simplified so that the function for formatting bytes can be changed in
one place.
2017-12-12 21:26:10 +01:00
HDVinnie
5a32c2c38d
(Release) UNIT3D v1.0
...
- BETA
- There are bugs and features not yet complete
- This is not recommended for production use
2017-12-10 21:06:18 -05:00