PHP 8.2.31
Preview: attributes.md Size: 1.75 KB
//opt/cpanel/ea-wappspector/vendor/slevomat/coding-standard/doc/attributes.md

## Attributes

#### SlevomatCodingStandard.Attributes.AttributeAndTargetSpacing 🔧

Sniff checks lines count between attribute and its target (or target's documentation comment).

Sniff provides the following settings:

* `allowOnSameLine` (default: `false`): allow attribute and its target to be placed on the same line
* `linesCount`: lines count between attribute and its target

#### SlevomatCodingStandard.Attributes.AttributesOrder 🔧

Requires order of attributes. When more attributes are in one `#[]`, e.g. `#[One, Two]`, the first attribute name is used to resolve the order.

Sniff provides the following settings:

* `order`: required order of attributes. Supports prefixes, eg. `ORM\`, and mask , eg. `AppAssert*`.
* `orderAlphabetically`: order attributes alphabetically. Boolean value, default `false`.

Only one order can be set.

```xml
<rule ref="SlevomatCodingStandard.Attributes.AttributesOrder">
	<properties>
		<property name="order" type="array">
			<element value="ORM\Table"/>
			<element value="ORM\"/>
			<element value="One"/>
			<element value="Two"/>
		</property>
	</properties>
</rule>
```

#### SlevomatCodingStandard.Attributes.DisallowAttributesJoining 🔧

Requires that only one attribute can be placed inside `#[]` (no comma-separated list). In case of more attributes applied, they are split into individual `#[]` blocks.

#### SlevomatCodingStandard.Attributes.DisallowMultipleAttributesPerLine 🔧

Disallows multiple attributes of some target on same line.
This sniff treats multiple attributes declared inside one `#[]` as a single attribute. See `DisallowAttributesJoining` to modify this behavior.

#### SlevomatCodingStandard.Attributes.RequireAttributeAfterDocComment 🔧

Requires that attributes are always after documentation comment.

Directory Contents

Dirs: 0 × Files: 17

Name Size Perms Modified Actions
1.58 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
1.75 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
13.82 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
5.72 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
288 B lrw-r--r-- 2025-09-13 08:53:30
Edit Download
9.32 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
1.14 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
2.54 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
5.21 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
7.76 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
625 B lrw-r--r-- 2025-09-13 08:53:30
Edit Download
1.11 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
3.09 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
392 B lrw-r--r-- 2025-09-13 08:53:30
Edit Download
10.71 KB lrw-r--r-- 2025-09-13 08:53:30
Edit Download
749 B lrw-r--r-- 2025-09-13 08:53:30
Edit Download
623 B lrw-r--r-- 2025-09-13 08:53:30
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).