Skip to content

Commit

Permalink
disallow formatting rule on classes with empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosh committed Sep 27, 2023
1 parent f39d9cb commit 6724f41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
'phpdoc_align' => ['align' => 'left'],
'phpdoc_to_comment' => false,
'concat_space' => ['spacing' => 'one'],
'static_lambda' => true
'static_lambda' => true,
'single_line_empty_body' => false
])->setFinder($finder);
2 changes: 1 addition & 1 deletion bin/php-cs-fixer
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

docker run --rm -v $(pwd):/app -w=/app php:8.1.0 vendor/bin/php-cs-fixer fix src --allow-risky=yes --format=checkstyle "$@"
docker run --rm -v $(pwd):/app -w=/app php:8.1.0 vendor/bin/php-cs-fixer fix src -vvv --allow-risky=yes --format=checkstyle "$@"

0 comments on commit 6724f41

Please sign in to comment.