---
title: "format/attributes"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

PHP attributes (#[...]). Also in [analyse](/docs/rules/analyse/attributes) (14).

**[empty-parentheses](/docs/rules/format/attributes/empty-parentheses)**

PHP attributes declared without arguments must (not) be followed by empty parentheses.

Not in any preset. Safe fix.

**[no-block-spaces](/docs/rules/format/attributes/no-block-spaces)**

Remove spaces before and after the attributes block.

Not in any preset. Safe fix.

**[ordered](/docs/rules/format/attributes/ordered)**

Sorts attributes using the configured sort algorithm.

Not in any preset. Safe fix.
