We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2af97f4 + 59f3dc2 commit 4d710adCopy full SHA for 4d710ad
.gitignore
@@ -14,7 +14,7 @@
14
15
# PHP-CS-Fixer
16
/.php-cs-fixer.php
17
-/.php-cs-fixer.cache*
+/.php-cs-fixer.cache
18
19
# Psalm
20
/.psalm/cache
.php-cs-fixer.dist.php
@@ -335,10 +335,6 @@
335
'whitespace_after_comma_in_array' => true,
336
]);
337
338
-$branch = @trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'));
339
-
340
-if (!empty($branch)) {
341
- $config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache.' . $branch);
342
-}
+$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . sha1(@trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'))));
343
344
return $config;
0 commit comments