## 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.
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| arrays.md | File | 1.58 KB | 0644 |
|
| attributes.md | File | 1.75 KB | 0644 |
|
| classes.md | File | 13.82 KB | 0644 |
|
| commenting.md | File | 5.72 KB | 0644 |
|
| complexity.md | File | 288 B | 0644 |
|
| control-structures.md | File | 9.32 KB | 0644 |
|
| exceptions.md | File | 1.14 KB | 0644 |
|
| files.md | File | 2.54 KB | 0644 |
|
| functions.md | File | 5.21 KB | 0644 |
|
| namespaces.md | File | 7.76 KB | 0644 |
|
| numbers.md | File | 625 B | 0644 |
|
| operators.md | File | 1.11 KB | 0644 |
|
| php.md | File | 3.09 KB | 0644 |
|
| strings.md | File | 392 B | 0644 |
|
| type-hints.md | File | 10.71 KB | 0644 |
|
| variables.md | File | 749 B | 0644 |
|
| whitespaces.md | File | 623 B | 0644 |
|