public function run($function)
    {
        $canEcho = ['stop', 'append', 'replace', 'section', 'block', 'endblock'];
        if (in_array($function, $canEcho, true)) {
            return call_user_func_array([$this, 'doRun'], func_get_args());
        }

        return call_user_func_array([$this, 'doRunIsolated'], func_get_args());
    }
public function run($function)
    {
        $canEcho = ['stop', 'append', 'replace', 'section', 'block', 'endblock'];
        if (in_array($function, $canEcho, true)) {
            return call_user_func_array([$this, 'doRun'], func_get_args());
        }

        return call_user_func_array([$this, 'doRunIsolated'], func_get_args());
    }
public function run ( $ function ) { $ canEcho = [ 'stop' , 'append' , 'replace' , 'section' , 'block' , 'endblock' ] ; if ( in_array ( $ function , $ canEcho , true ) ) { return call_user_func_array ( [ $ this , 'doRun' ] , func_get_args ( ) ) ; } return call_user_func_array ( [ $ this , 'doRunIsolated' ] , func_get_args ( ) ) ; }
Run a registered function and return the result.

@param  string $function
@return mixed
@see \Foil\Kernel\Command::doRunIsolated()
@see \Foil\Kernel\Command::doRun()
Run a registered function and return the result .