Commit Graph

35 Commits

Author SHA1 Message Date
HDVinnie
9f58065d30 add: laravel 12 support 2025-05-26 21:08:06 -04:00
Roardom
93e1c438b8 fix: order of operations in bon earnings calculation 2025-02-02 10:58:04 +00:00
Roardom
d922562f86 update: make bonus point allocation more customizable 2025-01-16 21:40:25 +00:00
Roardom
df58e790cd fix: carbon date immutability in bon allocation 2024-08-18 03:49:08 +00:00
Roardom
86bf428944 refactor: perform bon datetime calculations in php instead of mysql
Some of these should result in better perforance is the function wouldn't need to be applied to each row in the table.
2024-08-17 09:33:11 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
1bc31fda9d fix: only use active peers for stats and bon 2023-08-03 07:28:16 +00:00
HDVinnie
74c2252cf3 Merge pull request #2937 from Roardom/rename-sender-receiver
(Refactor) Use `_id` suffix on bon_transactions foreign keys
2023-07-23 15:19:01 -04:00
Roardom
d6ca758718 update: bon allocation query
The history table already has a unique index on user_id and torrent_id, so having distinct and joining with the torrents table isn't necessary.
2023-07-23 11:57:20 +00:00
Roardom
229eed8091 refactor: use _id suffix on bon_transactions foreign keys 2023-07-22 21:30:50 +00:00
Roardom
9d4789ba91 refactor: require whitespace before statements 2023-07-07 00:27:13 +00:00
HDVinnie
5232781f03 Merge pull request #2840 from Roardom/code-cleanup-3
(Refactor) Code Cleanup
2023-06-19 20:14:57 -04:00
Roardom
b5493c5642 refactor: swap where('id', '=', ) for find() 2023-06-19 23:18:40 +00:00
HDVinnie
d3f3510011 remove: unused foreach keys 2023-06-19 10:18:48 -04:00
HDVinnie
96f0e1f32f update: torrent history queries 2022-02-17 19:28:30 -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
29ac008222 update: auto bon command 2022-01-06 14:40:57 -05:00
HDVinnie
2a53cea216 refactor: newline after statement 2021-09-28 12:49:46 -04: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
a1109aaeee refactor: bon allocation command 2020-12-30 01:06:55 -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
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
Ben Johnson
a986681184 fix: Fix incorrect byte values
Aside from fixing the units, which mixed binary and metric
inadvertently, this commit adds an interface to a third-party library
that handles the conversion much more elegantly and provides flexibility
 for future needs of a similar nature.
2020-03-06 13:24:23 -05:00
HDVinnie
ad3ec8de19 tests: console commands 2020-02-25 13:01:48 -05:00
HDVinnie
780e0c1f0e chore: update license block 2020-02-12 15:05:34 -05: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
b492c52ba5 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-06-20 01:15:38 +00:00
HDVinnie
3c87845e54 (Update) Namespace models under App\Models 🚀 2019-02-22 08:15:41 -05:00
HDVinnie
0850390860 (Update) Standardize Where Expressions 🚀
- using `Model::where('download', '=', 1)` over`Model::where('download', 1)`
- decided is easier for new devs to understand.
- thanks to @werrpy for helping with the regex to mass update.
2018-12-16 18:32:58 -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
ab01fcce33 (Update) Commands and Schedule
- use proper naming schema per laravel community standards.
2018-11-04 13:43:34 -05:00