JonathanTorres\Construct\Construct::contributing PHP Method

contributing() protected method

Generate CONTRIBUTING.md file.
protected contributing ( ) : void
return void
    protected function contributing()
    {
        if ($this->settings->withPhpcsConfiguration()) {
            $contributing = $this->file->get(__DIR__ . '/stubs/CONTRIBUTING.PHPCS.stub');
        } else {
            $contributing = $this->file->get(__DIR__ . '/stubs/CONTRIBUTING.stub');
        }
        $placeholder = ['{project_lower}', '{git_message_path}'];
        $replacements = [$this->projectLower, '.gitmessage'];
        if ($this->settings->withGithubTemplates()) {
            $replacements = [$this->projectLower, '../.gitmessage'];
        }
        $content = str_replace($placeholder, $replacements, $contributing);
        $this->file->put($this->projectLower . '/' . 'CONTRIBUTING.md', $content);
        $this->exportIgnores[] = 'CONTRIBUTING.md';
    }