Skip to content

Commit 4f403c3

Browse files
committed
update rules
1 parent c485e67 commit 4f403c3

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

src/RuleSet/Php74.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,30 @@ public function rules(): array
4444
'fopen_flags' => false,
4545
'return_assignment' => false,
4646
'final_internal_class' => false,
47+
'blank_line_before_statement' => [
48+
'statements' => [
49+
'break',
50+
'case',
51+
'continue',
52+
'declare',
53+
'default',
54+
'do',
55+
'exit',
56+
'for',
57+
'foreach',
58+
'goto',
59+
'if',
60+
'include',
61+
'include_once',
62+
'require',
63+
'require_once',
64+
'return',
65+
'switch',
66+
'throw',
67+
'try',
68+
'while',
69+
],
70+
],
4771
\PhpCsFixerCustomFixers\Fixer\CommentSurroundedBySpacesFixer::name() => true,
4872
\PhpCsFixerCustomFixers\Fixer\DataProviderReturnTypeFixer::name() => true,
4973
\PhpCsFixerCustomFixers\Fixer\InternalClassCasingFixer::name() => true,

src/RuleSet/Php80.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,30 @@ public function rules(): array
4444
'fopen_flags' => false,
4545
'return_assignment' => false,
4646
'final_internal_class' => false,
47+
'blank_line_before_statement' => [
48+
'statements' => [
49+
'break',
50+
'case',
51+
'continue',
52+
'declare',
53+
'default',
54+
'do',
55+
'exit',
56+
'for',
57+
'foreach',
58+
'goto',
59+
'if',
60+
'include',
61+
'include_once',
62+
'require',
63+
'require_once',
64+
'return',
65+
'switch',
66+
'throw',
67+
'try',
68+
'while',
69+
],
70+
],
4771
\PhpCsFixerCustomFixers\Fixer\CommentSurroundedBySpacesFixer::name() => true,
4872
\PhpCsFixerCustomFixers\Fixer\DataProviderReturnTypeFixer::name() => true,
4973
\PhpCsFixerCustomFixers\Fixer\InternalClassCasingFixer::name() => true,

0 commit comments

Comments
 (0)