Bump minimal php-cs-fixer version to 2.15.0. Add additional rules.

This commit is contained in:
ErickSkrauch
2019-10-12 01:17:25 +03:00
parent bb403214d9
commit f327f14347
4 changed files with 33 additions and 17 deletions

View File

@@ -53,6 +53,7 @@ class Rules {
'strategy' => 'no_multi_line',
],
'native_function_casing' => true,
'native_function_type_declaration_casing' => true,
'no_alternative_syntax' => true,
'no_homoglyph_names' => true,
'no_leading_import_slash' => true,
@@ -81,10 +82,13 @@ class Rules {
'imports_order' => ['class', 'function', 'const'],
],
'php_unit_construct' => true,
'php_unit_dedicate_assert_internal_type' => true,
'php_unit_expectation' => true,
'php_unit_method_casing' => true,
'php_unit_mock' => true,
'php_unit_mock_short_will_return' => true,
'php_unit_namespaced' => true,
'php_unit_no_expectation_annotation' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_strict' => true,
'pow_to_exponentiation' => true,
@@ -102,6 +106,8 @@ class Rules {
],
'set_type_to_cast' => true,
'short_scalar_cast' => true,
'simple_to_complex_string_variable' => true,
'single_trait_insert_per_statement' => true,
'single_quote' => true,
'space_after_semicolon' => true,
'standardize_increment' => true,