4.2.27. Remove Written Only Variable¶
This removes variables that are written only.
4.2.27.1. Before¶
<?php
function foo() {
$a = 1;
$a += 2; // No usage of $a
}
?>
4.2.27.2. After¶
<?php
function foo() {
}
?>
4.2.27.3. Suggested Analysis¶
4.2.27.4. Specs¶
Short Name |
Structures/RemoveVariable |
Exakat version |
2.3.0 |
Available in |