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
|
/analysis
|
||||||
/vendor/
|
/vendor/
|
||||||
/phpunit.xml
|
/phpunit.xml
|
||||||
/.php_cs.cache
|
|
||||||
|
|
||||||
## IDE support
|
## IDE support
|
||||||
*.buildpath
|
*.buildpath
|
||||||
|
|
|
@ -9,6 +9,7 @@ $finder = PhpCsFixer\Finder::create()
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setFinder($finder)
|
->setFinder($finder)
|
||||||
|
->setCacheFile(sys_get_temp_dir() . '/php-cs-fixer' . preg_replace('~\W~', '-', __DIR__))
|
||||||
->setRules([
|
->setRules([
|
||||||
'align_multiline_comment' => true,
|
'align_multiline_comment' => true,
|
||||||
'array_syntax' => ['syntax' => 'short'],
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
|
|
Loading…
Reference in New Issue