Skip to content

Commit dab8308

Browse files
committed
Update code style
1 parent b159ab7 commit dab8308

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

app/Console/Commands/PostArticleToTwitter.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ public function __construct(AnonymousNotifiable $notifiable)
2222
$this->notifiable = $notifiable;
2323
}
2424

25-
public function handle()
25+
public function handle(): void
2626
{
27-
if (! $article = Article::nextForSharing()) {
28-
return;
29-
}
30-
31-
$this->notifiable->notify(new PostArticleToTwitterNotification($article));
27+
if ($article = Article::nextForSharing()) {
28+
$this->notifiable->notify(new PostArticleToTwitterNotification($article));
3229

33-
$article->markAsShared();
30+
$article->markAsShared();
31+
}
3432
}
3533
}

0 commit comments

Comments
 (0)