protected function requestAuthor()
    {
        if (!empty($this->getComposerData()->authors)) {
            return $this->selectAuthors();
        }

        $nameQuestion = new Question('Please enter your name: ');
        $emailQuestion = new Question('Please enter your e-mail address: ');
        $this->getOutput()->writeln('');
        $this->getOutput()->writeln(
            '<info>Cannot determine the developer name ' .
            'from project\'s composer.json file.</info>'
        );
        $this->getOutput()->writeln(
            "<comment>To automatically set the developer's " .
            "name and e-mail and avoid entering it on every generate:* " .
            "commands set the authors entry on your project's " .
            "composer.json file.</comment>"
        );
        $authorName = $this->getQuestionHelper()->ask(
            $this->getInput(),
            $this->getOutput(),
            $nameQuestion
        );
        $authorEmail = $this->getQuestionHelper()->ask(
            $this->getInput(),
            $this->getOutput(),
            $emailQuestion
        );
        return compact('authorName', 'authorEmail');
    }