From 7f2895efee61badefec10fe4b57208be44ef9e21 Mon Sep 17 00:00:00 2001 From: Greg Korba Date: Mon, 25 Sep 2023 23:15:07 +0200 Subject: [PATCH] feat: Introduce `@PER-CS` ruleset (#7321) --- doc/list.rst | 104 +++++++++--------- doc/ruleSets/PER-CS.rst | 10 ++ doc/ruleSets/PER-CSRisky.rst | 10 ++ doc/ruleSets/PhpCsFixer.rst | 2 +- doc/ruleSets/index.rst | 2 + doc/rules/basic/curly_braces_position.rst | 4 + doc/rules/basic/encoding.rst | 1 + .../basic/no_multiple_statements_per_line.rst | 1 + doc/rules/basic/single_line_empty_body.rst | 1 + doc/rules/casing/constant_case.rst | 1 + doc/rules/casing/lowercase_keywords.rst | 1 + .../casing/lowercase_static_reference.rst | 1 + doc/rules/cast_notation/lowercase_cast.rst | 1 + doc/rules/cast_notation/short_scalar_cast.rst | 1 + doc/rules/class_notation/class_definition.rst | 4 + .../no_blank_lines_after_class_opening.rst | 1 + .../class_notation/ordered_class_elements.rst | 4 + .../single_class_element_per_statement.rst | 4 + .../single_trait_insert_per_statement.rst | 1 + .../class_notation/visibility_required.rst | 1 + .../no_trailing_whitespace_in_comment.rst | 1 + .../control_structure_braces.rst | 1 + ...ontrol_structure_continuation_position.rst | 1 + doc/rules/control_structure/elseif.rst | 1 + .../control_structure/no_break_comment.rst | 1 + .../switch_case_semicolon_to_colon.rst | 1 + .../control_structure/switch_case_space.rst | 1 + .../function_declaration.rst | 1 + .../method_argument_space.rst | 4 + .../no_spaces_after_function_name.rst | 1 + .../no_unreachable_default_argument_value.rst | 1 + .../return_type_declaration.rst | 1 + doc/rules/import/no_leading_import_slash.rst | 1 + doc/rules/import/ordered_imports.rst | 4 + .../import/single_import_per_statement.rst | 4 + .../import/single_line_after_imports.rst | 1 + .../declare_equal_normalize.rst | 1 + .../blank_line_after_namespace.rst | 1 + .../blank_lines_before_namespace.rst | 1 + doc/rules/operator/binary_operator_spaces.rst | 4 + doc/rules/operator/concat_space.rst | 4 + doc/rules/operator/new_with_braces.rst | 1 + .../operator/no_space_around_double_colon.rst | 1 + .../operator/ternary_operator_spaces.rst | 1 + .../php_tag/blank_line_after_opening_tag.rst | 1 + doc/rules/php_tag/full_opening_tag.rst | 1 + doc/rules/php_tag/no_closing_tag.rst | 1 + .../no_trailing_whitespace_in_string.rst | 1 + .../blank_line_between_import_groups.rst | 1 + .../whitespace/compact_nullable_typehint.rst | 1 + doc/rules/whitespace/indentation_type.rst | 1 + doc/rules/whitespace/line_ending.rst | 1 + .../whitespace/no_trailing_whitespace.rst | 1 + .../no_whitespace_in_blank_line.rst | 1 + .../whitespace/single_blank_line_at_eof.rst | 1 + .../whitespace/spaces_inside_parentheses.rst | 1 + .../whitespace/statement_indentation.rst | 1 + src/RuleSet/Sets/PERCSRiskySet.php | 40 +++++++ src/RuleSet/Sets/PERCSSet.php | 40 +++++++ src/RuleSet/Sets/PhpCsFixerSet.php | 2 +- tests/RuleSet/RuleSetsTest.php | 2 + tests/RuleSet/Sets/PERCSRiskySetTest.php | 22 ++++ tests/RuleSet/Sets/PERCSSetTest.php | 22 ++++ 63 files changed, 281 insertions(+), 54 deletions(-) create mode 100644 doc/ruleSets/PER-CS.rst create mode 100644 doc/ruleSets/PER-CSRisky.rst create mode 100644 src/RuleSet/Sets/PERCSRiskySet.php create mode 100644 src/RuleSet/Sets/PERCSSet.php create mode 100644 tests/RuleSet/Sets/PERCSRiskySetTest.php create mode 100644 tests/RuleSet/Sets/PERCSSetTest.php diff --git a/doc/list.rst b/doc/list.rst index 1dfcd108109..231c0dfc7d9 100644 --- a/doc/list.rst +++ b/doc/list.rst @@ -81,7 +81,7 @@ List of Available Rules | Default value: ``[]`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Operator\\BinaryOperatorSpacesFixer <./../src/Fixer/Operator/BinaryOperatorSpacesFixer.php>`_ - `blank_lines_before_namespace <./rules/namespace_notation/blank_lines_before_namespace.rst>`_ @@ -100,21 +100,21 @@ List of Available Rules | Default value: ``2`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\NamespaceNotation\\BlankLinesBeforeNamespaceFixer <./../src/Fixer/NamespaceNotation/BlankLinesBeforeNamespaceFixer.php>`_ - `blank_line_after_namespace <./rules/namespace_notation/blank_line_after_namespace.rst>`_ There MUST be one blank line after the namespace declaration. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\NamespaceNotation\\BlankLineAfterNamespaceFixer <./../src/Fixer/NamespaceNotation/BlankLineAfterNamespaceFixer.php>`_ - `blank_line_after_opening_tag <./rules/php_tag/blank_line_after_opening_tag.rst>`_ Ensure there is no code on the same line as the PHP open tag and it is followed by a blank line. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\PhpTag\\BlankLineAfterOpeningTagFixer <./../src/Fixer/PhpTag/BlankLineAfterOpeningTagFixer.php>`_ - `blank_line_before_statement <./rules/whitespace/blank_line_before_statement.rst>`_ @@ -136,7 +136,7 @@ List of Available Rules Putting blank lines between ``use`` statement groups. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\BlankLineBetweenImportGroupsFixer <./../src/Fixer/Whitespace/BlankLineBetweenImportGroupsFixer.php>`_ - `braces <./rules/basic/braces.rst>`_ @@ -231,7 +231,7 @@ List of Available Rules | Default value: ``true`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ClassNotation\\ClassDefinitionFixer <./../src/Fixer/ClassNotation/ClassDefinitionFixer.php>`_ - `class_keyword_remove <./rules/language_construct/class_keyword_remove.rst>`_ @@ -302,7 +302,7 @@ List of Available Rules Rule is applied only in a PHP 7.1+ environment. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\CompactNullableTypehintFixer <./../src/Fixer/Whitespace/CompactNullableTypehintFixer.php>`_ - `concat_space <./rules/operator/concat_space.rst>`_ @@ -317,7 +317,7 @@ List of Available Rules | Default value: ``'none'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Operator\\ConcatSpaceFixer <./../src/Fixer/Operator/ConcatSpaceFixer.php>`_ - `constant_case <./rules/casing/constant_case.rst>`_ @@ -332,14 +332,14 @@ List of Available Rules | Default value: ``'lower'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Casing\\ConstantCaseFixer <./../src/Fixer/Casing/ConstantCaseFixer.php>`_ - `control_structure_braces <./rules/control_structure/control_structure_braces.rst>`_ The body of each control structure MUST be enclosed within braces. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ControlStructure\\ControlStructureBracesFixer <./../src/Fixer/ControlStructure/ControlStructureBracesFixer.php>`_ - `control_structure_continuation_position <./rules/control_structure/control_structure_continuation_position.rst>`_ @@ -354,7 +354,7 @@ List of Available Rules | Default value: ``'same_line'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ControlStructure\\ControlStructureContinuationPositionFixer <./../src/Fixer/ControlStructure/ControlStructureContinuationPositionFixer.php>`_ - `curly_braces_position <./rules/basic/curly_braces_position.rst>`_ @@ -393,7 +393,7 @@ List of Available Rules | Default value: ``true`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Basic\\CurlyBracesPositionFixer <./../src/Fixer/Basic/CurlyBracesPositionFixer.php>`_ - `date_time_create_from_format_call <./rules/function_notation/date_time_create_from_format_call.rst>`_ @@ -431,7 +431,7 @@ List of Available Rules | Default value: ``'none'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\LanguageConstruct\\DeclareEqualNormalizeFixer <./../src/Fixer/LanguageConstruct/DeclareEqualNormalizeFixer.php>`_ - `declare_parentheses <./rules/language_construct/declare_parentheses.rst>`_ @@ -595,7 +595,7 @@ List of Available Rules The keyword ``elseif`` should be used instead of ``else if`` so that all control keywords look like single words. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ControlStructure\\ElseifFixer <./../src/Fixer/ControlStructure/ElseifFixer.php>`_ - `empty_loop_body <./rules/control_structure/empty_loop_body.rst>`_ @@ -632,7 +632,7 @@ List of Available Rules PHP code MUST use only UTF-8 without BOM (remove BOM). - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR1 <./ruleSets/PSR1.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR1 <./ruleSets/PSR1.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Basic\\EncodingFixer <./../src/Fixer/Basic/EncodingFixer.php>`_ - `ereg_to_preg <./rules/alias/ereg_to_preg.rst>`_ @@ -832,7 +832,7 @@ List of Available Rules PHP code must use the long ```_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR1 <./ruleSets/PSR1.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR1 <./ruleSets/PSR1.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\PhpTag\\FullOpeningTagFixer <./../src/Fixer/PhpTag/FullOpeningTagFixer.php>`_ - `function_declaration <./rules/function_notation/function_declaration.rst>`_ @@ -855,7 +855,7 @@ List of Available Rules | Default value: ``false`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\FunctionNotation\\FunctionDeclarationFixer <./../src/Fixer/FunctionNotation/FunctionDeclarationFixer.php>`_ - `function_to_constant <./rules/language_construct/function_to_constant.rst>`_ @@ -1045,7 +1045,7 @@ List of Available Rules Code MUST use configured indentation type. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\IndentationTypeFixer <./../src/Fixer/Whitespace/IndentationTypeFixer.php>`_ - `integer_literal_case <./rules/casing/integer_literal_case.rst>`_ @@ -1082,7 +1082,7 @@ List of Available Rules All PHP files must use same line ending. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\LineEndingFixer <./../src/Fixer/Whitespace/LineEndingFixer.php>`_ - `list_syntax <./rules/list_notation/list_syntax.rst>`_ @@ -1121,21 +1121,21 @@ List of Available Rules Cast should be written in lower case. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\CastNotation\\LowercaseCastFixer <./../src/Fixer/CastNotation/LowercaseCastFixer.php>`_ - `lowercase_keywords <./rules/casing/lowercase_keywords.rst>`_ PHP keywords MUST be in lower case. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Casing\\LowercaseKeywordsFixer <./../src/Fixer/Casing/LowercaseKeywordsFixer.php>`_ - `lowercase_static_reference <./rules/casing/lowercase_static_reference.rst>`_ Class static references ``self``, ``static`` and ``parent`` MUST be in lower case. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Casing\\LowercaseStaticReferenceFixer <./../src/Fixer/Casing/LowercaseStaticReferenceFixer.php>`_ - `magic_constant_casing <./rules/casing/magic_constant_casing.rst>`_ @@ -1182,7 +1182,7 @@ List of Available Rules | Default value: ``false`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PHP73Migration <./ruleSets/PHP73Migration.rst>`_ `@PHP74Migration <./ruleSets/PHP74Migration.rst>`_ `@PHP80Migration <./ruleSets/PHP80Migration.rst>`_ `@PHP81Migration <./ruleSets/PHP81Migration.rst>`_ `@PHP82Migration <./ruleSets/PHP82Migration.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PHP73Migration <./ruleSets/PHP73Migration.rst>`_ `@PHP74Migration <./ruleSets/PHP74Migration.rst>`_ `@PHP80Migration <./ruleSets/PHP80Migration.rst>`_ `@PHP81Migration <./ruleSets/PHP81Migration.rst>`_ `@PHP82Migration <./ruleSets/PHP82Migration.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\FunctionNotation\\MethodArgumentSpaceFixer <./../src/Fixer/FunctionNotation/MethodArgumentSpaceFixer.php>`_ - `method_chaining_indentation <./rules/whitespace/method_chaining_indentation.rst>`_ @@ -1326,7 +1326,7 @@ List of Available Rules | Default value: ``true`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Operator\\NewWithBracesFixer <./../src/Fixer/Operator/NewWithBracesFixer.php>`_ - `non_printable_character <./rules/basic/non_printable_character.rst>`_ @@ -1431,7 +1431,7 @@ List of Available Rules There should be no empty lines after class opening brace. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ClassNotation\\NoBlankLinesAfterClassOpeningFixer <./../src/Fixer/ClassNotation/NoBlankLinesAfterClassOpeningFixer.php>`_ - `no_blank_lines_after_phpdoc <./rules/phpdoc/no_blank_lines_after_phpdoc.rst>`_ @@ -1463,14 +1463,14 @@ List of Available Rules | Default value: ``'no break'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ControlStructure\\NoBreakCommentFixer <./../src/Fixer/ControlStructure/NoBreakCommentFixer.php>`_ - `no_closing_tag <./rules/php_tag/no_closing_tag.rst>`_ The closing ``?>`` tag MUST be omitted from files containing only PHP. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\PhpTag\\NoClosingTagFixer <./../src/Fixer/PhpTag/NoClosingTagFixer.php>`_ - `no_empty_comment <./rules/comment/no_empty_comment.rst>`_ @@ -1523,7 +1523,7 @@ List of Available Rules Remove leading slashes in ``use`` clauses. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Import\\NoLeadingImportSlashFixer <./../src/Fixer/Import/NoLeadingImportSlashFixer.php>`_ - `no_leading_namespace_whitespace <./rules/namespace_notation/no_leading_namespace_whitespace.rst>`_ @@ -1559,7 +1559,7 @@ List of Available Rules There must not be more than one statement per line. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Basic\\NoMultipleStatementsPerLineFixer <./../src/Fixer/Basic/NoMultipleStatementsPerLineFixer.php>`_ - `no_null_property_initialization <./rules/class_notation/no_null_property_initialization.rst>`_ @@ -1597,7 +1597,7 @@ List of Available Rules When making a method or function call, there MUST NOT be a space between the method or function name and the opening parenthesis. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\FunctionNotation\\NoSpacesAfterFunctionNameFixer <./../src/Fixer/FunctionNotation/NoSpacesAfterFunctionNameFixer.php>`_ - `no_spaces_around_offset <./rules/whitespace/no_spaces_around_offset.rst>`_ @@ -1626,7 +1626,7 @@ List of Available Rules There must be no space around double colons (also called Scope Resolution Operator or Paamayim Nekudotayim). - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Operator\\NoSpaceAroundDoubleColonFixer <./../src/Fixer/Operator/NoSpaceAroundDoubleColonFixer.php>`_ - `no_superfluous_elseif <./rules/control_structure/no_superfluous_elseif.rst>`_ @@ -1699,14 +1699,14 @@ List of Available Rules Remove trailing whitespace at the end of non-blank lines. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\NoTrailingWhitespaceFixer <./../src/Fixer/Whitespace/NoTrailingWhitespaceFixer.php>`_ - `no_trailing_whitespace_in_comment <./rules/comment/no_trailing_whitespace_in_comment.rst>`_ There MUST be no trailing spaces inside comment or PHPDoc. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Comment\\NoTrailingWhitespaceInCommentFixer <./../src/Fixer/Comment/NoTrailingWhitespaceInCommentFixer.php>`_ - `no_trailing_whitespace_in_string <./rules/string_notation/no_trailing_whitespace_in_string.rst>`_ @@ -1716,7 +1716,7 @@ List of Available Rules *warning risky* Changing the whitespaces in strings might affect string comparisons and outputs. - Part of rule sets `@PER-CS1.0:risky <./ruleSets/PER-CS1.0Risky.rst>`_ `@PER-CS2.0:risky <./ruleSets/PER-CS2.0Risky.rst>`_ `@PER:risky <./ruleSets/PERRisky.rst>`_ `@PSR12:risky <./ruleSets/PSR12Risky.rst>`_ `@PhpCsFixer:risky <./ruleSets/PhpCsFixerRisky.rst>`_ `@Symfony:risky <./ruleSets/SymfonyRisky.rst>`_ + Part of rule sets `@PER-CS1.0:risky <./ruleSets/PER-CS1.0Risky.rst>`_ `@PER-CS2.0:risky <./ruleSets/PER-CS2.0Risky.rst>`_ `@PER-CS:risky <./ruleSets/PER-CSRisky.rst>`_ `@PER:risky <./ruleSets/PERRisky.rst>`_ `@PSR12:risky <./ruleSets/PSR12Risky.rst>`_ `@PhpCsFixer:risky <./ruleSets/PhpCsFixerRisky.rst>`_ `@Symfony:risky <./ruleSets/SymfonyRisky.rst>`_ `Source PhpCsFixer\\Fixer\\StringNotation\\NoTrailingWhitespaceInStringFixer <./../src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php>`_ - `no_unneeded_control_parentheses <./rules/control_structure/no_unneeded_control_parentheses.rst>`_ @@ -1781,7 +1781,7 @@ List of Available Rules as some Symfony components) that rely on those (for example through reflection). - Part of rule sets `@PER-CS1.0:risky <./ruleSets/PER-CS1.0Risky.rst>`_ `@PER-CS2.0:risky <./ruleSets/PER-CS2.0Risky.rst>`_ `@PER:risky <./ruleSets/PERRisky.rst>`_ `@PHP80Migration:risky <./ruleSets/PHP80MigrationRisky.rst>`_ `@PSR12:risky <./ruleSets/PSR12Risky.rst>`_ `@PhpCsFixer:risky <./ruleSets/PhpCsFixerRisky.rst>`_ + Part of rule sets `@PER-CS1.0:risky <./ruleSets/PER-CS1.0Risky.rst>`_ `@PER-CS2.0:risky <./ruleSets/PER-CS2.0Risky.rst>`_ `@PER-CS:risky <./ruleSets/PER-CSRisky.rst>`_ `@PER:risky <./ruleSets/PERRisky.rst>`_ `@PHP80Migration:risky <./ruleSets/PHP80MigrationRisky.rst>`_ `@PSR12:risky <./ruleSets/PSR12Risky.rst>`_ `@PhpCsFixer:risky <./ruleSets/PhpCsFixerRisky.rst>`_ `Source PhpCsFixer\\Fixer\\FunctionNotation\\NoUnreachableDefaultArgumentValueFixer <./../src/Fixer/FunctionNotation/NoUnreachableDefaultArgumentValueFixer.php>`_ - `no_unset_cast <./rules/cast_notation/no_unset_cast.rst>`_ @@ -1875,7 +1875,7 @@ List of Available Rules Remove trailing whitespace at the end of blank lines. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\NoWhitespaceInBlankLineFixer <./../src/Fixer/Whitespace/NoWhitespaceInBlankLineFixer.php>`_ - `nullable_type_declaration <./rules/language_construct/nullable_type_declaration.rst>`_ @@ -1984,7 +1984,7 @@ List of Available Rules | Default value: ``false`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ClassNotation\\OrderedClassElementsFixer <./../src/Fixer/ClassNotation/OrderedClassElementsFixer.php>`_ - `ordered_imports <./rules/import/ordered_imports.rst>`_ @@ -2007,7 +2007,7 @@ List of Available Rules | Default value: ``false`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Import\\OrderedImportsFixer <./../src/Fixer/Import/OrderedImportsFixer.php>`_ - `ordered_interfaces <./rules/class_notation/ordered_interfaces.rst>`_ @@ -2874,7 +2874,7 @@ List of Available Rules | Default value: ``'none'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\FunctionNotation\\ReturnTypeDeclarationFixer <./../src/Fixer/FunctionNotation/ReturnTypeDeclarationFixer.php>`_ - `self_accessor <./rules/class_notation/self_accessor.rst>`_ @@ -2915,7 +2915,7 @@ List of Available Rules Cast ``(boolean)`` and ``(integer)`` should be written as ``(bool)`` and ``(int)``, ``(double)`` and ``(real)`` as ``(float)``, ``(binary)`` as ``(string)``. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PHP74Migration <./ruleSets/PHP74Migration.rst>`_ `@PHP80Migration <./ruleSets/PHP80Migration.rst>`_ `@PHP81Migration <./ruleSets/PHP81Migration.rst>`_ `@PHP82Migration <./ruleSets/PHP82Migration.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PHP74Migration <./ruleSets/PHP74Migration.rst>`_ `@PHP80Migration <./ruleSets/PHP80Migration.rst>`_ `@PHP81Migration <./ruleSets/PHP81Migration.rst>`_ `@PHP82Migration <./ruleSets/PHP82Migration.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\CastNotation\\ShortScalarCastFixer <./../src/Fixer/CastNotation/ShortScalarCastFixer.php>`_ - `simple_to_complex_string_variable <./rules/string_notation/simple_to_complex_string_variable.rst>`_ @@ -2942,7 +2942,7 @@ List of Available Rules A PHP file without end tag must always end with a single empty line feed. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\SingleBlankLineAtEofFixer <./../src/Fixer/Whitespace/SingleBlankLineAtEofFixer.php>`_ - `single_blank_line_before_namespace <./rules/namespace_notation/single_blank_line_before_namespace.rst>`_ @@ -2964,7 +2964,7 @@ List of Available Rules | Default value: ``['const', 'property']`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ClassNotation\\SingleClassElementPerStatementFixer <./../src/Fixer/ClassNotation/SingleClassElementPerStatementFixer.php>`_ - `single_import_per_statement <./rules/import/single_import_per_statement.rst>`_ @@ -2979,14 +2979,14 @@ List of Available Rules | Default value: ``true`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Import\\SingleImportPerStatementFixer <./../src/Fixer/Import/SingleImportPerStatementFixer.php>`_ - `single_line_after_imports <./rules/import/single_line_after_imports.rst>`_ Each namespace use MUST go on its own line and there MUST be one blank line after the use statements block. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Import\\SingleLineAfterImportsFixer <./../src/Fixer/Import/SingleLineAfterImportsFixer.php>`_ - `single_line_comment_spacing <./rules/comment/single_line_comment_spacing.rst>`_ @@ -3015,7 +3015,7 @@ List of Available Rules Empty body of class, interface, trait, enum or function must be abbreviated as ``{}`` and placed on the same line as the previous symbol, separated by a single space. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `Source PhpCsFixer\\Fixer\\Basic\\SingleLineEmptyBodyFixer <./../src/Fixer/Basic/SingleLineEmptyBodyFixer.php>`_ - `single_line_throw <./rules/function_notation/single_line_throw.rst>`_ @@ -3082,7 +3082,7 @@ List of Available Rules Each trait ``use`` must be done as single statement. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ClassNotation\\SingleTraitInsertPerStatementFixer <./../src/Fixer/ClassNotation/SingleTraitInsertPerStatementFixer.php>`_ - `spaces_inside_parentheses <./rules/whitespace/spaces_inside_parentheses.rst>`_ @@ -3101,7 +3101,7 @@ List of Available Rules | Default value: ``'none'`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\SpacesInsideParenthesesFixer <./../src/Fixer/Whitespace/SpacesInsideParenthesesFixer.php>`_ - `space_after_semicolon <./rules/semicolon/space_after_semicolon.rst>`_ @@ -3137,7 +3137,7 @@ List of Available Rules Each statement must be indented. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Whitespace\\StatementIndentationFixer <./../src/Fixer/Whitespace/StatementIndentationFixer.php>`_ - `static_lambda <./rules/function_notation/static_lambda.rst>`_ @@ -3195,14 +3195,14 @@ List of Available Rules A case should be followed by a colon and not a semicolon. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ControlStructure\\SwitchCaseSemicolonToColonFixer <./../src/Fixer/ControlStructure/SwitchCaseSemicolonToColonFixer.php>`_ - `switch_case_space <./rules/control_structure/switch_case_space.rst>`_ Removes extra spaces between colon and case value. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ControlStructure\\SwitchCaseSpaceFixer <./../src/Fixer/ControlStructure/SwitchCaseSpaceFixer.php>`_ - `switch_continue_to_break <./rules/control_structure/switch_continue_to_break.rst>`_ @@ -3216,7 +3216,7 @@ List of Available Rules Standardize spaces around ternary operator. - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\Operator\\TernaryOperatorSpacesFixer <./../src/Fixer/Operator/TernaryOperatorSpacesFixer.php>`_ - `ternary_to_elvis_operator <./rules/operator/ternary_to_elvis_operator.rst>`_ @@ -3324,7 +3324,7 @@ List of Available Rules | Default value: ``['property', 'method', 'const']`` - Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PHP71Migration <./ruleSets/PHP71Migration.rst>`_ `@PHP73Migration <./ruleSets/PHP73Migration.rst>`_ `@PHP74Migration <./ruleSets/PHP74Migration.rst>`_ `@PHP80Migration <./ruleSets/PHP80Migration.rst>`_ `@PHP81Migration <./ruleSets/PHP81Migration.rst>`_ `@PHP82Migration <./ruleSets/PHP82Migration.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ + Part of rule sets `@PER <./ruleSets/PER.rst>`_ `@PER-CS <./ruleSets/PER-CS.rst>`_ `@PER-CS1.0 <./ruleSets/PER-CS1.0.rst>`_ `@PER-CS2.0 <./ruleSets/PER-CS2.0.rst>`_ `@PHP71Migration <./ruleSets/PHP71Migration.rst>`_ `@PHP73Migration <./ruleSets/PHP73Migration.rst>`_ `@PHP74Migration <./ruleSets/PHP74Migration.rst>`_ `@PHP80Migration <./ruleSets/PHP80Migration.rst>`_ `@PHP81Migration <./ruleSets/PHP81Migration.rst>`_ `@PHP82Migration <./ruleSets/PHP82Migration.rst>`_ `@PSR2 <./ruleSets/PSR2.rst>`_ `@PSR12 <./ruleSets/PSR12.rst>`_ `@PhpCsFixer <./ruleSets/PhpCsFixer.rst>`_ `@Symfony <./ruleSets/Symfony.rst>`_ `Source PhpCsFixer\\Fixer\\ClassNotation\\VisibilityRequiredFixer <./../src/Fixer/ClassNotation/VisibilityRequiredFixer.php>`_ - `void_return <./rules/function_notation/void_return.rst>`_ diff --git a/doc/ruleSets/PER-CS.rst b/doc/ruleSets/PER-CS.rst new file mode 100644 index 00000000000..15315e90305 --- /dev/null +++ b/doc/ruleSets/PER-CS.rst @@ -0,0 +1,10 @@ +==================== +Rule set ``@PER-CS`` +==================== + +Alias for the latest revision of PER-CS rules. Use it if you always want to be in sync with newest PER-CS standard. + +Rules +----- + +- `@PER-CS2.0 <./PER-CS2.0.rst>`_ diff --git a/doc/ruleSets/PER-CSRisky.rst b/doc/ruleSets/PER-CSRisky.rst new file mode 100644 index 00000000000..0a864cf25a1 --- /dev/null +++ b/doc/ruleSets/PER-CSRisky.rst @@ -0,0 +1,10 @@ +========================== +Rule set ``@PER-CS:risky`` +========================== + +Alias for the latest revision of PER-CS risky rules. Use it if you always want to be in sync with newest PER-CS standard. This set contains rules that are risky. + +Rules +----- + +- `@PER-CS2.0:risky <./PER-CS2.0Risky.rst>`_ diff --git a/doc/ruleSets/PhpCsFixer.rst b/doc/ruleSets/PhpCsFixer.rst index 8535022349d..be8dcc07569 100644 --- a/doc/ruleSets/PhpCsFixer.rst +++ b/doc/ruleSets/PhpCsFixer.rst @@ -7,7 +7,7 @@ Rule set as used by the PHP-CS-Fixer development team, highly opinionated. Rules ----- -- `@PER-CS2.0 <./PER-CS2.0.rst>`_ +- `@PER-CS <./PER-CS.rst>`_ - `@Symfony <./Symfony.rst>`_ - `array_indentation <./../rules/whitespace/array_indentation.rst>`_ - `blank_line_before_statement <./../rules/whitespace/blank_line_before_statement.rst>`_ with config: diff --git a/doc/ruleSets/index.rst b/doc/ruleSets/index.rst index a40c8336963..40a68df5f09 100644 --- a/doc/ruleSets/index.rst +++ b/doc/ruleSets/index.rst @@ -3,10 +3,12 @@ List of Available Rule sets =========================== - `@DoctrineAnnotation <./DoctrineAnnotation.rst>`_ - `@PER <./PER.rst>`_ +- `@PER-CS <./PER-CS.rst>`_ - `@PER-CS1.0 <./PER-CS1.0.rst>`_ - `@PER-CS1.0:risky <./PER-CS1.0Risky.rst>`_ - `@PER-CS2.0 <./PER-CS2.0.rst>`_ - `@PER-CS2.0:risky <./PER-CS2.0Risky.rst>`_ +- `@PER-CS:risky <./PER-CSRisky.rst>`_ - `@PER:risky <./PERRisky.rst>`_ - `@PHP54Migration <./PHP54Migration.rst>`_ - `@PHP56Migration:risky <./PHP56MigrationRisky.rst>`_ diff --git a/doc/rules/basic/curly_braces_position.rst b/doc/rules/basic/curly_braces_position.rst index 057cc9125da..641d7456e3a 100644 --- a/doc/rules/basic/curly_braces_position.rst +++ b/doc/rules/basic/curly_braces_position.rst @@ -228,6 +228,10 @@ The rule is part of the following rule sets: ``['allow_single_line_empty_anonymous_classes' => true]`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['allow_single_line_empty_anonymous_classes' => true]`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['allow_single_line_empty_anonymous_classes' => true]`` diff --git a/doc/rules/basic/encoding.rst b/doc/rules/basic/encoding.rst index 7d8cb6b61e2..7ebc13c40e9 100644 --- a/doc/rules/basic/encoding.rst +++ b/doc/rules/basic/encoding.rst @@ -25,6 +25,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR1 <./../../ruleSets/PSR1.rst>`_ diff --git a/doc/rules/basic/no_multiple_statements_per_line.rst b/doc/rules/basic/no_multiple_statements_per_line.rst index 530646289b0..7e9bd107a32 100644 --- a/doc/rules/basic/no_multiple_statements_per_line.rst +++ b/doc/rules/basic/no_multiple_statements_per_line.rst @@ -25,6 +25,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/basic/single_line_empty_body.rst b/doc/rules/basic/single_line_empty_body.rst index 0241669d94c..24617a6877c 100644 --- a/doc/rules/basic/single_line_empty_body.rst +++ b/doc/rules/basic/single_line_empty_body.rst @@ -29,6 +29,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ diff --git a/doc/rules/casing/constant_case.rst b/doc/rules/casing/constant_case.rst index 914df51c569..a68e5cf9c25 100644 --- a/doc/rules/casing/constant_case.rst +++ b/doc/rules/casing/constant_case.rst @@ -59,6 +59,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/casing/lowercase_keywords.rst b/doc/rules/casing/lowercase_keywords.rst index 1189abaafc5..7a3a5aebc6e 100644 --- a/doc/rules/casing/lowercase_keywords.rst +++ b/doc/rules/casing/lowercase_keywords.rst @@ -39,6 +39,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/casing/lowercase_static_reference.rst b/doc/rules/casing/lowercase_static_reference.rst index 40a63fe479c..9aade3c8e24 100644 --- a/doc/rules/casing/lowercase_static_reference.rst +++ b/doc/rules/casing/lowercase_static_reference.rst @@ -60,6 +60,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/cast_notation/lowercase_cast.rst b/doc/rules/cast_notation/lowercase_cast.rst index 8d22400d877..a115fd21d62 100644 --- a/doc/rules/cast_notation/lowercase_cast.rst +++ b/doc/rules/cast_notation/lowercase_cast.rst @@ -46,6 +46,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/cast_notation/short_scalar_cast.rst b/doc/rules/cast_notation/short_scalar_cast.rst index 6928c0c43ae..e0ca1a6f832 100644 --- a/doc/rules/cast_notation/short_scalar_cast.rst +++ b/doc/rules/cast_notation/short_scalar_cast.rst @@ -33,6 +33,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PHP74Migration <./../../ruleSets/PHP74Migration.rst>`_ diff --git a/doc/rules/class_notation/class_definition.rst b/doc/rules/class_notation/class_definition.rst index 97f73a1fff9..e1d86e483f0 100644 --- a/doc/rules/class_notation/class_definition.rst +++ b/doc/rules/class_notation/class_definition.rst @@ -176,6 +176,10 @@ The rule is part of the following rule sets: ``['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['inline_constructor_arguments' => false, 'space_before_parenthesis' => true]`` diff --git a/doc/rules/class_notation/no_blank_lines_after_class_opening.rst b/doc/rules/class_notation/no_blank_lines_after_class_opening.rst index 1960bea69fe..cd3884c83f0 100644 --- a/doc/rules/class_notation/no_blank_lines_after_class_opening.rst +++ b/doc/rules/class_notation/no_blank_lines_after_class_opening.rst @@ -29,6 +29,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/class_notation/ordered_class_elements.rst b/doc/rules/class_notation/ordered_class_elements.rst index 4cb29cc18dc..3c3f0c6b167 100644 --- a/doc/rules/class_notation/ordered_class_elements.rst +++ b/doc/rules/class_notation/ordered_class_elements.rst @@ -177,6 +177,10 @@ The rule is part of the following rule sets: ``['order' => ['use_trait']]`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['order' => ['use_trait']]`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['order' => ['use_trait']]`` diff --git a/doc/rules/class_notation/single_class_element_per_statement.rst b/doc/rules/class_notation/single_class_element_per_statement.rst index 204a2738935..6f44b0ed51c 100644 --- a/doc/rules/class_notation/single_class_element_per_statement.rst +++ b/doc/rules/class_notation/single_class_element_per_statement.rst @@ -66,6 +66,10 @@ The rule is part of the following rule sets: ``['elements' => ['property']]`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['elements' => ['property']]`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['elements' => ['property']]`` diff --git a/doc/rules/class_notation/single_trait_insert_per_statement.rst b/doc/rules/class_notation/single_trait_insert_per_statement.rst index ff039ecd866..b71509623eb 100644 --- a/doc/rules/class_notation/single_trait_insert_per_statement.rst +++ b/doc/rules/class_notation/single_trait_insert_per_statement.rst @@ -27,6 +27,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/class_notation/visibility_required.rst b/doc/rules/class_notation/visibility_required.rst index db98a0f477e..cf3e99e442f 100644 --- a/doc/rules/class_notation/visibility_required.rst +++ b/doc/rules/class_notation/visibility_required.rst @@ -66,6 +66,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PHP71Migration <./../../ruleSets/PHP71Migration.rst>`_ diff --git a/doc/rules/comment/no_trailing_whitespace_in_comment.rst b/doc/rules/comment/no_trailing_whitespace_in_comment.rst index 3dbd8045419..a75bb771025 100644 --- a/doc/rules/comment/no_trailing_whitespace_in_comment.rst +++ b/doc/rules/comment/no_trailing_whitespace_in_comment.rst @@ -26,6 +26,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/control_structure/control_structure_braces.rst b/doc/rules/control_structure/control_structure_braces.rst index ed85c396130..f14116cedaa 100644 --- a/doc/rules/control_structure/control_structure_braces.rst +++ b/doc/rules/control_structure/control_structure_braces.rst @@ -24,6 +24,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/control_structure/control_structure_continuation_position.rst b/doc/rules/control_structure/control_structure_continuation_position.rst index a748c637c60..eb75ea10ac7 100644 --- a/doc/rules/control_structure/control_structure_continuation_position.rst +++ b/doc/rules/control_structure/control_structure_continuation_position.rst @@ -61,6 +61,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/control_structure/elseif.rst b/doc/rules/control_structure/elseif.rst index b1b771aa624..44ef9c24e98 100644 --- a/doc/rules/control_structure/elseif.rst +++ b/doc/rules/control_structure/elseif.rst @@ -27,6 +27,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/control_structure/no_break_comment.rst b/doc/rules/control_structure/no_break_comment.rst index 0a9c486ce85..5cc4d71ed83 100644 --- a/doc/rules/control_structure/no_break_comment.rst +++ b/doc/rules/control_structure/no_break_comment.rst @@ -72,6 +72,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/control_structure/switch_case_semicolon_to_colon.rst b/doc/rules/control_structure/switch_case_semicolon_to_colon.rst index 88c9d7dab9d..bdbf49ad331 100644 --- a/doc/rules/control_structure/switch_case_semicolon_to_colon.rst +++ b/doc/rules/control_structure/switch_case_semicolon_to_colon.rst @@ -30,6 +30,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/control_structure/switch_case_space.rst b/doc/rules/control_structure/switch_case_space.rst index 15c59a91f47..9702794fd61 100644 --- a/doc/rules/control_structure/switch_case_space.rst +++ b/doc/rules/control_structure/switch_case_space.rst @@ -30,6 +30,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/function_notation/function_declaration.rst b/doc/rules/function_notation/function_declaration.rst index 61ab6769d47..31ab93dad30 100644 --- a/doc/rules/function_notation/function_declaration.rst +++ b/doc/rules/function_notation/function_declaration.rst @@ -95,6 +95,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/function_notation/method_argument_space.rst b/doc/rules/function_notation/method_argument_space.rst index 081d2d3ccf3..7987d5dbccd 100644 --- a/doc/rules/function_notation/method_argument_space.rst +++ b/doc/rules/function_notation/method_argument_space.rst @@ -218,6 +218,10 @@ The rule is part of the following rule sets: ``['on_multiline' => 'ensure_fully_multiline']`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['on_multiline' => 'ensure_fully_multiline']`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['on_multiline' => 'ensure_fully_multiline']`` diff --git a/doc/rules/function_notation/no_spaces_after_function_name.rst b/doc/rules/function_notation/no_spaces_after_function_name.rst index a6b5239de98..e3a68055a0e 100644 --- a/doc/rules/function_notation/no_spaces_after_function_name.rst +++ b/doc/rules/function_notation/no_spaces_after_function_name.rst @@ -31,6 +31,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/function_notation/no_unreachable_default_argument_value.rst b/doc/rules/function_notation/no_unreachable_default_argument_value.rst index bbab4ca6f0e..f163492a43a 100644 --- a/doc/rules/function_notation/no_unreachable_default_argument_value.rst +++ b/doc/rules/function_notation/no_unreachable_default_argument_value.rst @@ -35,6 +35,7 @@ The rule is part of the following rule sets: - `@PER-CS1.0:risky <./../../ruleSets/PER-CS1.0Risky.rst>`_ - `@PER-CS2.0:risky <./../../ruleSets/PER-CS2.0Risky.rst>`_ +- `@PER-CS:risky <./../../ruleSets/PER-CSRisky.rst>`_ - `@PER:risky <./../../ruleSets/PERRisky.rst>`_ - `@PHP80Migration:risky <./../../ruleSets/PHP80MigrationRisky.rst>`_ - `@PSR12:risky <./../../ruleSets/PSR12Risky.rst>`_ diff --git a/doc/rules/function_notation/return_type_declaration.rst b/doc/rules/function_notation/return_type_declaration.rst index 16fde8204e7..fd0d5ccfb01 100644 --- a/doc/rules/function_notation/return_type_declaration.rst +++ b/doc/rules/function_notation/return_type_declaration.rst @@ -69,6 +69,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/import/no_leading_import_slash.rst b/doc/rules/import/no_leading_import_slash.rst index de01f7f4d72..0b1c9357385 100644 --- a/doc/rules/import/no_leading_import_slash.rst +++ b/doc/rules/import/no_leading_import_slash.rst @@ -25,6 +25,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/import/ordered_imports.rst b/doc/rules/import/ordered_imports.rst index 467f5ac6b20..23dd2be0527 100644 --- a/doc/rules/import/ordered_imports.rst +++ b/doc/rules/import/ordered_imports.rst @@ -164,6 +164,10 @@ The rule is part of the following rule sets: ``['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']`` diff --git a/doc/rules/import/single_import_per_statement.rst b/doc/rules/import/single_import_per_statement.rst index 6470e07de86..4c35abcb687 100644 --- a/doc/rules/import/single_import_per_statement.rst +++ b/doc/rules/import/single_import_per_statement.rst @@ -62,6 +62,10 @@ The rule is part of the following rule sets: ``['group_to_single_imports' => false]`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['group_to_single_imports' => false]`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['group_to_single_imports' => false]`` diff --git a/doc/rules/import/single_line_after_imports.rst b/doc/rules/import/single_line_after_imports.rst index 8653b0d295c..48088713b1b 100644 --- a/doc/rules/import/single_line_after_imports.rst +++ b/doc/rules/import/single_line_after_imports.rst @@ -49,6 +49,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/language_construct/declare_equal_normalize.rst b/doc/rules/language_construct/declare_equal_normalize.rst index bfbd1a4ca17..47e91036dbc 100644 --- a/doc/rules/language_construct/declare_equal_normalize.rst +++ b/doc/rules/language_construct/declare_equal_normalize.rst @@ -52,6 +52,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/namespace_notation/blank_line_after_namespace.rst b/doc/rules/namespace_notation/blank_line_after_namespace.rst index dbb1ab9f9a3..faeace13c3e 100644 --- a/doc/rules/namespace_notation/blank_line_after_namespace.rst +++ b/doc/rules/namespace_notation/blank_line_after_namespace.rst @@ -38,6 +38,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/namespace_notation/blank_lines_before_namespace.rst b/doc/rules/namespace_notation/blank_lines_before_namespace.rst index 5d984d51ce8..fa00cb25717 100644 --- a/doc/rules/namespace_notation/blank_lines_before_namespace.rst +++ b/doc/rules/namespace_notation/blank_lines_before_namespace.rst @@ -107,6 +107,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/operator/binary_operator_spaces.rst b/doc/rules/operator/binary_operator_spaces.rst index 54918faeac2..6f9f87bd3f7 100644 --- a/doc/rules/operator/binary_operator_spaces.rst +++ b/doc/rules/operator/binary_operator_spaces.rst @@ -253,6 +253,10 @@ The rule is part of the following rule sets: ``['default' => 'at_least_single_space']`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['default' => 'at_least_single_space']`` + - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config: ``['default' => 'at_least_single_space']`` diff --git a/doc/rules/operator/concat_space.rst b/doc/rules/operator/concat_space.rst index 5752a3f0092..53d6f1767e9 100644 --- a/doc/rules/operator/concat_space.rst +++ b/doc/rules/operator/concat_space.rst @@ -67,6 +67,10 @@ The rule is part of the following rule sets: ``['spacing' => 'one']`` +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config: + + ``['spacing' => 'one']`` + - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ with config: ``['spacing' => 'one']`` diff --git a/doc/rules/operator/new_with_braces.rst b/doc/rules/operator/new_with_braces.rst index bfb96978072..8d775cfd2e8 100644 --- a/doc/rules/operator/new_with_braces.rst +++ b/doc/rules/operator/new_with_braces.rst @@ -78,6 +78,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/operator/no_space_around_double_colon.rst b/doc/rules/operator/no_space_around_double_colon.rst index 61ab7cd04da..6eb57097d75 100644 --- a/doc/rules/operator/no_space_around_double_colon.rst +++ b/doc/rules/operator/no_space_around_double_colon.rst @@ -26,6 +26,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/operator/ternary_operator_spaces.rst b/doc/rules/operator/ternary_operator_spaces.rst index 1319b08d334..1541cc7c53b 100644 --- a/doc/rules/operator/ternary_operator_spaces.rst +++ b/doc/rules/operator/ternary_operator_spaces.rst @@ -23,6 +23,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/php_tag/blank_line_after_opening_tag.rst b/doc/rules/php_tag/blank_line_after_opening_tag.rst index 56d4be514a0..e8aa2b6bdf9 100644 --- a/doc/rules/php_tag/blank_line_after_opening_tag.rst +++ b/doc/rules/php_tag/blank_line_after_opening_tag.rst @@ -27,6 +27,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/php_tag/full_opening_tag.rst b/doc/rules/php_tag/full_opening_tag.rst index 204f7248f2a..960bec6ccce 100644 --- a/doc/rules/php_tag/full_opening_tag.rst +++ b/doc/rules/php_tag/full_opening_tag.rst @@ -26,6 +26,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR1 <./../../ruleSets/PSR1.rst>`_ diff --git a/doc/rules/php_tag/no_closing_tag.rst b/doc/rules/php_tag/no_closing_tag.rst index cc94bf54831..7e8c6326a21 100644 --- a/doc/rules/php_tag/no_closing_tag.rst +++ b/doc/rules/php_tag/no_closing_tag.rst @@ -28,6 +28,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/string_notation/no_trailing_whitespace_in_string.rst b/doc/rules/string_notation/no_trailing_whitespace_in_string.rst index e7872d879e8..23a1b0c829b 100644 --- a/doc/rules/string_notation/no_trailing_whitespace_in_string.rst +++ b/doc/rules/string_notation/no_trailing_whitespace_in_string.rst @@ -35,6 +35,7 @@ The rule is part of the following rule sets: - `@PER-CS1.0:risky <./../../ruleSets/PER-CS1.0Risky.rst>`_ - `@PER-CS2.0:risky <./../../ruleSets/PER-CS2.0Risky.rst>`_ +- `@PER-CS:risky <./../../ruleSets/PER-CSRisky.rst>`_ - `@PER:risky <./../../ruleSets/PERRisky.rst>`_ - `@PSR12:risky <./../../ruleSets/PSR12Risky.rst>`_ - `@PhpCsFixer:risky <./../../ruleSets/PhpCsFixerRisky.rst>`_ diff --git a/doc/rules/whitespace/blank_line_between_import_groups.rst b/doc/rules/whitespace/blank_line_between_import_groups.rst index fd010be00b4..8f84a0fc5ee 100644 --- a/doc/rules/whitespace/blank_line_between_import_groups.rst +++ b/doc/rules/whitespace/blank_line_between_import_groups.rst @@ -85,6 +85,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/whitespace/compact_nullable_typehint.rst b/doc/rules/whitespace/compact_nullable_typehint.rst index 1971bb41336..3036cf0ab0c 100644 --- a/doc/rules/whitespace/compact_nullable_typehint.rst +++ b/doc/rules/whitespace/compact_nullable_typehint.rst @@ -30,6 +30,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/whitespace/indentation_type.rst b/doc/rules/whitespace/indentation_type.rst index cc9e475ee5e..00eca5c7f79 100644 --- a/doc/rules/whitespace/indentation_type.rst +++ b/doc/rules/whitespace/indentation_type.rst @@ -27,6 +27,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/whitespace/line_ending.rst b/doc/rules/whitespace/line_ending.rst index 5c69844982a..fd5fded9ce3 100644 --- a/doc/rules/whitespace/line_ending.rst +++ b/doc/rules/whitespace/line_ending.rst @@ -29,6 +29,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/whitespace/no_trailing_whitespace.rst b/doc/rules/whitespace/no_trailing_whitespace.rst index 5ceed78b50f..8ec1d84a18e 100644 --- a/doc/rules/whitespace/no_trailing_whitespace.rst +++ b/doc/rules/whitespace/no_trailing_whitespace.rst @@ -24,6 +24,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/whitespace/no_whitespace_in_blank_line.rst b/doc/rules/whitespace/no_whitespace_in_blank_line.rst index 1ea4afb1380..0c09785d3f3 100644 --- a/doc/rules/whitespace/no_whitespace_in_blank_line.rst +++ b/doc/rules/whitespace/no_whitespace_in_blank_line.rst @@ -25,6 +25,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR12 <./../../ruleSets/PSR12.rst>`_ diff --git a/doc/rules/whitespace/single_blank_line_at_eof.rst b/doc/rules/whitespace/single_blank_line_at_eof.rst index 34784a3592a..bbd59cba081 100644 --- a/doc/rules/whitespace/single_blank_line_at_eof.rst +++ b/doc/rules/whitespace/single_blank_line_at_eof.rst @@ -36,6 +36,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/whitespace/spaces_inside_parentheses.rst b/doc/rules/whitespace/spaces_inside_parentheses.rst index af82a2b045d..472c6e41c73 100644 --- a/doc/rules/whitespace/spaces_inside_parentheses.rst +++ b/doc/rules/whitespace/spaces_inside_parentheses.rst @@ -94,6 +94,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/doc/rules/whitespace/statement_indentation.rst b/doc/rules/whitespace/statement_indentation.rst index 096155e9733..a332da62bdc 100644 --- a/doc/rules/whitespace/statement_indentation.rst +++ b/doc/rules/whitespace/statement_indentation.rst @@ -30,6 +30,7 @@ Rule sets The rule is part of the following rule sets: - `@PER <./../../ruleSets/PER.rst>`_ +- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ - `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ - `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ - `@PSR2 <./../../ruleSets/PSR2.rst>`_ diff --git a/src/RuleSet/Sets/PERCSRiskySet.php b/src/RuleSet/Sets/PERCSRiskySet.php new file mode 100644 index 00000000000..6e6f7908c14 --- /dev/null +++ b/src/RuleSet/Sets/PERCSRiskySet.php @@ -0,0 +1,40 @@ + + * Dariusz Rumiński + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace PhpCsFixer\RuleSet\Sets; + +use PhpCsFixer\RuleSet\AbstractRuleSetDescription; + +/** + * @internal + */ +final class PERCSRiskySet extends AbstractRuleSetDescription +{ + public function getName(): string + { + return '@PER-CS:risky'; + } + + public function getRules(): array + { + return [ + '@PER-CS2.0:risky' => true, + ]; + } + + public function getDescription(): string + { + return 'Alias for the latest revision of PER-CS risky rules. Use it if you always want to be in sync with newest PER-CS standard.'; + } +} diff --git a/src/RuleSet/Sets/PERCSSet.php b/src/RuleSet/Sets/PERCSSet.php new file mode 100644 index 00000000000..0fe5934990d --- /dev/null +++ b/src/RuleSet/Sets/PERCSSet.php @@ -0,0 +1,40 @@ + + * Dariusz Rumiński + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace PhpCsFixer\RuleSet\Sets; + +use PhpCsFixer\RuleSet\AbstractRuleSetDescription; + +/** + * @internal + */ +final class PERCSSet extends AbstractRuleSetDescription +{ + public function getName(): string + { + return '@PER-CS'; + } + + public function getRules(): array + { + return [ + '@PER-CS2.0' => true, + ]; + } + + public function getDescription(): string + { + return 'Alias for the latest revision of PER-CS rules. Use it if you always want to be in sync with newest PER-CS standard.'; + } +} diff --git a/src/RuleSet/Sets/PhpCsFixerSet.php b/src/RuleSet/Sets/PhpCsFixerSet.php index 6e6392a68cb..0bd66ffe137 100644 --- a/src/RuleSet/Sets/PhpCsFixerSet.php +++ b/src/RuleSet/Sets/PhpCsFixerSet.php @@ -24,7 +24,7 @@ final class PhpCsFixerSet extends AbstractRuleSetDescription public function getRules(): array { return [ - '@PER-CS2.0' => true, + '@PER-CS' => true, '@Symfony' => true, 'array_indentation' => true, 'blank_line_before_statement' => [ diff --git a/tests/RuleSet/RuleSetsTest.php b/tests/RuleSet/RuleSetsTest.php index cb7a8a04d20..80c899f4753 100644 --- a/tests/RuleSet/RuleSetsTest.php +++ b/tests/RuleSet/RuleSetsTest.php @@ -68,6 +68,8 @@ public function testHasIntegrationTest(string $setDefinitionName): void $setsWithoutTests = [ '@PER', '@PER:risky', + '@PER-CS', + '@PER-CS:risky', '@PHP56Migration', '@PHP56Migration:risky', '@PHP70Migration', diff --git a/tests/RuleSet/Sets/PERCSRiskySetTest.php b/tests/RuleSet/Sets/PERCSRiskySetTest.php new file mode 100644 index 00000000000..835c1ae3d1b --- /dev/null +++ b/tests/RuleSet/Sets/PERCSRiskySetTest.php @@ -0,0 +1,22 @@ + + * Dariusz Rumiński + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace PhpCsFixer\Tests\RuleSet\Sets; + +/** + * @internal + * + * @covers \PhpCsFixer\RuleSet\Sets\PERCSRiskySet + */ +final class PERCSRiskySetTest extends AbstractSetTestCase {} diff --git a/tests/RuleSet/Sets/PERCSSetTest.php b/tests/RuleSet/Sets/PERCSSetTest.php new file mode 100644 index 00000000000..81c70ddd480 --- /dev/null +++ b/tests/RuleSet/Sets/PERCSSetTest.php @@ -0,0 +1,22 @@ + + * Dariusz Rumiński + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +namespace PhpCsFixer\Tests\RuleSet\Sets; + +/** + * @internal + * + * @covers \PhpCsFixer\RuleSet\Sets\PERCSSet + */ +final class PERCSSetTest extends AbstractSetTestCase {}