Skip to content

Commit e5cd0b8

Browse files
committed
apply StyleCI fixes
1 parent d58b4d4 commit e5cd0b8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Jobs/CreateArticle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

app/Notifications/ArticleSubmitted.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)