Skip to content

Commit 4d35ed6

Browse files
committed
Update code style
1 parent b83328c commit 4d35ed6

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

app/Console/Commands/PostArticleToTwitter.php

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

resources/views/articles/_form.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ class="block px-4 py-2 text-sm leading-5 text-gray-700 hover:bg-gray-100 hover:t
130130
</span>
131131
@endif
132132
</div>
133-
@if (! Auth::user()->twitterHandle())
133+
@unless (Auth::user()->twitterHandle())
134134
<span class="text-gray-600 text-sm mt-4 block">
135135
Articles will be shared on Twitter. <a href="{{ route('settings.profile') }}" class="text-green-darker">Add your Twitter handle</a> and we'll include that too.
136136
</span>
137-
@endif
137+
@endunless
138138
</div>
139139
</form>

tests/Unit/Commands/PostArticleToTwitterTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class PostArticleToTwitterTest extends TestCase
1818
protected function setUp(): void
1919
{
2020
parent::setUp();
21+
2122
Notification::fake();
2223
}
2324

0 commit comments

Comments
 (0)