1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- ==================
- Rule set ``@PSR2``
- ==================
- Rules that follow `PSR-2 <https://www.php-fig.org/psr/psr-2/>`_ standard.
- Rules
- -----
- - `@PSR1 <./PSR1.rst>`_
- - `blank_line_after_namespace <./../rules/namespace_notation/blank_line_after_namespace.rst>`_
- - `class_definition <./../rules/class_notation/class_definition.rst>`_
- - `constant_case <./../rules/casing/constant_case.rst>`_
- - `control_structure_braces <./../rules/control_structure/control_structure_braces.rst>`_
- - `control_structure_continuation_position <./../rules/control_structure/control_structure_continuation_position.rst>`_
- - `curly_braces_position <./../rules/basic/curly_braces_position.rst>`_
- - `elseif <./../rules/control_structure/elseif.rst>`_
- - `function_declaration <./../rules/function_notation/function_declaration.rst>`_
- - `indentation_type <./../rules/whitespace/indentation_type.rst>`_
- - `line_ending <./../rules/whitespace/line_ending.rst>`_
- - `lowercase_keywords <./../rules/casing/lowercase_keywords.rst>`_
- - `method_argument_space <./../rules/function_notation/method_argument_space.rst>`_ with config:
- ``['on_multiline' => 'ensure_fully_multiline']``
- - `no_break_comment <./../rules/control_structure/no_break_comment.rst>`_
- - `no_closing_tag <./../rules/php_tag/no_closing_tag.rst>`_
- - `no_multiple_statements_per_line <./../rules/basic/no_multiple_statements_per_line.rst>`_
- - `no_space_around_double_colon <./../rules/operator/no_space_around_double_colon.rst>`_
- - `no_spaces_after_function_name <./../rules/function_notation/no_spaces_after_function_name.rst>`_
- - `no_trailing_whitespace <./../rules/whitespace/no_trailing_whitespace.rst>`_
- - `no_trailing_whitespace_in_comment <./../rules/comment/no_trailing_whitespace_in_comment.rst>`_
- - `single_blank_line_at_eof <./../rules/whitespace/single_blank_line_at_eof.rst>`_
- - `single_class_element_per_statement <./../rules/class_notation/single_class_element_per_statement.rst>`_ with config:
- ``['elements' => ['property']]``
- - `single_import_per_statement <./../rules/import/single_import_per_statement.rst>`_
- - `single_line_after_imports <./../rules/import/single_line_after_imports.rst>`_
- - `spaces_inside_parentheses <./../rules/whitespace/spaces_inside_parentheses.rst>`_
- - `statement_indentation <./../rules/whitespace/statement_indentation.rst>`_
- - `switch_case_semicolon_to_colon <./../rules/control_structure/switch_case_semicolon_to_colon.rst>`_
- - `switch_case_space <./../rules/control_structure/switch_case_space.rst>`_
- - `visibility_required <./../rules/class_notation/visibility_required.rst>`_ with config:
- ``['elements' => ['method', 'property']]``
|