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 959514a + 5bb4a31 commit 2af97f4Copy full SHA for 2af97f4
.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,4 +335,10 @@
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
+}
343
344
return $config;
0 commit comments