original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Asks the author name and e-mail and returns them
  
  @return array
docstring_tokens: Asks the author name and e - mail and returns them