Skip to content

Commit

Permalink
Fix: Configure finder for friendsofphp/php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed May 22, 2022
1 parent 47cfc40 commit 3fa2829
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:3.4.0
with:
args: --format=txt --diff --dry-run --using-cache=no --verbose .
args: --format=txt --diff --dry-run --using-cache=no --verbose

phpstan:
name: PHPStan
Expand Down
1 change: 1 addition & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('tests/TestCase.php');

$config = new PhpCsFixer\Config();
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ test: vendor
.PHONY: test

fmt: vendor
vendor/bin/php-cs-fixer fix -v --using-cache=no .
vendor/bin/php-cs-fixer fix -v --using-cache=no
.PHONY: fmt

fmtcheck: vendor
vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no .
vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no
.PHONY: fmtcheck

phpdoc: vendor/bin/phpdoc
Expand Down

0 comments on commit 3fa2829

Please sign in to comment.