Skip to content

Commit 2fb7b23

Browse files
committed
build: switch to Laravel Pint
1 parent ed0b9a7 commit 2fb7b23

File tree

4 files changed

+11
-32
lines changed

4 files changed

+11
-32
lines changed

.github/workflows/codestyle.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
name: Check code style
22

3-
on: [ push, pull_request ]
3+
on:
4+
pull_request:
5+
push:
6+
paths:
7+
- '**.php'
48

59
jobs:
610
php-style:
711
runs-on: ubuntu-latest
812

913
steps:
1014
- name: Checkout code
11-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1216

1317
- name: Check style
14-
uses: docker://oskarstark/php-cs-fixer-ga
18+
uses: aglipanci/laravel-pint-action@v2
1519
with:
16-
args: -v --dry-run --using-cache=no
20+
testMode: true

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
build
33
composer.lock
44
vendor
5-
.php-cs-fixer.php
6-
.php-cs-fixer.cache
75
phpunit.xml
86
.phpunit.result.cache

.php-cs-fixer.dist.php

-23
This file was deleted.

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"spatie/laravel-package-tools": "^1.15"
2424
},
2525
"require-dev": {
26-
"friendsofphp/php-cs-fixer": "^3.8",
2726
"larastan/larastan": "^2.9",
27+
"laravel/pint": "^1.15",
2828
"orchestra/testbench": "^7.0|^8.0|^9.0",
2929
"phpstan/extension-installer": "^1.1",
3030
"phpstan/phpstan-deprecation-rules": "^1.0",
@@ -37,8 +37,8 @@
3737
},
3838
"scripts": {
3939
"analyse": "vendor/bin/phpstan analyse",
40-
"check-style": "php-cs-fixer fix --dry-run -v",
41-
"fix-style": "php-cs-fixer fix"
40+
"check-style": "pint --test",
41+
"fix-style": "pint"
4242
},
4343
"extra": {
4444
"branch-alias": {

0 commit comments

Comments
 (0)