mirror of
https://github.com/archtechx/gloss.git
synced 2025-12-12 19:24:03 +00:00
retry phpcsfixer
This commit is contained in:
parent
b4b8cf86a9
commit
1b1eca87c8
2 changed files with 9 additions and 11 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -43,12 +43,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Setup PHP
|
|
||||||
uses: shivammathur/setup-php@v2
|
|
||||||
with:
|
|
||||||
php-version: '8.0'
|
|
||||||
env:
|
|
||||||
update: true
|
|
||||||
- name: Install php-cs-fixer
|
- name: Install php-cs-fixer
|
||||||
run: composer global require friendsofphp/php-cs-fixer
|
run: composer global require friendsofphp/php-cs-fixer
|
||||||
- name: Run php-cs-fixer
|
- name: Run php-cs-fixer
|
||||||
|
|
|
||||||
14
.php_cs.php
14
.php_cs.php
|
|
@ -7,10 +7,14 @@ $rules = [
|
||||||
'array_syntax' => ['syntax' => 'short'],
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
'binary_operator_spaces' => [
|
'binary_operator_spaces' => [
|
||||||
'default' => 'single_space',
|
'default' => 'single_space',
|
||||||
'operators' => ['=>' => null]
|
'operators' => [
|
||||||
|
'=>' => null,
|
||||||
|
'|' => 'no_space',
|
||||||
|
]
|
||||||
],
|
],
|
||||||
'blank_line_after_namespace' => true,
|
'blank_line_after_namespace' => true,
|
||||||
'blank_line_after_opening_tag' => true,
|
'blank_line_after_opening_tag' => true,
|
||||||
|
'no_superfluous_phpdoc_tags' => true,
|
||||||
'blank_line_before_statement' => [
|
'blank_line_before_statement' => [
|
||||||
'statements' => ['return']
|
'statements' => ['return']
|
||||||
],
|
],
|
||||||
|
|
@ -94,7 +98,7 @@ $rules = [
|
||||||
'phpdoc_scalar' => true,
|
'phpdoc_scalar' => true,
|
||||||
'phpdoc_single_line_var_spacing' => true,
|
'phpdoc_single_line_var_spacing' => true,
|
||||||
'phpdoc_summary' => true,
|
'phpdoc_summary' => true,
|
||||||
'phpdoc_to_comment' => true,
|
'phpdoc_to_comment' => false,
|
||||||
'phpdoc_trim' => true,
|
'phpdoc_trim' => true,
|
||||||
'phpdoc_types' => true,
|
'phpdoc_types' => true,
|
||||||
'phpdoc_var_without_name' => true,
|
'phpdoc_var_without_name' => true,
|
||||||
|
|
@ -120,9 +124,9 @@ $rules = [
|
||||||
'trailing_comma_in_multiline_array' => true,
|
'trailing_comma_in_multiline_array' => true,
|
||||||
'trim_array_spaces' => true,
|
'trim_array_spaces' => true,
|
||||||
'unary_operator_spaces' => true,
|
'unary_operator_spaces' => true,
|
||||||
'visibility_required' => [
|
// 'visibility_required' => [
|
||||||
'elements' => ['method', 'property']
|
// 'elements' => ['method', 'property']
|
||||||
],
|
// ],
|
||||||
'whitespace_after_comma_in_array' => true,
|
'whitespace_after_comma_in_array' => true,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue