12345678910111213141516171819202122232425262728293031323334353637383940 |
- ==================
- 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>`_
- - `braces <./../rules/basic/braces.rst>`_
- - `class_definition <./../rules/class_notation/class_definition.rst>`_
- - `constant_case <./../rules/casing/constant_case.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>`_
- 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_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_spaces_inside_parenthesis <./../rules/whitespace/no_spaces_inside_parenthesis.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>`_
- 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>`_
- - `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>`_
- config:
- ``['elements' => ['method', 'property']]``
|