src/Runner/Action/PHP.php
/**
     * Execute static method call and return its output.
     *
     * @param  string $class
     * @return string
     */
Execute static method call and return its output.
@param  string $class
@return string
Execute static method call and return its output . @param string $class @return string
protected function executeStatic(string $class) : string
    {
        list($class, $method) = explode('::', $class);
        if (!class_exists($class)) {
            throw new \RuntimeException('could not find class: ' . $class);
        }
        if (!method_exists($class, $method)) {
            throw new \RuntimeException('could not find method in class: ' . $method);
        }
        ob_start();
        $class::$method();
        return ob_get_clean();
    }
protected function executeStatic ( string $ class ) : string { list ( $ class , $ method ) = explode ( '::' , $ class ) ; if ( ! class_exists ( $ class ) ) { throw new \ RuntimeException ( 'could not find class: ' . $ class ) ; } if ( ! method_exists ( $ class , $ method ) ) { throw new \ RuntimeException ( 'could not find method in class: ' . $ method ) ; } ob_start ( ) ; $ class :: $ method ( ) ; return ob_get_clean ( ) ; }
Execute static method call and return its output.
Execute static method call and return its output .