davis/.php_cs
2019-10-29 12:00:39 +01:00

23 lines
775 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('var')
;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'ordered_imports' => true, // Order "use" alphabetically
'array_syntax' => ['syntax' => 'short'], // Replace array() by []
'no_useless_return' => true, // Keep return null;
'phpdoc_order' => true, // Clean up the /** php doc */
'linebreak_after_opening_tag' => true,
'no_multiline_whitespace_before_semicolons' => true,
'phpdoc_add_missing_param_annotation' => true,
'single_trait_insert_per_statement' => false
])
->setUsingCache(false)
->setFinder($finder)
;