Skip to content

Commit

Permalink
build: upd cs rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Jan 3, 2021
1 parent ec0de82 commit a24ac96
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP73Migration' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
Expand All @@ -15,12 +16,14 @@ return PhpCsFixer\Config::create()
'list_syntax' => ['syntax' => 'short'],
//'mb_str_functions' => true,
'native_function_invocation' => true,
'native_constant_invocation' => true,
'no_null_property_initialization' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_order' => true,
'strict_comparison' => true,
'combine_nested_dirname' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
Expand Down

0 comments on commit a24ac96

Please sign in to comment.