Last active
August 1, 2019 07:24
-
-
Save JellyBool/9ea3449a0fd07ddf321ff79cc0129ee6 to your computer and use it in GitHub Desktop.
php-cs-fixer
This file contains hidden or 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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules([ | |
'align_multiline_comment' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'blank_line_before_statement' => true, | |
'list_syntax' => ['syntax' => 'long'], | |
'no_short_echo_tag' => true, | |
'no_unused_imports' => true, | |
'ordered_imports' => ['sortAlgorithm' => 'length'] | |
]) | |
->setFinder( | |
PhpCsFixer\Finder::create() | |
->exclude('tests/') | |
->in(__DIR__) | |
) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment