Skip to content

Commit

Permalink
Move PHP-CS-Fixer cache file out of the project to avoid IDE annoyance
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Oct 21, 2018
1 parent 2c981e4 commit 7b362bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
/analysis
/vendor/
/phpunit.xml
/.php_cs.cache

## IDE support
*.buildpath
Expand Down
1 change: 1 addition & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $finder = PhpCsFixer\Finder::create()
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setFinder($finder)
->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer' . preg_replace('~\W~', '-', __DIR__))
->setRules([
'align_multiline_comment' => true,
'array_syntax' => ['syntax' => 'short'],
Expand Down

0 comments on commit 7b362bd

Please sign in to comment.