1.2.1302. Unused Use¶
Unused use statements. They may be removed, as they clutter the code and slows PHP by forcing it to search in this list for nothing.
<?php
use A as B; // Used in a new call.
use Unused; // Never used. May be removed
$a = new B();
?>
1.2.1302.1. Suggestions¶
Remove the unused use
1.2.1302.2. Specs¶
Short name |
Namespaces/UnusedUse |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
Major |
Time To Fix |
Instant (5 mins) |
Precision |
Very high |
Features |
use |
ClearPHP |
|
Available in |