mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
stricter cs
This commit is contained in:
parent
309ae17036
commit
d9a843ecd6
54 changed files with 346 additions and 168 deletions
22
.php_cs.dist
22
.php_cs.dist
|
|
@ -1,13 +1,21 @@
|
|||
<?php
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->exclude('vendor')
|
||||
->in(__DIR__);
|
||||
->exclude('vendor')
|
||||
->in(__DIR__);
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
->setRules([
|
||||
'@PSR2' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
->setRules([
|
||||
'@PSR2' => true,
|
||||
'@Symfony' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'strict_param' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
|
||||
])
|
||||
->setFinder($finder);
|
||||
'declare_strict_types' => true,
|
||||
'concat_space' => ['spacing' => 'one'],
|
||||
'ternary_to_null_coalescing' => true,
|
||||
'phpdoc_order' => true,
|
||||
'visibility_required' => true,
|
||||
])
|
||||
->setFinder($finder);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue