Skip to content

Commit 809d388

Browse files
committed
Pint fixes
1 parent b6f91d0 commit 809d388

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ tests export-ignore
22
.gitattributes export-ignore
33
.github export-ignore
44
.gitignore export-ignore
5+
.pint.json export-ignore
56
.scrutinizer.yml export-ignore
67
.styleci.yml export-ignore
78
.travis.yml export-ignore

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717

1818
- name: Fix PHP code style issues
1919
uses: aglipanci/laravel-pint-action@v2
20+
with:
21+
configPath: ".pint.json"
22+
onlyDiff: "origin/master"
2023

2124
- name: Commit changes
2225
uses: stefanzweifel/git-auto-commit-action@v5

.pint.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"preset": "laravel",
3+
"verbose": false,
4+
"test": false,
5+
"dry": false,
6+
"ignore": [
7+
"vendor"
8+
],
9+
"remove": [],
10+
"config": {
11+
"braces": {
12+
"allow_single_line_closure": true
13+
}
14+
}
15+
}

src/Audit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function user()
5252
return $this->morphTo(__FUNCTION__, $morphPrefix.'_type', $morphPrefix.'_id');
5353
}
5454

55+
5556
/**
5657
* {@inheritdoc}
5758
*/

0 commit comments

Comments
 (0)