mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-19 09:26:45 +00:00
Enforce single-line PhpDoc for properties where possible
This commit is contained in:
parent
dc07ac33d3
commit
986b4e0651
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user