Skip to content

Commit

Permalink
improve php-cs-fixer config
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadam committed May 14, 2024
1 parent 46e5fdf commit 0e45641
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
->setFinder($finder)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'long'],
'array_syntax' => ['syntax' => 'short'],
'function_typehint_space' => true,
'no_unused_imports' => true,
'no_empty_comment' => true,
Expand All @@ -21,5 +21,9 @@
'return_type_declaration' => true,
'ternary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'braces_position' => [
'functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'same_line',
],
])
;

0 comments on commit 0e45641

Please sign in to comment.