original_string: protected function emailWasChanged(ProfileWasUpdated $event) : bool
      {
          $newEmail = $event->request->get('email');
  
          return ! is_null($newEmail) && $newEmail != Auth::user()->email;
      }
code: protected function emailWasChanged(ProfileWasUpdated $event) : bool
      {
          $newEmail = $event->request->get('email');
  
          return ! is_null($newEmail) && $newEmail != Auth::user()->email;
      }
code_tokens: protected function emailWasChanged ( ProfileWasUpdated $ event ) : bool { $ newEmail = $ event -> request -> get ( 'email' ) ; return ! is_null ( $ newEmail ) && $ newEmail != Auth :: user ( ) -> email ; }
docstring: Checks whether the user changed his email address.
  
  @param  ProfileWasUpdated $event
  
  @return bool
docstring_tokens: Checks whether the user changed his email address .