Skip to content

Commit dc6ac04

Browse files
committed
fix CS
1 parent cd9f4bc commit dc6ac04

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/Error/SentryErrorLogger.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(array $config)
3636
public function logException(
3737
Throwable $exception,
3838
?ServerRequestInterface $request = null,
39-
bool $includeTrace = false
39+
bool $includeTrace = false,
4040
): void {
4141
$this->logger->logException($exception, $request, $includeTrace);
4242
if (Hash::check($this->config, 'dsn')) {
@@ -50,7 +50,7 @@ public function logException(
5050
public function logError(
5151
PhpError $error,
5252
?ServerRequestInterface $request = null,
53-
bool $includeTrace = false
53+
bool $includeTrace = false,
5454
): void {
5555
$this->logger->logError($error, $request, $includeTrace);
5656
if (Hash::check($this->config, 'dsn')) {

src/Http/SentryClient.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ protected function addQueryBreadcrumbs(): void
101101
type: Breadcrumb::TYPE_DEFAULT,
102102
category: 'sql.query',
103103
message: $context['query'],
104-
metadata: $data
105-
)
104+
metadata: $data,
105+
),
106106
);
107107
}
108108
}
@@ -120,7 +120,7 @@ protected function addQueryBreadcrumbs(): void
120120
public function captureException(
121121
Throwable $exception,
122122
?ServerRequestInterface $request = null,
123-
?array $extras = null
123+
?array $extras = null,
124124
): void {
125125
$eventManager = $this->getEventManager();
126126
$event = new Event('CakeSentry.Client.beforeCapture', $this, compact('exception', 'request'));
@@ -151,7 +151,7 @@ public function captureException(
151151
public function captureError(
152152
PhpError $error,
153153
?ServerRequestInterface $request = null,
154-
?array $extras = null
154+
?array $extras = null,
155155
): void {
156156
$eventManager = $this->getEventManager();
157157
$event = new Event('CakeSentry.Client.beforeCapture', $this, compact('error', 'request'));
@@ -181,7 +181,7 @@ public function captureError(
181181
$lastEventId = captureMessage(
182182
$error->getMessage(),
183183
Severity::fromError($error->getCode()),
184-
$hint ?? null
184+
$hint ?? null,
185185
);
186186
$event = new Event('CakeSentry.Client.afterCapture', $this, compact('error', 'request', 'lastEventId'));
187187
$eventManager->dispatch($event);

tests/TestCase/Http/ClientTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function testSetupClientSetSendCallback(): void
9393

9494
$this->assertSame(
9595
$callback(SentryEvent::createEvent(), null),
96-
$actual(SentryEvent::createEvent(), null)
96+
$actual(SentryEvent::createEvent(), null),
9797
);
9898

9999
restore_error_handler();
@@ -110,7 +110,7 @@ public function testSetupClientDispatchAfterSetup(): void
110110
'CakeSentry.Client.afterSetup',
111111
function () use (&$called) {
112112
$called = true;
113-
}
113+
},
114114
);
115115

116116
CakeSentryInit::init();
@@ -241,7 +241,7 @@ public function testCaptureDispatchBeforeExceptionCapture(): void
241241
'CakeSentry.Client.beforeCapture',
242242
function () use (&$called) {
243243
$called = true;
244-
}
244+
},
245245
);
246246

247247
$exception = new RuntimeException('Some error');
@@ -262,7 +262,7 @@ public function testCaptureDispatchBeforeErrorCapture(): void
262262
'CakeSentry.Client.beforeCapture',
263263
function () use (&$called) {
264264
$called = true;
265-
}
265+
},
266266
);
267267

268268
$phpError = new PhpError(E_USER_WARNING, 'Some error', '/my/app/path/test.php', 123);
@@ -284,7 +284,7 @@ public function testCaptureDispatchAfterExceptionCapture(): void
284284
function (Event $event) use (&$called, &$actualLastEventId) {
285285
$called = true;
286286
$actualLastEventId = $event->getData('lastEventId');
287-
}
287+
},
288288
);
289289

290290
$phpError = new RuntimeException('Some error');
@@ -307,7 +307,7 @@ public function testCaptureDispatchAfterErrorCapture(): void
307307
function (Event $event) use (&$called, &$actualLastEventId) {
308308
$called = true;
309309
$actualLastEventId = $event->getData('lastEventId');
310-
}
310+
},
311311
);
312312

313313
$phpError = new PhpError(E_USER_WARNING, 'Some error', '/my/app/path/test.php', 123);

0 commit comments

Comments
 (0)