Skip to content

Commit

Permalink
Set 'ordered_imports' -> 'imports_order' to `[ 'const', 'class', 'fun…
Browse files Browse the repository at this point in the history
…ction' ]`
  • Loading branch information
josephscott committed Jan 20, 2025
1 parent 477b6ac commit e91e745
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

## ??? : ????
- Tests via Github Actions
- Set 'ordered_imports' -> 'imports_order' to `[ 'const', 'class', 'function' ]`

## 0.0.3 : 2024-11-04
- Turn off `native_function_invocation`
Expand Down
5 changes: 4 additions & 1 deletion src/josephscott/phpcsfixer-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ class PHPCSFixer_Config {
'normalize_index_brace' => true,
'not_operator_with_successor_space' => true,
'object_operator_without_whitespace' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'ordered_imports' => [
'imports_order' => [ 'const', 'class', 'function' ],
'sort_algorithm' => 'alpha'
],
'psr_autoloading' => false,
'phpdoc_indent' => true,
'phpdoc_inline_tag_normalizer' => true,
Expand Down

0 comments on commit e91e745

Please sign in to comment.