Skip to content

Commit ad44858

Browse files
committed
7201: Applied coding standards
1 parent 697e0ef commit ad44858

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/HttpClient/LoggingHttpClientTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testRequestLogsAtConfiguredLevel(): void
2727
->with(
2828
'info',
2929
'{method} {url} {status_code} {duration}ms',
30-
$this->callback(fn(array $context) => 'GET' === $context['method']
30+
$this->callback(fn (array $context) => 'GET' === $context['method']
3131
&& 'https://example.com/api' === $context['url']
3232
&& 200 === $context['status_code']
3333
&& is_float($context['duration']))
@@ -73,7 +73,7 @@ public function testRequestLogsErrorOnTransportException(): void
7373
->method('error')
7474
->with(
7575
'{method} {url} failed after {duration}ms: {error}',
76-
$this->callback(fn(array $context) => 'POST' === $context['method']
76+
$this->callback(fn (array $context) => 'POST' === $context['method']
7777
&& 'https://example.com/fail' === $context['url']
7878
&& 'Connection refused' === $context['error']
7979
&& is_float($context['duration']))
@@ -150,7 +150,7 @@ public function testNon2xxStatusCodeIsStillLogged(): void
150150
->with(
151151
'info',
152152
'{method} {url} {status_code} {duration}ms',
153-
$this->callback(fn(array $context) => 500 === $context['status_code'])
153+
$this->callback(fn (array $context) => 500 === $context['status_code'])
154154
);
155155

156156
$client = new LoggingHttpClient($inner, $logger, 'info');

0 commit comments

Comments
 (0)