Devise\Pages\Interpreter\Modifiers\EchoDeviseMagic::examineFunction PHP Method

examineFunction() protected method

Examines the function node for places to put dvsmagic() wrappers
protected examineFunction ( PhpParser\Node $node ) : PhpParser\Node
$node PhpParser\Node
return PhpParser\Node
    protected function examineFunction($node)
    {
        $args = [];
        if (!$this->isWhiteListedFunction($node)) {
            return $node;
        }
        foreach ($node->args as $arg) {
            $args[] = $this->examineExpression($arg);
        }
        $node->args = $args;
        return $node;
    }