Commit Graph

72 Commits

Author SHA1 Message Date
HDVinnie 4b9c006a05 chore: phpdoc blocks cleanup 2020-03-05 10:46:14 -05:00
Ben Johnson 57212ca263 tests: Add BonusController tests 2020-02-28 10:57:28 -05:00
HDVinnie 605c337204 refactor: encapsed strings to sprintf 2020-02-17 13:52:20 -05:00
HDVinnie b275e9ba82 refactor: combine nested if statements
### `Combine If Rector`

Merges nested if statements

```diff
 class SomeClass {
     public function run()
     {
-        if ($cond1) {
-            if ($cond2) {
-                return 'foo';
-            }
+        if ($cond1 && $cond2) {
+            return 'foo';
         }
     }
 }
```
2020-02-13 11:26:54 -05:00
HDVinnie c8d953a3ad Merge branch 'master' into development 2020-02-12 18:03:21 -05:00
HDVinnie 780e0c1f0e chore: update license block 2020-02-12 15:05:34 -05: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 740483ec86 (Revert) #1048
- reverted until BON system is refactored.
2020-02-12 09:50:54 -05:00
HDVinnie 9a893662de Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-08 16:28:32 +00:00
HDVinnie e77bf65da0 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-01-06 15:31:25 +00:00
innocente205 193beaa065 Update BonusController.php 2020-01-06 15:24:45 +07: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 426b801eda (Update) CRUDDY PT.5 🚀 2019-10-23 16:59:03 -04:00
HDVinnie 2979750a8f (Update) CRUDDY PT.4 🚀 2019-10-23 14:49:39 -04:00
HDVinnie dc2cf66405 (Update) CRUDDY PT.3 🚀 2019-10-23 13:48:28 -04:00
HDVinnie 9fc03ab492 (Update) CRUDDY PT.1 🚀 2019-10-22 14:29:58 -04:00
HDVinnie 7e52caf450 (Remove) Select2 ♻️
- closes #683
2019-05-29 12:03:57 -04:00
Morgan Wong d4b9b7c2ef (Fix) missing parameter in function 🐛 2019-05-22 11:59:39 +08:00
HDVinnie 761f3175e9 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-05-18 17:13:15 +00:00
HDVinnie ae35e64ff0 (Fix) BonusController 🐛
- import $user variable into subquery
2019-05-15 17:40:17 -04:00
Laravel Shift 4853105815 Shift to consistent, fluent response chains 2019-05-09 00:05:17 +00: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 67339d7329 (Update) PHPDocs 🚀 2019-04-03 20:02:01 -04:00
HDVinnie 4abadd4d92 (Fix) BonusController 🐛
- forgot to remove some hangover from other branch
2019-03-25 15:06:13 -04:00
HDVinnie c382aa5236 (Update) Refactor Validation Error/Info/Warning/Success Handeling 🚀 2019-03-25 13:53:41 -04:00
HDVinnie 8bb397c29c (Update) Standardize Select Queries 🚀 2019-03-13 11:26:20 -04: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
singularity43 7ddf0112f6 (Update) BonusController
Remove robot icon.
2019-02-09 14:58:20 -05:00
HDVinnie adc6494012 Apply fixes from StyleCI 2019-01-31 04:04:04 +00:00
singularity43 fdeff39d2e (Update) BonusController
1: Seperate views (store,gift,etc)
2: Add new stats
3: Add notify checks.
2019-01-30 21:38:01 -05:00
singularity43 dab2daefe9 (Update) Bonus Tip Notifications
Attach amount to the notification. (per request).
2019-01-25 23:03:08 -05:00
singularity43 c39f0dfc10 (Update) Forum Addon / (Update) User History
Fix the last reply pull.

Yes, the form fields don't match but I kept it this way for code clarity (IE: you know update_at needs to be ordered by insertion timeline).
-
Pass forum attribute as  type to Post (which may be extended)
-
As requested by user.
2019-01-24 21:55:16 -05:00
singularity43 5390026bfc Merge branch 'Forums-Addons' of https://github.com/HDInnovations/UNIT3D into Forums-Addons
Need This Done.
2019-01-23 22:51:31 -05:00
singularity43 8421833cf5 (Update) BonusController
New notification support.
2019-01-23 22:02:01 -05:00
singularity43 d7db9fe45b (Update) BonusController
Add support for post tipping.
2019-01-23 15:25:11 -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 87563a2473 (Update) Refator Toastr Notifications 2018-11-12 11:14:41 -05:00
HDVinnie 616c7165c3 (Update) Personl Freeleech PM's
- now sends PM not only when 24 hour personal freeleech bought from BON Store expires but also when it is activated. PM states timestamp of expire with apps timezone.
2018-11-05 13:20:26 -05:00
HDVinnie 85b5633a32 (Update) Automated System Chat Messages 2018-09-29 23:04:15 -04:00
HDVinnie 6dfdb323f5 (Update) BON System
- fix routes
- return proper toastr error
2018-09-17 20:19:41 -04:00
HDVinnie 02ebbc02d0 (Update) BON Gifting
- added gift icon to user profiles when clicked autofill gift_to
username on BON page.
2018-09-17 10:35:36 -04:00
HDVinnie 0a3cc78a72 (Update) BON Gift PM 2018-09-08 20:58:18 -04:00
Laravel Shift 5c1c56d2ca Adopt PSR-2 coding style
The Laravel framework adopts the PSR-2 coding style in version 5.1.
Laravel apps *should* adopt this coding style as well. Read the
[PSR-2 coding style guide][1] for more details and check out [PHPCS][2]
to use as a code formatting tool.

[1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2]: https://github.com/squizlabs/PHP_CodeSniffer
2018-07-18 20:13:14 +00:00
werrpy 843da9b659 (Fix) PM names and links 2018-06-26 20:22:26 -04:00
HDVinnie f47681a3e1 (Update) Bonus (BON) System 2018-06-08 15:02:29 -04:00
HDVinnie 0d392abb32 (Update) Automated Private Messages 2018-05-23 15:31:13 -04:00