Move PHP-CS-Fixer cache file out of the project to avoid IDE annoyance
This commit is contained in:
parent
2c981e47a1
commit
7b362bd9de
|
@ -2,7 +2,6 @@
|
|||
/analysis
|
||||
/vendor/
|
||||
/phpunit.xml
|
||||
/.php_cs.cache
|
||||
|
||||
## IDE support
|
||||
*.buildpath
|
||||
|
|
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue