JonathanTorres\Construct\Construct::githubTemplates PHP Метод

githubTemplates() защищенный Метод

Generate GitHub template files.
protected githubTemplates ( ) : void
Результат void
    protected function githubTemplates()
    {
        $this->file->makeDirectory($this->projectLower . '/.github', true);
        $templates = ['ISSUE_TEMPLATE', 'PULL_REQUEST_TEMPLATE'];
        foreach ($templates as $template) {
            $this->file->copy(__DIR__ . '/stubs/github/' . $template . '.stub', $this->projectLower . '/.github/' . $template . '.md');
        }
        $this->file->move($this->projectLower . '/CONTRIBUTING.md', $this->projectLower . '/.github/CONTRIBUTING.md');
        $index = array_search('CONTRIBUTING.md', $this->exportIgnores);
        unset($this->exportIgnores[$index]);
        $this->exportIgnores[] = '.github/';
    }