Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed Jun 2, 2023
2 parents f981ad0 + f94fe42 commit 9200eee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
->ignoreDotFiles(true)
->ignoreVCS(true);

if (! is_dir($dir = __DIR__.'/build') && ! mkdir($dir) && ! is_dir($dir)) {
throw new RuntimeException(sprintf('Directory "%s" was not created', $dir));
if (! is_dir($dir = __DIR__.'/build/php-cs-fixer') && ! mkdir($dir, 0777, true) && ! is_dir($dir)) {
throw new RuntimeException("The directory [$dir] was not created.");
}

return (new Config())
->setFinder($finder)
->setRiskyAllowed(true)
->setUsingCache(false)
->setCacheFile(__DIR__.'/build/.php-cs-fixer.cache')
->setCacheFile(__DIR__.'/build/php-cs-fixer/.php-cs-fixer.cache')
->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers())
// ->registerCustomFixers(new PedroTroller\CS\Fixer\Fixers())
->setRules([
Expand Down

0 comments on commit 9200eee

Please sign in to comment.