mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 09:54:17 +02:00
fmt, typings, typos
This commit is contained in:
parent
eb997b5ba2
commit
7de4c35ab4
34 changed files with 644 additions and 1048 deletions
22
.php-cs-fixer.dist.php
Normal file
22
.php-cs-fixer.dist.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->exclude('vendor')
|
||||
->in(__DIR__);
|
||||
|
||||
|
||||
$config = new PhpCsFixer\Config();
|
||||
return $config->setRules([
|
||||
'@PSR2' => true,
|
||||
'@Symfony' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'strict_param' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
|
||||
'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