Skip to content

Commit

Permalink
Sort methods alphabetically in types
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Feb 22, 2024
1 parent dc4a73c commit 4849b2d
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 202 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

$finder = Finder::create()->append([
__FILE__,
__DIR__ . '/src/types.php',
__DIR__ . '/src/TypeVisitor.php',
]);

Expand Down
5 changes: 4 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@

$finder = Finder::create()
->in(__DIR__ . '/src')
->notName(['TypeVisitor.php'])
->notName([
'TypeVisitor.php',
'types.php',
])
->append([__FILE__])
->append(Finder::create()->in(__DIR__ . '/tests'));

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"scripts": {
"fixcs": [
"vendor/bin/php-cs-fixer fix --verbose",
"vendor/bin/php-cs-fixer fix --config=.TypeVisitor.php-cs-fixer.dist.php --verbose"
"vendor/bin/php-cs-fixer fix --config=.alpha-sort.php-cs-fixer.dist.php --verbose"
],
"pre-command-run": "mkdir -p var",
"psalm": "psalm --show-info --no-diff",
Expand Down
Loading

0 comments on commit 4849b2d

Please sign in to comment.