Skip to content

Commit 9ff48fd

Browse files
mckenzieartsgithub-actions[bot]
authored andcommitted
Fix code styling
1 parent 123ab0a commit 9ff48fd

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

app/Console/Commands/NotifyPendingArticles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
namespace App\Console\Commands;
66

77
use App\Models\Article;
8+
use App\Notifications\PendingArticlesNotification;
89
use Illuminate\Console\Command;
910
use Illuminate\Notifications\AnonymousNotifiable;
10-
use App\Notifications\PendingArticlesNotification;
1111

1212
final class NotifyPendingArticles extends Command
1313
{
@@ -23,4 +23,4 @@ public function handle(AnonymousNotifiable $notifiable): void
2323
$notifiable->notify(new PendingArticlesNotification($pendingArticles));
2424
}
2525
}
26-
}
26+
}

app/Console/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ protected function commands(): void
3131
{
3232
$this->load(__DIR__.'/Commands');
3333
}
34-
}
34+
}

app/Notifications/PendingArticlesNotification.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
namespace App\Notifications;
66

77
use Illuminate\Bus\Queueable;
8-
use Illuminate\Notifications\Notification;
9-
use Illuminate\Contracts\Queue\ShouldQueue;
108
use Illuminate\Database\Eloquent\Collection;
11-
use Illuminate\Notifications\Messages\MailMessage;
9+
use Illuminate\Notifications\Notification;
1210
use NotificationChannels\Telegram\TelegramChannel;
1311
use NotificationChannels\Telegram\TelegramMessage;
1412

@@ -42,11 +40,11 @@ private function content(): string
4240
'profile_url' => route('profile', $article->user?->username),
4341
'title' => $article->title,
4442
'url' => route('articles.show', $article->slug),
45-
'date' => $article->submitted_at->translatedFormat('d/m/Y')
43+
'date' => $article->submitted_at->translatedFormat('d/m/Y'),
4644
]
4745
);
4846
}
4947

5048
return $message;
5149
}
52-
}
50+
}

tests/Feature/Forum/DiscussionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@
6969

7070
// When providing a slug with invalid url characters, a random 5 character string is returned.
7171
expect($discussion->slug())->toMatch('/\w{5}/');
72-
});
72+
});

tests/Feature/Forum/ThreadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,4 @@ function createActiveThread(): Thread
187187
$reply->save();
188188

189189
return $thread;
190-
}
190+
}

tests/Feature/NotifyPendingArticlesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use App\Models\Article;
77
use Illuminate\Support\Facades\Notification;
88

9-
beforeEach(fn() => Notification::fake());
9+
beforeEach(fn () => Notification::fake());
1010

1111
it('will send a notification when there are pending articles', function (): void {
1212
Article::factory()->createMany([
@@ -46,4 +46,4 @@
4646

4747
Notification::assertNothingSent();
4848
Notification::assertCount(0);
49-
});
49+
});

0 commit comments

Comments
 (0)