Skip to content

Commit df442ca

Browse files
binarykactions-user
authored andcommitted
Fix styling
1 parent df400c7 commit df442ca

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Notifications/Slack.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ private function send($item)
5353
$dto = new DevNotificationDto;
5454

5555
if ($item instanceof Throwable) {
56-
5756
if ($this->persist) {
5857
$dto = DevNotificationDto::makeFromExceptionLog(
59-
tap(ExceptionLog::makeFromException($item), fn(ExceptionLog $log) => $log->save())
58+
tap(ExceptionLog::makeFromException($item), fn (ExceptionLog $log) => $log->save())
6059
);
6160
} else {
6261
$dto = DevNotificationDto::makeFromException($item);

tests/Helpers/SlackHelperTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Binarcode\LaravelDeveloper\Tests\Helpers;
44

5-
use Binarcode\LaravelDeveloper\LaravelDeveloper;
65
use Binarcode\LaravelDeveloper\Models\ExceptionLog;
76
use Binarcode\LaravelDeveloper\Notifications\DevNotification;
87
use Binarcode\LaravelDeveloper\Notifications\Slack;
@@ -36,7 +35,7 @@ public function test_slack_helper_can_send_throwable_to_slack()
3635
Notification::fake();
3736

3837
config([
39-
'developer.exception_log_base_url' => 'app.test/{uuid}'
38+
'developer.exception_log_base_url' => 'app.test/{uuid}',
4039
]);
4140

4241
$this->assertInstanceOf(Slack::class, slack(new Exception('not found', 404))->persist());
@@ -45,7 +44,7 @@ public function test_slack_helper_can_send_throwable_to_slack()
4544

4645
$uuid = ExceptionLog::latest()->first()->uuid;
4746

48-
Notification::assertSentTo(new AnonymousNotifiable, DevNotification::class, function(DevNotification $class) use ($uuid) {
47+
Notification::assertSentTo(new AnonymousNotifiable, DevNotification::class, function (DevNotification $class) use ($uuid) {
4948
return $class->notificationDto->attachment_link === "app.test/{$uuid}";
5049
});
5150
}

0 commit comments

Comments
 (0)