Roardom
868ad35aa4
refactor: swap magic RedirectResponse withX('Y') to with('X', 'Y')
...
Allows ctrl+clicking to access the underlying function unlike the previous magic implementation. Probably also negligibly faster.
Swapped all instances of `>withSuccess(` -> `>with('success', `, `>withWarning(` -> `>with('warning', `, and `>withInfo(` -> `>with('info', ` with ide's find and replace.
2025-01-21 16:05:11 +00:00
Roardom
ee55abcd3b
refactor: use relational upserts
...
New feature added to laravel 11.18-11.19 that results in cleaner code.
2024-08-10 09:43:58 +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
Jay Sizzla
6894cca148
Allow polls to expire after a certain date
2024-07-24 16:23:06 +02:00
Roardom
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
HDVinnie
221b9e4dee
remove: joypixel emojis
2024-02-22 17:44:53 -05:00
Roardom
8c557481ed
refactor: use route model binding for staff polls
2023-07-07 03:18:13 +00:00
Roardom
37601306e3
refactor: polls
...
Simplify the POSTed values so that they align with mass assignment.
2023-07-07 00:27:19 +00:00
Roardom
9d4789ba91
refactor: require whitespace before statements
2023-07-07 00:27:13 +00:00
Roardom
738bc7f2d1
refactor: single line delete queries
2023-07-07 00:26:17 +00:00
Roardom
d2e36c368e
refactor: reduce temporary variables passed to views
2023-06-19 23:25:40 +00:00
Roardom
b5493c5642
refactor: swap where('id', '=', ) for find()
2023-06-19 23:18:40 +00:00
HDVinnie
f4ebee885c
update: lint
2023-02-03 22:23:00 -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
HDVinnie
594b7864d9
refactor: adopt new helpers in laravel 9
2022-03-06 17:20:05 -05:00
HDVinnie
bdd63aa816
update: controllers
2022-02-28 05:06:55 -05:00
StyleCI Bot
930fd18ce2
Apply fixes from StyleCI
2022-02-04 02:27:45 +00:00
HDVinnie
6c41e418cd
Merge pull request #2100 from innocente205/patch-2
...
(Update) PollController
2022-02-03 21:27:33 -05:00
innocente205
23bb4d7bbc
Update PollController.php
...
Delete poll options when poll is deleted.
2022-02-04 09:16:53 +07:00
HDVinnie
d3abd28925
update: type hints
2022-01-08 15:35:53 -05:00
HDVinnie
77ec35bea5
chore: apply the laravel code style linter
2022-01-08 00:03:12 -05:00
HDVinnie
97394c062f
chore: adopt type hints
2022-01-07 23:35:33 -05: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
b5b404c6cc
refactor: staff poll controller
2020-12-30 12:18:50 -05:00
HDVinnie
8fd7d4b9a3
cleanup: poll controller
2020-12-28 23:44:52 -05:00
HDVinnie
467d31f10a
refactor: constructor promotions
2020-12-17 23:25:50 -05:00
HDVinnie
519a25bb19
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-12-03 05:16:37 +00:00
HDVinnie
601e4c1f90
update: general cleanup
2020-12-03 00:16:23 -05:00
HDVinnie
5aac6a8f04
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-07-22 20:57:33 +00: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
e7ccde0190
refactor: rename property to match type
2020-07-22 14:50:41 -04:00
HDVinnie
f69ecec866
refactor: code quality changes
2020-06-02 18:37:19 -04:00
HDVinnie
8c8e2865b2
refactor: camel case function naming to underscore
2020-04-24 11:04:24 -04:00
HDVinnie
4afdfbdade
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-04-19 05:31:13 +00:00
HDVinnie
ea2a12be15
refactor: closure to arrow function
2020-04-14 20:38:48 -04:00
HDVinnie
408bfafc3e
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-03-05 15:47:30 +00:00
HDVinnie
4b9c006a05
chore: phpdoc blocks cleanup
2020-03-05 10:46:14 -05:00
HDVinnie
605c337204
refactor: encapsed strings to sprintf
2020-02-17 13:52:20 -05:00
gyakkun
957ac57b4b
remove: Purge ip_checking in models and views of poll.
2020-02-15 04:19:25 +08:00
Gyakkun
ae8014a96a
Merge branch 'development' into patch_impl-poll-edit-delete
2020-02-14 12:53:20 +08:00
HDVinnie
6eaeb07fc1
refactor: simplify ifelse to ternary
2020-02-13 17:30:47 -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
gyakkun
089fad5ac4
misc: Remove useless comment.
...
Make CI happy.
2020-02-12 19:18:22 +00:00
gyakkun
6ede4d0287
fix: Flag ip_check and multi_choice in edit polls.
2020-02-12 19:17:17 +00:00
HDVinnie
c1f47c42ea
chore: styleci
2020-02-12 13:14:44 -05:00