/** * Tests if the given variable node represents a local variable or if it is * a static object property or something similar. * * @param PHP_PMD_Node_ASTNode $variable The variable to check. * * @return boolean */ protected function isLocal(PHP_PMD_Node_ASTNode $variable) { return false === $variable->isThis() && $this->isNotSuperGlobal($variable) && $this->isRegularVariable($variable); }