src/StubBuilder.php
/**
     * Build stub by replacing the wildcards with the params.
     *
     * @param string $path
     * @param array $params
     * @return string
     */
Build stub by replacing the wildcards with the params.
@param string $path
@param array $params
@return string
Build stub by replacing the wildcards with the params . @param string $path @param array $params @return string
public function build(string $path, array $params = []): string
    {
        $stub = $this->getStub($path);
        return str_replace(
            array_keys($params),
            array_values($params),
            $stub
        );
    }
public function build ( string $ path , array $ params = [ ] ) : string { $ stub = $ this -> getStub ( $ path ) ; return str_replace ( array_keys ( $ params ) , array_values ( $ params ) , $ stub ) ; }
Build stub by replacing the wildcards with the params.
Build stub by replacing the wildcards with the params .