1.2.195. Collects Names

Collects the names used in the code. Names are extracted from namespaces, classes, interfaces, traits, enumerations, variables (parameter and local variable), properties, constants, methods, functions, use expression (with as).

Variables names are trimmed of their $ sign. Namespaces are kept as a whole. Each name has the type from the code.

The following code provides 3 values ; parameter, foo and local.

<?php

function foo($parameter) {
     $local = $parameter;
}

?>

1.2.195.1. Specs

Short name

Dump/CollectsNames

Rulesets

All, Dump

Exakat since

2.5.3

PHP Version

All

Severity

Minor

Time To Fix

Quick (30 mins)

Precision

Very high

Available in

Entreprise Edition, Exakat Cloud