@@ -10,10 +10,10 @@ |
||
10 | 10 | { |
11 | 11 | public function testExceptionIsReportedToSentry() |
12 | 12 | { |
13 | - $this->mock(SentryService::class, function ($mock) { |
|
13 | + $this->mock(SentryService::class, function($mock) { |
|
14 | 14 | $mock->shouldReceive('captureException') |
15 | 15 | ->once() |
16 | - ->withArgs(function ($exception) { |
|
16 | + ->withArgs(function($exception) { |
|
17 | 17 | return $exception instanceof Exception && $exception->getMessage() === 'Test exception'; |
18 | 18 | }); |
19 | 19 | }); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $sentryNotifierMock->shouldReceive('reportSentryNotification') |
37 | 37 | ->once() |
38 | 38 | ->with(Mockery::type(Exception::class)) |
39 | - ->andReturnUsing(function () { |
|
39 | + ->andReturnUsing(function() { |
|
40 | 40 | Notification::send(new NotifableTelegramChannel(123), new TelegramSentryNotification()); |
41 | 41 | }); |
42 | 42 |
@@ -44,11 +44,11 @@ |
||
44 | 44 | |
45 | 45 | $notifableEntityMock = $this->createMock(NotifableEntityInterface::class); |
46 | 46 | |
47 | - $container->bind(MessageFormatterInterface::class, function () use ($formatterMock) { |
|
47 | + $container->bind(MessageFormatterInterface::class, function() use ($formatterMock) { |
|
48 | 48 | return $formatterMock; |
49 | 49 | }); |
50 | 50 | |
51 | - $container->bind(NotifableEntityInterface::class, function () use ($notifableEntityMock) { |
|
51 | + $container->bind(NotifableEntityInterface::class, function() use ($notifableEntityMock) { |
|
52 | 52 | return $notifableEntityMock; |
53 | 53 | }); |
54 | 54 | } |