Skip to content

Instantly share code, notes, and snippets.

@FabianSchmick
Created July 16, 2018 09:44
Show Gist options
  • Save FabianSchmick/c25e62cdacaf71095d14bd55c927c8e0 to your computer and use it in GitHub Desktop.
Save FabianSchmick/c25e62cdacaf71095d14bd55c927c8e0 to your computer and use it in GitHub Desktop.
PHP-CS-Fixer config
<?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)
;
@FabianSchmick
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment