Skip to content

Commit

Permalink
Whole bunch of extra rules to improve code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Nov 21, 2018
1 parent 79e00e0 commit 9d7a6ec
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/PhpCsFixerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

final class PhpCsFixerConfig
{
/**
* @return Config
*/
public static function create(array $extraRules = []): Config
{
return Config::create()
Expand Down Expand Up @@ -44,6 +41,20 @@ public static function create(array $extraRules = []): Config
'strict_param' => true,
'trailing_comma_in_multiline_array' => true,
'native_function_invocation' => true,
'no_php4_constructor' => true,
'no_short_echo_tag' => true,
'no_useless_return' => true,
'php_unit_internal_class' => true,
'php_unit_method_casing' => true,
'php_unit_set_up_tear_down_visibility' => true,
'protected_to_private' => true,
'simplified_null_return' => true,
'void_return' => true,
'combine_nested_dirname' => true,
'pow_to_exponentiation' => true,
'random_api_migration' => true,
'ternary_to_null_coalescing' => true,
'visibility_required' => true,
] + $extraRules
);
}
Expand Down

0 comments on commit 9d7a6ec

Please sign in to comment.