Created
July 16, 2018 09:44
-
-
Save FabianSchmick/c25e62cdacaf71095d14bd55c927c8e0 to your computer and use it in GitHub Desktop.
PHP-CS-Fixer config
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 | |
$finder = PhpCsFixer\Finder::create() | |
->in(__DIR__.'/src') | |
; | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'@Symfony' => true, | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'combine_consecutive_issets' => true, | |
'combine_consecutive_unsets' => true, | |
'compact_nullable_typehint' => true, | |
'method_chaining_indentation' => true, | |
'no_useless_else' => true, | |
'object_operator_without_whitespace' => true, | |
'ordered_class_elements' => true, | |
'ordered_imports' => true, | |
'yoda_style' => false | |
]) | |
->setFinder($finder) | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/FriendsOfPHP/PHP-CS-Fixer