Skip to content

Commit 28411bc

Browse files
committed
wip
1 parent 110ad05 commit 28411bc

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/php-cs-fixer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Run PHP CS Fixer
1616
uses: docker://oskarstark/php-cs-fixer-ga
1717
with:
18-
args: --config=.php_cs.dist --allow-risky=yes
18+
args: --config=.php_cs.dist.php --allow-risky=yes
1919

2020
- name: Commit changes
2121
uses: stefanzweifel/git-auto-commit-action@v4

.php_cs.dist renamed to .php_cs.dist.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
->ignoreDotFiles(true)
1111
->ignoreVCS(true);
1212

13-
return PhpCsFixer\Config::create()
13+
return (new PhpCsFixer\Config())
1414
->setRules([
1515
'@PSR2' => true,
1616
'array_syntax' => ['syntax' => 'short'],
17-
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
17+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
1818
'no_unused_imports' => true,
1919
'not_operator_with_successor_space' => true,
20-
'trailing_comma_in_multiline_array' => true,
20+
'trailing_comma_in_multiline' => true,
2121
'phpdoc_scalar' => true,
2222
'unary_operator_spaces' => true,
2323
'binary_operator_spaces' => true,
@@ -26,11 +26,6 @@
2626
],
2727
'phpdoc_single_line_var_spacing' => true,
2828
'phpdoc_var_without_name' => true,
29-
'class_attributes_separation' => [
30-
'elements' => [
31-
'method',
32-
],
33-
],
3429
'method_argument_space' => [
3530
'on_multiline' => 'ensure_fully_multiline',
3631
'keep_multiple_spaces_after_comma' => true,

0 commit comments

Comments
 (0)