protected function selectAuthors()
    {
        $options = $this->getAuthorsAsOptions();
        $this->getOutput()->writeln('');
        $this->getOutput()->writeln(
            '<info>Multiple authors found on ' .
            'project\'s composer.json file.</info>'
        );
        $question = new ChoiceQuestion(
            'Please select the author from the list above:',
            $options,
            0
        );
        $question->setErrorMessage('The choice %s is invalid.');
        $selected = $this->getQuestionHelper()
            ->ask($this->input, $this->output, $question);
        $parts = explode('<', $selected);
        return [
            'authorName' => trim($parts[0]),
            'authorEmail' => trim($parts[1], '>'),
        ];
    }
protected function selectAuthors()
    {
        $options = $this->getAuthorsAsOptions();
        $this->getOutput()->writeln('');
        $this->getOutput()->writeln(
            '<info>Multiple authors found on ' .
            'project\'s composer.json file.</info>'
        );
        $question = new ChoiceQuestion(
            'Please select the author from the list above:',
            $options,
            0
        );
        $question->setErrorMessage('The choice %s is invalid.');
        $selected = $this->getQuestionHelper()
            ->ask($this->input, $this->output, $question);
        $parts = explode('<', $selected);
        return [
            'authorName' => trim($parts[0]),
            'authorEmail' => trim($parts[1], '>'),
        ];
    }
protected function selectAuthors ( ) { $ options = $ this -> getAuthorsAsOptions ( ) ; $ this -> getOutput ( ) -> writeln ( '' ) ; $ this -> getOutput ( ) -> writeln ( '<info>Multiple authors found on ' . 'project\'s composer.json file.</info>' ) ; $ question = new ChoiceQuestion ( 'Please select the author from the list above:' , $ options , 0 ) ; $ question -> setErrorMessage ( 'The choice %s is invalid.' ) ; $ selected = $ this -> getQuestionHelper ( ) -> ask ( $ this -> input , $ this -> output , $ question ) ; $ parts = explode ( '<' , $ selected ) ; return [ 'authorName' => trim ( $ parts [ 0 ] ) , 'authorEmail' => trim ( $ parts [ 1 ] , '>' ) , ] ; }
Requests user to select author form a list of composer authors
and returns them.

@return array
Requests user to select author form a list of composer authors and returns them .