Naneau\Obfuscator\Node\Visitor\ScramblePrivateMethod::enterNode PHP Method

enterNode() public method

Check all variable nodes
public enterNode ( PhpParser\Node $node ) : void
$node PhpParser\Node
return void
    public function enterNode(Node $node)
    {
        if ($this->shouldSkip()) {
            return;
        }
        // Scramble calls
        if ($node instanceof MethodCall || $node instanceof StaticCall) {
            // Node wasn't renamed
            if (!$this->isRenamed($node->name)) {
                return;
            }
            // Scramble usage
            return $this->scramble($node);
        }
    }