Skip to content

Commit 245c9af

Browse files
committed
Code Style Action and updated .php_cs script
1 parent 2cd3e0a commit 245c9af

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/code-style.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on: push
2+
name: Code Style
3+
jobs:
4+
php-cs-fixer:
5+
runs-on: ubuntu-latest
6+
container:
7+
image: kirschbaumdevelopment/laravel-test-runner:7.3.0
8+
9+
steps:
10+
- uses: actions/checkout@v1
11+
with:
12+
fetch-depth: 1
13+
14+
- name: Install PHP CS Fixer
15+
run: |
16+
composer global require friendsofphp/php-cs-fixer
17+
18+
- name: Check Coding Standards
19+
run: php-cs-fixer fix --dry-run
20+

.php_cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<?php
22

33
$finder = PhpCsFixer\Finder::create()
4-
->exclude('bootstrap/cache')
5-
->exclude('storage')
6-
->exclude('vendor')
7-
->exclude('bower_components')
84
->exclude('node_modules')
5+
->exclude('vendor')
96
->in(__DIR__)
107
->name('*.php')
118
->notName('*.blade.php')

0 commit comments

Comments
 (0)