Skip to content

Commit 72cb9f4

Browse files
committed
Fix php cs fixer.
1 parent 1f045ec commit 72cb9f4

File tree

3 files changed

+24
-59
lines changed

3 files changed

+24
-59
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,13 @@ on: [push]
55
jobs:
66
style:
77
runs-on: ubuntu-latest
8-
98
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v1
12-
13-
- name: Fix style
14-
uses: docker://oskarstark/php-cs-fixer-ga
15-
with:
16-
args: --config=.php_cs --allow-risky=yes
17-
18-
- name: Extract branch name
19-
shell: bash
20-
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
21-
id: extract_branch
22-
23-
- name: Commit changes
24-
uses: stefanzweifel/[email protected]
25-
with:
26-
commit_message: Fix styling
27-
branch: ${{ steps.extract_branch.outputs.branch }}
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9+
- name: Git checkout
10+
uses: actions/checkout@v2
11+
- name: Install Dependencies
12+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
13+
- name: normalize php
14+
run: php vendor/bin/phpcbf
15+
- uses: stefanzweifel/[email protected]
16+
with:
17+
commit_message: Fix formatting with phpcbf

.php_cs

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

phpcs.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="joeriabbo">
3+
4+
<file>src</file>
5+
<file>tests</file>
6+
7+
<rule ref="PSR1" />
8+
<rule ref="PSR2" />
9+
<rule ref="PSR12" />
10+
11+
<rule ref="Generic.Files.LineLength">
12+
<severity>0</severity>
13+
</rule>
14+
15+
</ruleset>

0 commit comments

Comments
 (0)