Skip to content

Commit

Permalink
Update and rename .php_cs.dist to .php_cs.dist.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach authored Jul 16, 2021
1 parent 4b85962 commit 065f191
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .php_cs.dist → .php_cs.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
->ignoreDotFiles(true)
->ignoreVCS(true);

return PhpCsFixer\Config::create()
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'not_operator_with_successor_space' => true,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => true,
'phpdoc_scalar' => true,
'unary_operator_spaces' => true,
'binary_operator_spaces' => true,
Expand All @@ -28,7 +28,7 @@
'phpdoc_var_without_name' => true,
'class_attributes_separation' => [
'elements' => [
'method',
'method' => 'one',
],
],
'method_argument_space' => [
Expand Down

0 comments on commit 065f191

Please sign in to comment.