Enforce single-line PhpDoc for properties where possible

This commit is contained in:
Dylan K. Taylor 2021-10-21 20:32:37 +01:00
parent dc07ac33d3
commit 986b4e0651
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 7 additions and 2 deletions

View File

@ -272,10 +272,10 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup PHP and tools - name: Setup PHP and tools
uses: shivammathur/setup-php@2.12.0 uses: shivammathur/setup-php@2.15.0
with: with:
php-version: 8.0 php-version: 8.0
tools: php-cs-fixer tools: php-cs-fixer:3.2
- name: Run PHP-CS-Fixer - name: Run PHP-CS-Fixer
run: php-cs-fixer fix --dry-run --diff run: php-cs-fixer fix --dry-run --diff

View File

@ -62,6 +62,11 @@ return (new PhpCsFixer\Config)
], ],
'sort_algorithm' => 'alpha' 'sort_algorithm' => 'alpha'
], ],
'phpdoc_line_span' => [
'property' => 'single',
'method' => null,
'const' => null
],
'phpdoc_trim' => true, 'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true, 'phpdoc_trim_consecutive_blank_line_separation' => true,
'single_import_per_statement' => true, 'single_import_per_statement' => true,