Skip to content

Commit 5270914

Browse files
joedixonStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent e8412f1 commit 5270914

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/Console/Commands/PostArticleToTwitter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ final class PostArticleToTwitter extends Command
1818
public function __construct(AnonymousNotifiable $notifiable)
1919
{
2020
parent::__construct();
21-
21+
2222
$this->notifiable = $notifiable;
2323
}
2424

tests/Unit/Commands/PostArticleToTwitterTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PostArticleToTwitterTest extends TestCase
1818
protected function setUp(): void
1919
{
2020
parent::setUp();
21-
21+
2222
Notification::fake();
2323
}
2424

@@ -38,11 +38,11 @@ public function published_articles_can_be_shared_on_twitter()
3838
PostArticleToTwitterNotification::class,
3939
function ($notification, $channels, $notifiable) use ($article) {
4040
$tweet = $notification->generateTweet();
41-
return (
41+
42+
return
4243
Str::contains($tweet, 'My First Article') &&
43-
Str::contains($tweet, route('articles.show', $article->slug()))
44-
);
45-
}
44+
Str::contains($tweet, route('articles.show', $article->slug()));
45+
},
4646
);
4747

4848
$this->assertTrue($article->fresh()->isShared());
@@ -66,9 +66,9 @@ public function articles_are_shared_with_twitter_handle()
6666
Notification::assertSentTo(
6767
new AnonymousNotifiable(),
6868
PostArticleToTwitterNotification::class,
69-
function ($notification, $channels, $notifiable) use ($user) {
69+
function ($notification, $channels, $notifiable) {
7070
return Str::contains($notification->generateTweet(), '@_joedixon');
71-
}
71+
},
7272
);
7373
}
7474

@@ -91,9 +91,9 @@ public function articles_are_shared_with_name_when_no_twitter_handle()
9191
Notification::assertSentTo(
9292
new AnonymousNotifiable(),
9393
PostArticleToTwitterNotification::class,
94-
function ($notification, $channels, $notifiable) use ($user) {
94+
function ($notification, $channels, $notifiable) {
9595
return Str::contains($notification->generateTweet(), 'Joe Dixon');
96-
}
96+
},
9797
);
9898
}
9999

0 commit comments

Comments
 (0)