psalm-plugin-symfony/.php-cs-fixer.dist.php

21 lines
503 B
PHP
Raw Normal View History

<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->ignoreDotFiles(true)
->ignoreVCS(true)
->files()
->name('*.php');
2021-05-10 10:14:54 +02:00
return (new PhpCsFixer\Config())
->setFinder($finder)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
2021-05-10 10:14:54 +02:00
'binary_operator_spaces' => true,
'no_useless_else' => true,
'no_useless_return' => false,
'ordered_imports' => true,
'phpdoc_to_comment' => false,
]);