Skip to content

Commit

Permalink
retry phpcsfixer
Browse files Browse the repository at this point in the history
  • Loading branch information
stancl committed May 4, 2021
1 parent b4b8cf8 commit 1b1eca8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- 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
run: composer global require friendsofphp/php-cs-fixer
- name: Run php-cs-fixer
Expand Down
14 changes: 9 additions & 5 deletions .php_cs.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => ['=>' => null]
'operators' => [
'=>' => null,
'|' => 'no_space',
]
],
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'no_superfluous_phpdoc_tags' => true,
'blank_line_before_statement' => [
'statements' => ['return']
],
Expand Down Expand Up @@ -94,7 +98,7 @@
'phpdoc_scalar' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_to_comment' => true,
'phpdoc_to_comment' => false,
'phpdoc_trim' => true,
'phpdoc_types' => true,
'phpdoc_var_without_name' => true,
Expand All @@ -120,9 +124,9 @@
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
'elements' => ['method', 'property']
],
// 'visibility_required' => [
// 'elements' => ['method', 'property']
// ],
'whitespace_after_comma_in_array' => true,
];

Expand Down

0 comments on commit 1b1eca8

Please sign in to comment.