Skip to content

Commit 43c8673

Browse files
committed
Use all available checked tokens for no_extra_blank_lines
1 parent 5c4cfbb commit 43c8673

File tree

1 file changed

+28
-12
lines changed

1 file changed

+28
-12
lines changed

src/CodeIgniter4.php

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,34 @@ public function __construct()
231231
'named_class' => true,
232232
'anonymous_class' => true,
233233
],
234-
'no_alias_functions' => ['sets' => ['@all']],
235-
'no_alias_language_construct_call' => true,
236-
'no_alternative_syntax' => ['fix_non_monolithic_code' => false],
237-
'no_binary_string' => true,
238-
'no_blank_lines_after_class_opening' => true,
239-
'no_blank_lines_after_phpdoc' => true,
240-
'no_break_comment' => ['comment_text' => 'no break'],
241-
'no_closing_tag' => true,
242-
'no_empty_comment' => true,
243-
'no_empty_phpdoc' => true,
244-
'no_empty_statement' => true,
245-
'no_extra_blank_lines' => ['tokens' => ['extra']],
234+
'no_alias_functions' => ['sets' => ['@all']],
235+
'no_alias_language_construct_call' => true,
236+
'no_alternative_syntax' => ['fix_non_monolithic_code' => false],
237+
'no_binary_string' => true,
238+
'no_blank_lines_after_class_opening' => true,
239+
'no_blank_lines_after_phpdoc' => true,
240+
'no_break_comment' => ['comment_text' => 'no break'],
241+
'no_closing_tag' => true,
242+
'no_empty_comment' => true,
243+
'no_empty_phpdoc' => true,
244+
'no_empty_statement' => true,
245+
'no_extra_blank_lines' => [
246+
'tokens' => [
247+
'attribute',
248+
'break',
249+
'case',
250+
'continue',
251+
'curly_brace_block',
252+
'default',
253+
'extra',
254+
'parenthesis_brace_block',
255+
'return',
256+
'square_brace_block',
257+
'switch',
258+
'throw',
259+
'use',
260+
],
261+
],
246262
'no_homoglyph_names' => true,
247263
'no_leading_import_slash' => true,
248264
'no_leading_namespace_whitespace' => true,

0 commit comments

Comments
 (0)