From ea3cda503acf80dad8688f88a3562957abf8c778 Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Thu, 17 Sep 2020 14:55:55 +0200 Subject: [PATCH] Also run PHP CS Fixer in the `tests/` directory --- .php_cs.dist | 4 ++-- CHANGELOG.md | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.php_cs.dist b/.php_cs.dist index c6e9aa0..129e93a 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -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}")) { @@ -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() diff --git a/CHANGELOG.md b/CHANGELOG.md index 35e5973..cb1d140 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +2.0.2 +===== + +* (improvement) Also run PHP CS Fixer in the `tests/` directory. + + 2.0.1 =====