Обновил php-cs-fixer

This commit is contained in:
2022-08-15 12:47:09 +03:00
parent c8da8fa23f
commit 2c4ca426fd
6 changed files with 13 additions and 848 deletions

22
.php-cs-fixer.php Normal file
View File

@ -0,0 +1,22 @@
<?php
/* vim: set ft=php: */
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/app')
->in(__DIR__.'/bundle')
;
return (new PhpCsFixer\Config())
->setFinder($finder)
->setRules([
'@Symfony' => true,
'@PHP73Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'semicolon_after_instruction' => false,
'yoda_style' => false,
])
;