Formatting

This commit is contained in:
Nabeel Shahzad
2019-05-12 17:37:22 -05:00
parent 8d6621e2a8
commit d65b74d7a0
2 changed files with 39 additions and 47 deletions

53
.php_cs
View File

@@ -8,33 +8,30 @@ return PhpCsFixer\Config::create()
->setHideProgress(true)
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules(
[
'@PSR2' => true,
'strict_param' => true,
'no_php4_constructor' => true,
'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',
->setRules([
'@PSR2' => true,
'strict_param' => true,
'no_php4_constructor' => true,
'no_extra_blank_lines' => true,
'no_superfluous_elseif' => true,
'single_line_comment_style' => false,
'simple_to_complex_string_variable' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
],
/*
'blank_line_before_statement' => [
'statements' => [
'declare',
'for',
'return',
'throw',
'try',
],
'binary_operator_spaces' => [
'align_double_arrow' => true,
],
'blank_line_before_statement' => [
'statements' => [
'declare',
'if',
'for',
'return',
'throw',
'try',
],
],
]
)
],
*/
])
->setFinder($finder);