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

## Arrays

#### SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys 🔧

Arrays should be defined with keys in alphabetical order.
It defines where new entries should be inserted.
It reduces merge conflicts and duplicate entries.

This sniff enforces natural sorting of array definitions by key in multi-line arrays.

#### SlevomatCodingStandard.Arrays.ArrayAccess 🔧

Disallow whitespace between array access operator and the variable, or between array access operators.

#### SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation

Disallows implicit array creation.

#### SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed 🚧

Array must have keys specified for either all or none of the values.

#### SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement 🔧

Enforces reasonable end bracket placement for multi-line arrays.

#### SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace 🔧

Checks whitespace in single line array declarations (whitespace between brackets, around commas, ...).

Sniff provides the following settings:

* `spacesAroundBrackets`: number of spaces you require to have around array brackets
* `enableEmptyArrayCheck` (default: `false`): enables check for empty arrays

#### SlevomatCodingStandard.Arrays.TrailingArrayComma 🔧

Commas after last element in an array make adding a new element easier and result in a cleaner versioning diff.

This sniff enforces trailing commas in multi-line arrays.

Sniff provides the following settings:

* `enableAfterHeredoc`: enables/disables trailing commas after HEREDOC/NOWDOC, default based on PHP version.

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).