diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 1cb5dd2f7ce..3bef813c9ee 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -14,11 +14,14 @@ $config = new Config(); $config ->setParallelConfig(ParallelConfigFactory::detect()) ->getFinder() - ->exclude('config') - ->exclude('3rdparty') - ->exclude('build/stubs') - ->exclude('composer') - ->in(__DIR__); + ->in(__DIR__) + ->exclude([ + '3rdparty', + 'build/stubs', + 'composer', + ]) +; + $ignoredEntries = shell_exec('git status --porcelain --ignored ' . escapeshellarg(__DIR__)); $ignoredEntries = explode("\n", $ignoredEntries);