Last active
June 30, 2022 19:58
-
-
Save jtojnar/ad5714cc0e2ac5375c77961e241cc2b2 to your computer and use it in GitHub Desktop.
basic php-cs-fixer config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->exclude('squizlabsD') | |
->in(__DIR__); | |
$rules = [ | |
'@PSR2' => true, | |
// buggy, duplicates existing comment sometimes | |
'no_break_comment' => false, | |
// 'array_syntax' => true, | |
]; | |
$config = new PhpCsFixer\Config(); | |
return $config | |
->setRules($rules) | |
->setFinder($finder); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment