We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b159ab7 commit dab8308Copy full SHA for dab8308
app/Console/Commands/PostArticleToTwitter.php
@@ -22,14 +22,12 @@ public function __construct(AnonymousNotifiable $notifiable)
22
$this->notifiable = $notifiable;
23
}
24
25
- public function handle()
+ public function handle(): void
26
{
27
- if (! $article = Article::nextForSharing()) {
28
- return;
29
- }
30
-
31
- $this->notifiable->notify(new PostArticleToTwitterNotification($article));
+ if ($article = Article::nextForSharing()) {
+ $this->notifiable->notify(new PostArticleToTwitterNotification($article));
32
33
- $article->markAsShared();
+ $article->markAsShared();
+ }
34
35
0 commit comments