App\Console\Commands\ThemeMake::buildCode PHP Method

buildCode() protected method

buildCode
protected buildCode ( $stub ) : string
$stub
return string
    protected function buildCode($stub)
    {
        $code = $this->files->get($this->getStub($stub));
        /*
         * DummyNamespace
         * DummyClass
         * DummyPluginId
         * DummyThemeDirname
         */
        $this->replaceCode($code, 'DummyNamespace', $this->attr('namespace') . '\\Theme')->replaceCode($code, 'DummyClass', $this->attr('themeClass'))->replaceCode($code, 'DummyPluginId', $this->attr('plugin')->getId())->replaceCode($code, 'DummyThemeDirname', $this->attr('path'));
        return $code;
    }