Skip to content

Commit 19caab3

Browse files
authored
Merge pull request #4 from CorpusPHP/dependabot/composer/friendsofphp/php-cs-fixer-tw-2.18or-tw-3.0
Update friendsofphp/php-cs-fixer requirement from ^2.18 to ^2.18 || ^3.0
2 parents 7706e0f + 4c8486e commit 19caab3

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/vendor/
22
composer.lock
33

4-
.php_cs.cache
5-
.phpunit.result.cache
4+
*.cache

.php_cs renamed to .php-cs-fixer.dist.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
->name('*.php');
88

99

10-
return PhpCsFixer\Config::create()
10+
return (new PhpCsFixer\Config)
1111
->setUsingCache(true)
1212
->setIndent("\t")
1313
->setLineEnding("\n")
@@ -37,6 +37,8 @@
3737
'no_leading_import_slash' => true,
3838
'no_leading_namespace_whitespace' => true,
3939

40+
'array_indentation' => true,
41+
4042
'no_whitespace_in_blank_line' => true,
4143

4244
'phpdoc_add_missing_param_annotation' => [ 'only_untyped' => true, ],
@@ -103,7 +105,7 @@
103105
],
104106

105107
'blank_line_before_statement' => [
106-
'statements' => [ 'continue', 'try', 'switch', 'die', 'exit', 'throw', 'return', 'do' ],
108+
'statements' => [ 'continue', 'try', 'switch', 'exit', 'throw', 'return', 'do' ],
107109
],
108110

109111
'no_superfluous_phpdoc_tags' => [
@@ -119,6 +121,7 @@
119121
'escape_implicit_backslashes' => true,
120122
'explicit_indirect_variable' => true,
121123
'heredoc_to_nowdoc' => true,
124+
'heredoc_indentation' => true,
122125

123126

124127
'no_singleline_whitespace_before_semicolons' => true,
@@ -140,6 +143,7 @@
140143

141144
'method_chaining_indentation' => true,
142145
'method_argument_space' => [
146+
'on_multiline' => 'ignore', // at least until they fix it
143147
'keep_multiple_spaces_after_comma' => true,
144148
],
145149

@@ -156,8 +160,15 @@
156160
'import_functions' => false,
157161
],
158162

159-
'trailing_comma_in_multiline_array' => true,
160-
'single_line_comment_style' => true,
163+
'trailing_comma_in_multiline' => true,
164+
'single_line_comment_style' => true,
165+
166+
'is_null' => true,
167+
'yoda_style' => [
168+
'equal' => false,
169+
'identical' => false,
170+
'less_and_greater' => null,
171+
],
161172
]
162173
)
163174
->setFinder($finder);

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ fix: cbf
1010
.PHONY: test
1111
test: cs
1212
vendor/bin/phpunit
13+
vendor/bin/php-cs-fixer fix --dry-run
1314

1415
.PHONY: cs
1516
cs:

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"guzzlehttp/psr7": "^1.8",
1313
"corpus/coding-standard": "^0.4.0",
1414
"squizlabs/php_codesniffer": "^3.6",
15-
"friendsofphp/php-cs-fixer": "^2.18",
15+
"friendsofphp/php-cs-fixer": "^3.0",
1616
"donatj/mddoc": "dev-master",
1717
"donatj/drop": "^1.0"
1818
},

0 commit comments

Comments
 (0)