@@ -25,7 +25,7 @@ class ComplaintNotification extends Notification
2525 * @param string $mailAddress
2626 * @return void
2727 */
28- public function __construct ($ offendingUrls , $ reason , $ name ='' , $ mailAddress ='' )
28+ public function __construct ($ offendingUrls , $ reason , $ name ='None ' , $ mailAddress ='None ' )
2929 {
3030 $ this ->offendingUrls = $ offendingUrls ;
3131 $ this ->reason = $ reason ;
@@ -52,22 +52,19 @@ public function via($notifiable)
5252 */
5353 public function toMail ($ notifiable )
5454 {
55- $ mailAddress = $ this ->mailAddress ? $ this ->mailAddress :'None ' ;
56- $ name = $ this ->name ? $ this ->name :'None ' ;
57-
5855 $ mailFrom = config ('app.complaint-mail-sender ' );
5956 $ mailSubject = config ('app.name ' ) . ': Report of Illegal Content ' ;
6057
6158 return (new MailMessage )
6259 ->from ($ mailFrom )
6360 ->subject ($ mailSubject )
6461 ->line (Lang::get ('A message via the wikibase.cloud form for reporting illegal content has been submitted. ' ))
65- ->line (Lang::get ('Reporter name: ' ) . $ name )
66- ->line (Lang::get ('Reporter email address: ' ) . $ mailAddress )
67- ->line (Lang::get ('Reason: ' ))
62+ ->line (Lang::get ('Reporter name: ' ) . $ this -> name )
63+ ->line (Lang::get ('Reporter email address: ' ) . $ this -> mailAddress )
64+ ->line (Lang::get ('Reason why the information in question is illegal content : ' ))
6865 ->line ($ this ->reason )
6966 ->line ('--- ' )
70- ->line (Lang::get ('Reported URLs : ' ))
67+ ->line (Lang::get ('URL(s) for the content in question : ' ))
7168 ->line ($ this ->offendingUrls )
7269 ->line ('--- ' );
7370 }
0 commit comments