Rule set @Symfony
¶
Rules that follow the official Symfony Coding Standards.
Rules¶
blank_line_before_statement with config:
['statements' => ['return']]
braces_position with config:
['allow_single_line_anonymous_functions' => true, 'allow_single_line_empty_anonymous_classes' => true]
class_attributes_separation with config:
['elements' => ['method' => 'one']]
class_definition with config:
['single_line' => true]
empty_loop_body with config:
['style' => 'braces']
general_phpdoc_tag_rename with config:
['replacements' => ['inheritDocs' => 'inheritDoc']]
global_namespace_import with config:
['import_classes' => false, 'import_constants' => false, 'import_functions' => false]
method_argument_space with config:
['on_multiline' => 'ignore']
no_extra_blank_lines with config:
['tokens' => ['attribute', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'switch', 'throw', 'use']]
no_superfluous_phpdoc_tags with config:
['allow_hidden_params' => true, 'remove_inheritdoc' => true]
no_unneeded_braces with config:
['namespaces' => true]
no_unneeded_control_parentheses with config:
['statements' => ['break', 'clone', 'continue', 'echo_print', 'others', 'return', 'switch_case', 'yield', 'yield_from']]
operator_linebreak with config:
['only_booleans' => true]
ordered_imports with config:
['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha']
ordered_types with config:
['null_adjustment' => 'always_last', 'sort_algorithm' => 'none']
phpdoc_order with config:
['order' => ['param', 'return', 'throws']]
phpdoc_separation with config:
['groups' => [['Annotation', 'NamedArgumentConstructor', 'Target'], ['author', 'copyright', 'license'], ['category', 'package', 'subpackage'], ['property', 'property-read', 'property-write'], ['deprecated', 'link', 'see', 'since']]]
phpdoc_tag_type with config:
['tags' => ['inheritDoc' => 'inline']]
phpdoc_types_order with config:
['null_adjustment' => 'always_last', 'sort_algorithm' => 'none']
single_line_comment_style with config:
['comment_types' => ['hash']]
space_after_semicolon with config:
['remove_in_empty_for_expressions' => true]
statement_indentation with config:
['stick_comment_to_next_continuous_control_statement' => true]
trailing_comma_in_multiline with config:
['after_heredoc' => true, 'elements' => ['array_destructuring', 'arrays', 'match', 'parameters']]