Code Duplication    Length = 8-8 lines in 2 locations

src/Console/GithubInitCommand.php 1 location

@@ 128-135 (lines=8) @@
125
     * @param OutputInterface $output
126
     * @return array
127
     */
128
    protected function getGithubUserNameFromConfig(OutputInterface $output)
129
    {
130
        $username = $this->parser->getGitHubUsername();
131
        if (is_null($username)) {
132
            $this->showErrorRunLlumInitFirst($output,'username');
133
        }
134
        return $username;
135
    }
136
137
    /**
138
     * Run git init command.

src/Console/GithubRepoCommand.php 1 location

@@ 117-124 (lines=8) @@
114
     * @param OutputInterface $input
115
     * @return array
116
     */
117
    public function getCredentials(OutputInterface $output)
118
    {
119
        $credentials = $this->parser->getCredentials();
120
        if ( is_null($credentials)) {
121
            $this->showErrorRunLlumInitFirst($output,"Credentials");
122
        };
123
        return $credentials;
124
    }
125
126
    /**
127
     * Obtain repo name.