Roardom
58c86a5251
refactor: use morph relations for auditable trait
2025-09-10 00:43:44 +00:00
Roardom
2ab932ae9e
fix: phpstan arrayFilter.same
...
$data is created from looping over an original array, and adding arrays always containing the keys old and new. Because the conents of the array passed to array_filter is always either empty, or contains one or more arrays with keys `old` and `new`, there will never be any elements filtered.
2025-03-02 06:58:35 +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
bf715ed49f
fix: phpstan level 7 errors in Auditable trait
2024-01-07 17:13:20 +00:00
HDVinnie
3f03214e39
PHP Style Change (Laravel Pint CI)
2023-11-07 23:54:38 +00:00
Roardom
87724ba303
fix: add types to Auditable trait
2023-08-25 11:25:44 +00:00
Roardom
9d4789ba91
refactor: require whitespace before statements
2023-07-07 00:27:13 +00:00
HDVinnie
f4ebee885c
update: lint
2023-02-03 22:23:00 -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
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
Shift
be2d37ed6e
Use Illuminate\Support\Carbon
2022-05-31 22:05:34 +00:00
HDVinnie
88e811386d
update: preslash helpers
2022-05-26 22:03:18 -04:00
HDVinnie
9abcb90533
refactor: adopt if helpers
...
- Collapse multiline if statements by adopting Laravel’s abort_if and throw_if helpers.
2022-05-26 21:56:23 -04:00
HDVinnie
36ed88db0d
update: auditable trait
2022-02-28 05:01:28 -05:00
HDVinnie
f9d2336e4f
chore: lint
2022-01-23 17:58:09 -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
StyleCI Bot
06bcb20688
Apply fixes from StyleCI
2022-01-08 18:56:52 +00: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
77e372de80
refactor: audit trait
2021-01-02 12:50:08 -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
b65d327aac
refactor: harden error handeling
2020-12-02 21:24:03 -05: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
46b40a8e0e
refactor: imports
2020-07-22 16:39:04 -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
f69ecec866
refactor: code quality changes
2020-06-02 18:37:19 -04:00
HDVinnie
4afdfbdade
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-04-19 05:31:13 +00: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
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
c8f2390c4d
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2020-01-06 15:38:43 +00:00
HDVinnie
565fd29d02
(Update) Auditing 🚀
2019-11-14 12:08:19 -05:00
HDVinnie
c85adc3819
(Update) Auditing 🚀
...
- lets filter out keys we discarded and then make sure the data is not empty/null before storing in the DB. This only applies to UPDATE event as it obvious CREATE and DELETE cannot be empty
2019-11-14 12:01:41 -05:00
HDVinnie
2b080b1160
(Fix) Audit Trait 🐛
...
- fix operator.
2019-11-14 11:15:04 -05:00
HDVinnie
3bd982e660
(Update) Audits Trait 🚀
...
- stop logging system actions
2019-11-14 10:12:24 -05:00
HDVinnie
ac1d54fa6d
(Update) Audit System 🚀
2019-11-06 09:12:51 -05:00
HDVinnie
575e8dda5e
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2019-11-06 11:44:34 +00:00
HDVinnie
e0379e5b95
(Add) Audit System 🆕
...
- filtering to follow
2019-11-06 06:42:17 -05:00