src/Compiler.php
private function run($compiler, $string)
    {
        $compiler = $this->getCompilerInstance($compiler);

        return preg_replace_callback($compiler->getPattern(), function ($matches) use ($compiler) {
            return $compiler->compile($matches);
        }, $string);
    }
private function run($compiler, $string)
    {
        $compiler = $this->getCompilerInstance($compiler);

        return preg_replace_callback($compiler->getPattern(), function ($matches) use ($compiler) {
            return $compiler->compile($matches);
        }, $string);
    }
private function run ( $ compiler , $ string ) { $ compiler = $ this -> getCompilerInstance ( $ compiler ) ; return preg_replace_callback ( $ compiler -> getPattern ( ) , function ( $ matches ) use ( $ compiler ) { return $ compiler -> compile ( $ matches ) ; } , $ string ) ; }
Run the compiler

@param  string $compiler
@param  string $string
@return mixed
Run the compiler