
@Symfony
¶Rules that follow the official Symfony Coding Standards.
blank_line_before_statement
config:
['statements' => ['return']]
braces
config:
['allow_single_line_anonymous_class_with_empty_body' => true, 'allow_single_line_closure' => true]
class_attributes_separation
config:
['elements' => ['method' => 'one']]
class_definition
config:
['single_line' => true]
empty_loop_body
config:
['style' => 'braces']
general_phpdoc_tag_rename
config:
['replacements' => ['inheritDocs' => 'inheritDoc']]
global_namespace_import
config:
['import_classes' => false, 'import_constants' => false, 'import_functions' => false]
method_argument_space
config:
['on_multiline' => 'ignore']
no_extra_blank_lines
config:
['tokens' => ['attribute', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'switch', 'throw', 'use']]
no_superfluous_phpdoc_tags
config:
['allow_mixed' => true, 'allow_unused_params' => true]
no_unneeded_control_parentheses
config:
['statements' => ['break', 'clone', 'continue', 'echo_print', 'others', 'return', 'switch_case', 'yield', 'yield_from']]
no_unneeded_curly_braces
config:
['namespaces' => true]
ordered_imports
config:
['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha']
phpdoc_order
config:
['order' => ['param', 'return', 'throws']]
phpdoc_tag_type
config:
['tags' => ['inheritDoc' => 'inline']]
phpdoc_types_order
config:
['null_adjustment' => 'always_last', 'sort_algorithm' => 'none']
single_line_comment_style
config:
['comment_types' => ['hash']]
single_space_after_construct
config:
['constructs' => ['abstract', 'as', 'attribute', 'break', 'case', 'catch', 'class', 'clone', 'comment', 'const', 'const_import', 'continue', 'do', 'echo', 'else', 'elseif', 'enum', 'extends', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'global', 'goto', 'if', 'implements', 'include', 'include_once', 'instanceof', 'insteadof', 'interface', 'match', 'named_argument', 'namespace', 'new', 'open_tag_with_echo', 'php_doc', 'php_open', 'print', 'private', 'protected', 'public', 'readonly', 'require', 'require_once', 'return', 'static', 'switch', 'throw', 'trait', 'try', 'type_colon', 'use', 'use_lambda', 'use_trait', 'var', 'while', 'yield', 'yield_from']]
space_after_semicolon
config:
['remove_in_empty_for_expressions' => true]