Skip to content

Commit

Permalink
Update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedy-osaze committed Oct 24, 2024
1 parent 08b5f0f commit ca1817f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
use PhpCsFixerCustomFixers\Fixer\PhpdocSelfAccessorFixer;
use PhpCsFixerCustomFixers\Fixer\PhpdocTypesCommaSpacesFixer;
use PhpCsFixerCustomFixers\Fixer\PhpdocTypesTrimFixer;
use PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer;
use PhpCsFixerCustomFixers\Fixer\SingleSpaceAfterStatementFixer;
use PhpCsFixerCustomFixers\Fixer\SingleSpaceBeforeStatementFixer;
use PhpCsFixerCustomFixers\Fixers;
Expand Down Expand Up @@ -115,7 +114,7 @@ public static function getDefaultRules(): array
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'fopen_flag_order' => true,
'fully_qualified_strict_types' => true,
'fully_qualified_strict_types' => ['import_symbols' => true],
'function_declaration' => true,
'global_namespace_import' => true,
'heredoc_indentation' => true,
Expand Down Expand Up @@ -175,6 +174,7 @@ public static function getDefaultRules(): array
'no_unneeded_control_parentheses' => true,
'no_unneeded_final_method' => true,
'no_unneeded_import_alias' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_cast' => true,
'no_unset_on_property' => true,
'no_unused_imports' => true,
Expand All @@ -189,10 +189,10 @@ public static function getDefaultRules(): array
'nullable_type_declaration' => true,
'nullable_type_declaration_for_default_null_value' => true,
'object_operator_without_whitespace' => true,
'operator_linebreak' => true,
'ordered_class_elements' => [
'order' => ['use_trait', 'case'],
'operator_linebreak' => [
'only_booleans' => true,
],
'ordered_class_elements' => true,
'ordered_imports' => [
'imports_order' => [
'class',
Expand Down Expand Up @@ -226,6 +226,7 @@ public static function getDefaultRules(): array
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_tag_casing' => true,
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
'phpdoc_to_comment' => true,
'phpdoc_trim' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
Expand All @@ -244,7 +245,6 @@ public static function getDefaultRules(): array
'set_type_to_cast' => true,
'simple_to_complex_string_variable' => true,
'simplified_if_return' => true,
'simplified_null_return' => true,
'single_class_element_per_statement' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => true,
Expand Down Expand Up @@ -284,10 +284,9 @@ public static function getDefaultRules(): array
PhpdocSelfAccessorFixer::name() => true,
PhpdocTypesCommaSpacesFixer::name() => true,
PhpdocTypesTrimFixer::name() => true,
PromotedConstructorPropertyFixer::name() => true,
NoUselessDirnameCallFixer::name() => true,
MultilinePromotedPropertiesFixer::name() => [
'minimum_number_of_parameters' => 3,
'minimum_number_of_parameters' => 4,
],
];
}
Expand Down

0 comments on commit ca1817f

Please sign in to comment.