File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public function handle(): Article
5959 $ article ->authoredBy ($ this ->author );
6060 $ article ->syncTags ($ this ->tags );
6161
62- if (App::environment () !== 'testing ' ){
62+ if (App::environment () !== 'testing ' ) {
6363 (new AnonymousNotifiable ())->notify (new ArticleSubmitted ($ article ));
6464 }
6565
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class ArticleSubmitted extends Notification implements ShouldQueue
1616
1717 public function __construct (Article $ article )
1818 {
19- $ this ->article = $ article ;
19+ $ this ->article = $ article ;
2020 }
2121
2222 public function via ($ notifiable )
@@ -36,8 +36,8 @@ public function toTelegram($notifiable)
3636 private function content (): string
3737 {
3838 $ content = "*New article submitted!* \n\n" ;
39- $ content .= " Title: " . $ this ->article ->title () . "\n" ;
40- $ content .= " By: [@ " . $ this ->article ->author ()->username () . " ]( " . route ('profile ' , $ this ->article ->author ()->username ()) . " ) " ;
39+ $ content .= ' Title: ' . $ this ->article ->title (). "\n" ;
40+ $ content .= ' By: [@ ' . $ this ->article ->author ()->username (). ' ]( ' . route ('profile ' , $ this ->article ->author ()->username ()). ' ) ' ;
4141
4242 return $ content ;
4343 }
You can’t perform that action at this time.
0 commit comments