Skip to content

Commit 9a6e83a

Browse files
committed
minor symfony#24139 [Fabbot] Do not run php-cs-fixer if there are no change in src/ (lyrixx)
This PR was merged into the 2.7 branch. Discussion ---------- [Fabbot] Do not run php-cs-fixer if there are no change in src/ | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | kind of | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#24136 (comment) | License | MIT | Doc PR | - Commits ------- 3eb79e5 [Fabbot] Do not run php-cs-fixer if there are no change in src/
2 parents b6a29a2 + 3eb79e5 commit 9a6e83a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.php_cs.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?php
22

3+
if (!file_exists(__DIR__.'/src')) {
4+
exit(0);
5+
}
6+
37
return PhpCsFixer\Config::create()
48
->setRules(array(
59
'@Symfony' => true,

0 commit comments

Comments
 (0)