Skip to content

Commit

Permalink
Fix CS-Fixer settings #10
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Dec 6, 2020
1 parent abe2e59 commit 5ac750d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .cs.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@
// custom rules
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'], // psr-5
'phpdoc_to_comment' => false,
'no_superfluous_phpdoc_tags' => false,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'cast_spaces' => ['space' => 'none'],
'concat_space' => ['spacing' => 'one'],
'compact_nullable_typehint' => true,
'declare_equal_normalize' => ['space' => 'single'],
'increment_style' => ['style' => 'post'],
'list_syntax' => ['syntax' => 'long'],
'list_syntax' => ['syntax' => 'short'],
'no_short_echo_tag' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_align' => false,
Expand All @@ -33,6 +34,7 @@
'sort_algorithm' => 'alpha',
'imports_order' => ['class', 'const', 'function']
],
'single_line_throw' => false,
])
->setFinder(PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest --ignore-platform-reqs

- name: Set CS-Fixer ignore env
run: set PHP_CS_FIXER_IGNORE_ENV=1

- name: Run test suite
run: composer check

0 comments on commit 5ac750d

Please sign in to comment.