protected function getAuthor()
    {
        if (
            !isset($this->getComposerData()->authors) ||
            count($this->getComposerData()->authors) != 1
        ) {
            return $this->requestAuthor();
        }

        return [
            'authorName' => $this->getComposerData()->authors[0]->name,
            'authorEmail' => $this->getComposerData()->authors[0]->email
        ];
    }
protected function getAuthor()
    {
        if (
            !isset($this->getComposerData()->authors) ||
            count($this->getComposerData()->authors) != 1
        ) {
            return $this->requestAuthor();
        }

        return [
            'authorName' => $this->getComposerData()->authors[0]->name,
            'authorEmail' => $this->getComposerData()->authors[0]->email
        ];
    }
protected function getAuthor ( ) { if ( ! isset ( $ this -> getComposerData ( ) -> authors ) || count ( $ this -> getComposerData ( ) -> authors ) != 1 ) { return $ this -> requestAuthor ( ) ; } return [ 'authorName' => $ this -> getComposerData ( ) -> authors [ 0 ] -> name , 'authorEmail' => $ this -> getComposerData ( ) -> authors [ 0 ] -> email ] ; }
Gets the author name and e-mail

@return array
Gets the author name and e - mail