PHPMD\Rule\UnusedLocalVariable::isNameAllowedInContext PHP Method

isNameAllowedInContext() private method

Checks if a short name is acceptable in the current context. For the moment these contexts are the init section of a for-loop and short variable names in catch-statements.
private isNameAllowedInContext ( PHPMD\AbstractNode $node ) : boolean
$node PHPMD\AbstractNode
return boolean
    private function isNameAllowedInContext(AbstractNode $node)
    {
        return $this->isChildOf($node, 'CatchStatement');
    }