Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from 21TORR/next
Browse files Browse the repository at this point in the history
Also run PHP CS Fixer in the `tests/` directory
  • Loading branch information
apfelbox authored Sep 17, 2020
2 parents eabca39 + ea3cda5 commit 969cc48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (\is_dir("{$cwd}/src") && (\is_dir("{$cwd}/public") || \is_dir("{$cwd}/web"))
$dirs = [];

// this is a symfony project, so add possible symfony directories
foreach (["app", "config", "public", "src", "web"] as $possibleDir)
foreach (["app", "config", "public", "src", "tests", "web"] as $possibleDir)
{
if (\is_dir("{$cwd}/{$possibleDir}"))
{
Expand All @@ -23,7 +23,7 @@ else

$finder = PhpCsFixer\Finder::create()
->in($dirs)
->exclude(["Migrations", "node_modules", "tests", "var", "vendor", "vendor-bin"])
->exclude(["Migrations", "node_modules", "var", "vendor", "vendor-bin"])
->ignoreUnreadableDirs();

return PhpCsFixer\Config::create()
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.0.2
=====

* (improvement) Also run PHP CS Fixer in the `tests/` directory.


2.0.1
=====

Expand Down

0 comments on commit 969cc48

Please sign in to comment.