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']function_declaration with config:
['closure_fn_spacing' => 'one']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:
['after_heredoc' => true, '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']]no_whitespace_before_comma_in_array with config:
['after_heredoc' => true]operator_linebreak with config:
['only_booleans' => true]ordered_imports with config:
['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha']phpdoc_no_alias_tag with config:
['replacements' => ['const' => 'var', 'link' => 'see', 'property-read' => 'property', 'property-write' => 'property', 'type' => 'var']]phpdoc_order with config:
['order' => ['param', 'return', 'throws']]phpdoc_scalar with config:
['types' => ['boolean', 'callback', 'double', 'integer', 'never-return', 'never-returns', 'no-return', 'real', 'str']]phpdoc_separation with config:
['groups' => [['Annotation', 'NamedArgumentConstructor', 'Target'], ['author', 'copyright', 'license'], ['category', 'package', 'subpackage'], ['property', 'property-read', 'property-write'], ['deprecated', 'link', 'see', 'since']], 'skip_unlisted_annotations' => false]phpdoc_tag_type with config:
['tags' => ['inheritDoc' => 'inline']]phpdoc_to_comment with config:
['allow_before_return_statement' => false]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']]type_declaration_spaces with config:
['elements' => ['function', 'property']]