From 1b1eca87c828b0966996025426dd416a2323972d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 4 May 2021 16:30:37 +0200 Subject: [PATCH] retry phpcsfixer --- .github/workflows/ci.yml | 6 ------ .php_cs.php | 14 +++++++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05aaf2f..07ec0cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.php_cs.php b/.php_cs.php index c7834ee..4d16d44 100644 --- a/.php_cs.php +++ b/.php_cs.php @@ -7,10 +7,14 @@ $rules = [ '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'] ], @@ -94,7 +98,7 @@ $rules = [ '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, @@ -120,9 +124,9 @@ $rules = [ '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, ];