Skip to content

Commit bd6e048

Browse files
committed
Test pint workflow
1 parent f0eee03 commit bd6e048

3 files changed

Lines changed: 25 additions & 22 deletions

File tree

.github/workflows/lint.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/pint.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Fix PHP Styling
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
lint-code-styling:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Fix styling issues
15+
uses: aglipanci/laravel-pint-action@v2
16+
with:
17+
testMode: true
18+
verboseMode: true
19+
pintVersion: 1.22.1
20+
21+
- name: Commit changes
22+
uses: stefanzweifel/git-auto-commit-action@v4
23+
with:
24+
commit_message: Fix styling

src/WithPagination.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ trait WithPagination
88

99
public function withPagination($key, $paginator): array
1010
{
11-
return [
11+
return [
1212
$key => $paginator->items(),
1313
'links' => $paginator->render(),
1414
];

0 commit comments

Comments
 (0)