Kahlan\Jit\Patchers::process PHP Method

process() public method

Runs file patchers.
public process ( string $code, string $path = null ) : string
$code string The source code to process.
$path string The file path of the source code.
return string The patched source code.
    public function process($code, $path = null)
    {
        if (!$code) {
            return '';
        }
        $nodes = Parser::parse($code);
        foreach ($this->_patchers as $patcher) {
            $patcher->process($nodes, $path);
        }
        return Parser::unparse($nodes);
    }