Skip to content

Commit 14da1a7

Browse files
committed
style(format): 优化 PHP CS Fixer 配置规则
1 parent 67febe6 commit 14da1a7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@
1313
'binary_operator_spaces' => [
1414
'default' => 'align_single_space_minimal',
1515
],
16+
'blank_line_before_statement' => [
17+
'statements' => [
18+
'continue',
19+
'declare',
20+
'return',
21+
'throw',
22+
'try',
23+
],
24+
],
25+
'concat_space' => [
26+
'spacing' => 'one',
27+
],
28+
'global_namespace_import' => [
29+
'import_classes' => true,
30+
'import_constants' => false,
31+
'import_functions' => false,
32+
],
1633
])
1734
->setFinder($finder)
1835
;

0 commit comments

Comments
 (0)