Skip to content

Commit 95ef1ab

Browse files
committed
Enhancement: Enable void_return fixer
1 parent 5c9eab2 commit 95ef1ab

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.php-cs-fixer.php

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,21 @@
1515
->notPath('include/pregen-news.inc')
1616
->notPath('tests/run-tests.php');
1717

18-
$config->setRules([
19-
'array_indentation' => true,
20-
'constant_case' => true,
21-
'indentation_type' => true,
22-
'line_ending' => true,
23-
'no_extra_blank_lines' => true,
24-
'no_trailing_whitespace' => true,
25-
'ordered_class_elements' => true,
26-
'single_space_after_construct' => true,
27-
'trim_array_spaces' => true,
28-
'visibility_required' => true,
29-
'whitespace_after_comma_in_array' => true,
30-
]);
18+
$config
19+
->setRiskyAllowed(true)
20+
->setRules([
21+
'array_indentation' => true,
22+
'constant_case' => true,
23+
'indentation_type' => true,
24+
'line_ending' => true,
25+
'no_extra_blank_lines' => true,
26+
'no_trailing_whitespace' => true,
27+
'ordered_class_elements' => true,
28+
'single_space_after_construct' => true,
29+
'trim_array_spaces' => true,
30+
'visibility_required' => true,
31+
'void_return' => true,
32+
'whitespace_after_comma_in_array' => true,
33+
]);
3134

3235
return $config;

0 commit comments

Comments
 (0)