===================
Rule set ``@PSR12``
===================

Rules that follow `PSR-12 <https://www.php-fig.org/psr/psr-12/>`_ standard.

Rules
-----

- `@PSR2 <./PSR2.rst>`_
- `blank_line_after_opening_tag <./../rules/php_tag/blank_line_after_opening_tag.rst>`_
- `braces <./../rules/basic/braces.rst>`_
  config:
  ``['allow_single_line_anonymous_class_with_empty_body' => true]``
- `compact_nullable_typehint <./../rules/whitespace/compact_nullable_typehint.rst>`_
- `declare_equal_normalize <./../rules/language_construct/declare_equal_normalize.rst>`_
- `lowercase_cast <./../rules/cast_notation/lowercase_cast.rst>`_
- `lowercase_static_reference <./../rules/casing/lowercase_static_reference.rst>`_
- `new_with_braces <./../rules/operator/new_with_braces.rst>`_
- `no_blank_lines_after_class_opening <./../rules/class_notation/no_blank_lines_after_class_opening.rst>`_
- `no_leading_import_slash <./../rules/import/no_leading_import_slash.rst>`_
- `no_whitespace_in_blank_line <./../rules/whitespace/no_whitespace_in_blank_line.rst>`_
- `ordered_class_elements <./../rules/class_notation/ordered_class_elements.rst>`_
  config:
  ``['order' => ['use_trait']]``
- `ordered_imports <./../rules/import/ordered_imports.rst>`_
  config:
  ``['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none']``
- `return_type_declaration <./../rules/function_notation/return_type_declaration.rst>`_
- `short_scalar_cast <./../rules/cast_notation/short_scalar_cast.rst>`_
- `single_blank_line_before_namespace <./../rules/namespace_notation/single_blank_line_before_namespace.rst>`_
- `single_trait_insert_per_statement <./../rules/class_notation/single_trait_insert_per_statement.rst>`_
- `ternary_operator_spaces <./../rules/operator/ternary_operator_spaces.rst>`_
- `visibility_required <./../rules/class_notation/visibility_required.rst>`_
  config:
  ``['elements' => ['const', 'method', 'property']]``
