Skip to content

Commit 9d7a6ec

Browse files
committed
Whole bunch of extra rules to improve code quality
1 parent 79e00e0 commit 9d7a6ec

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

src/PhpCsFixerConfig.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
final class PhpCsFixerConfig
88
{
9-
/**
10-
* @return Config
11-
*/
129
public static function create(array $extraRules = []): Config
1310
{
1411
return Config::create()
@@ -44,6 +41,20 @@ public static function create(array $extraRules = []): Config
4441
'strict_param' => true,
4542
'trailing_comma_in_multiline_array' => true,
4643
'native_function_invocation' => true,
44+
'no_php4_constructor' => true,
45+
'no_short_echo_tag' => true,
46+
'no_useless_return' => true,
47+
'php_unit_internal_class' => true,
48+
'php_unit_method_casing' => true,
49+
'php_unit_set_up_tear_down_visibility' => true,
50+
'protected_to_private' => true,
51+
'simplified_null_return' => true,
52+
'void_return' => true,
53+
'combine_nested_dirname' => true,
54+
'pow_to_exponentiation' => true,
55+
'random_api_migration' => true,
56+
'ternary_to_null_coalescing' => true,
57+
'visibility_required' => true,
4758
] + $extraRules
4859
);
4960
}

0 commit comments

Comments
 (0)