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.
1 parent 5bb4a31 commit 59f3dc2Copy full SHA for 59f3dc2
.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
@@ -341,10 +341,6 @@
341
'whitespace_after_comma_in_array' => true,
342
]);
343
344
-$branch = @trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'));
345
-
346
-if (!empty($branch)) {
347
- $config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache.' . $branch);
348
-}
+$config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache/' . sha1(@trim((string) @shell_exec('git rev-parse --abbrev-ref HEAD'))));
349
350
return $config;
0 commit comments