Add additional rules
This commit is contained in:
27
.php_cs
27
.php_cs
@@ -10,12 +10,31 @@ return PhpCsFixer\Config::create()
|
|||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setRules(
|
->setRules(
|
||||||
[
|
[
|
||||||
'@PSR2' => true,
|
'@PSR2' => true,
|
||||||
'strict_param' => true,
|
'strict_param' => true,
|
||||||
'array_syntax' => ['syntax' => 'short'],
|
'no_php4_constructor' => true,
|
||||||
'binary_operator_spaces' => [
|
'no_extra_blank_lines' => true,
|
||||||
|
'no_superfluous_elseif' => true,
|
||||||
|
'single_line_comment_style' => false,
|
||||||
|
'phpdoc_summary' => false,
|
||||||
|
'phpdoc_no_empty_return' => false,
|
||||||
|
'simple_to_complex_string_variable' => true,
|
||||||
|
'array_syntax' => [
|
||||||
|
'syntax' => 'short',
|
||||||
|
],
|
||||||
|
'binary_operator_spaces' => [
|
||||||
'align_double_arrow' => true,
|
'align_double_arrow' => true,
|
||||||
],
|
],
|
||||||
|
'blank_line_before_statement' => [
|
||||||
|
'statements' => [
|
||||||
|
'declare',
|
||||||
|
'if',
|
||||||
|
'for',
|
||||||
|
'return',
|
||||||
|
'throw',
|
||||||
|
'try',
|
||||||
|
],
|
||||||
|
],
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
->setFinder($finder);
|
->setFinder($finder);
|
||||||
|
|||||||
Reference in New Issue
Block a user