private collectLiteral ( PHPMD\Node\ASTNode $node ) : void | ||
$node | PHPMD\Node\ASTNode | |
리턴 | void |
private function collectLiteral(ASTNode $node)
{
$variable = '$' . trim($node->getImage(), '\'');
if (!isset($this->images[$variable])) {
$this->images[$variable] = array();
}
$this->images[$variable][] = $node;
}