PHP 8.2.31
Preview: variables.md Size: 749 B
//opt/cpanel/ea-wappspector/vendor/slevomat/coding-standard/doc/variables.md

## Variables

#### SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable

Disallows use of super global variables.

#### SlevomatCodingStandard.Variables.DisallowVariableVariable

Disallows use of variable variables.

#### SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable

Looks for duplicate assignments to a variable.

#### SlevomatCodingStandard.Variables.UnusedVariable

Looks for unused variables.

Sniff provides the following settings:

* `ignoreUnusedValuesWhenOnlyKeysAreUsedInForeach` (default: `false`): ignore unused `$value` in foreach when only `$key` is used

```php
foreach ($values as $key => $value) {
	echo $key;
}
```

#### SlevomatCodingStandard.Variables.UselessVariable 🔧

Looks for useless variables.

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