original_string: protected function createNewEmailPetition(ProfileWasUpdated $event)
      {
         $event->petition = Auth::user()->makePetitionFor($event->request['email']);
  
          //By selecting a new email address users have to confirm their new selection
          //in order for them to use it as their new email account. Therefore,
          //we will not update the given user email address until he
          //confirms it through his new email account.
          unset($event->request['email']);
      }
code: protected function createNewEmailPetition(ProfileWasUpdated $event)
      {
         $event->petition = Auth::user()->makePetitionFor($event->request['email']);
  
          //By selecting a new email address users have to confirm their new selection
          //in order for them to use it as their new email account. Therefore,
          //we will not update the given user email address until he
          //confirms it through his new email account.
          unset($event->request['email']);
      }
code_tokens: protected function createNewEmailPetition ( ProfileWasUpdated $ event ) { $ event -> petition = Auth :: user ( ) -> makePetitionFor ( $ event -> request [ 'email' ] ) ; //By selecting a new email address users have to confirm their new selection //in order for them to use it as their new email account. Therefore, //we will not update the given user email address until he //confirms it through his new email account. unset ( $ event -> request [ 'email' ] ) ; }
docstring: Creates a new email petition.
  
  @param  ProfileWasUpdated $event
  
  @return void
docstring_tokens: Creates a new email petition .