mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2024-11-30 04:29:10 +01:00
21 lines
503 B
PHP
21 lines
503 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__.'/src')
|
|
->ignoreDotFiles(true)
|
|
->ignoreVCS(true)
|
|
->files()
|
|
->name('*.php');
|
|
|
|
return (new PhpCsFixer\Config())
|
|
->setFinder($finder)
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'binary_operator_spaces' => true,
|
|
'no_useless_else' => true,
|
|
'no_useless_return' => false,
|
|
'ordered_imports' => true,
|
|
'phpdoc_to_comment' => false,
|
|
]);
|