Skip to content

Commit 141d7dc

Browse files
author
ityaozm@gmail.com
committed
fix(config): add no_extra_blank_lines rule and disable static_private_method
- Introduce the no_extra_blank_lines rule to remove unnecessary blank lines for specific tokens such as return, throw, and switch - Disable static_private_method rule to accommodate pest testing framework compatibility - Keep static_lambda rule disabled as before for pest support
1 parent 8292f16 commit 141d7dc

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.php-cs-fixer.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,24 @@
183183
'anonymous_class' => false,
184184
'named_class' => false,
185185
],
186+
'no_extra_blank_lines' => [
187+
'tokens' => [
188+
'attribute',
189+
'break',
190+
'case',
191+
// 'comma',
192+
'continue',
193+
'curly_brace_block',
194+
'default',
195+
'extra',
196+
'parenthesis_brace_block',
197+
'return',
198+
'square_brace_block',
199+
'switch',
200+
'throw',
201+
'use',
202+
],
203+
],
186204
'ordered_traits' => [
187205
'case_sensitive' => true,
188206
],
@@ -274,7 +292,8 @@
274292
'statement_indentation' => [
275293
'stick_comment_to_next_continuous_control_statement' => true,
276294
],
277-
'static_lambda' => false, // pest
295+
'static_lambda' => false,
296+
'static_private_method' => false, // pest
278297
// 'string_implicit_backslashes' => false,
279298
])))
280299
->setUsingCache(true)

0 commit comments

Comments
 (0)