Skip to content

Instantly share code, notes, and snippets.

@JellyBool
Last active August 1, 2019 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JellyBool/9ea3449a0fd07ddf321ff79cc0129ee6 to your computer and use it in GitHub Desktop.
Save JellyBool/9ea3449a0fd07ddf321ff79cc0129ee6 to your computer and use it in GitHub Desktop.
php-cs-fixer
<?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