Improved cs fixer config [skip ci]

This commit is contained in:
James Cole 2025-01-04 07:39:33 +01:00
parent 7eaa0e16b3
commit ea9f635b1a
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ return $config->setRules(
'comment_to_phpdoc' => false, // breaks phpstan lines in combination with PHPStorm.
'type_declaration_spaces' => false,
'cast_spaces' => false,
'single_line_comment_style' => false, // do not overrule single line comment style.
'phpdoc_to_comment' => false, // do not overrule single line comment style, breaks phpstan.
// complex rules
'array_syntax' => ['syntax' => 'short'],

View File

@ -28,7 +28,7 @@ composer update --quiet
rm -f .php-cs-fixer.cache
PHP_CS_FIXER_IGNORE_ENV=true ./vendor/bin/php-cs-fixer fix \
--config $SCRIPT_DIR/php-cs-fixer/.php-cs-fixer.php \
--format=txt \
--format=txt -v \
--allow-risky=yes
EXIT_CODE=$?