Skip to content

Commit cf370a2

Browse files
committed
Fix code style
1 parent 48d350b commit cf370a2

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

tests/Unit/Client/NativeCurlClientTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,8 @@ function ($errno, $errstr): bool {
765765

766766
try {
767767
$client->requestGet('/path');
768-
} catch (ClientException $th) {}
768+
} catch (ClientException $th) {
769+
}
769770
}
770771

771772
public function testRequestPostTriggersDeprecationWarning(): void
@@ -809,7 +810,8 @@ function ($errno, $errstr): bool {
809810

810811
try {
811812
$client->requestPost('/path', '');
812-
} catch (ClientException $th) {}
813+
} catch (ClientException $th) {
814+
}
813815
}
814816

815817
public function testRequestPutTriggersDeprecationWarning(): void
@@ -853,7 +855,8 @@ function ($errno, $errstr): bool {
853855

854856
try {
855857
$client->requestPut('/path', '');
856-
} catch (ClientException $th) {}
858+
} catch (ClientException $th) {
859+
}
857860
}
858861

859862
public function testRequestDeleteTriggersDeprecationWarning(): void
@@ -897,7 +900,8 @@ function ($errno, $errstr): bool {
897900

898901
try {
899902
$client->requestDelete('/path');
900-
} catch (ClientException $th) {}
903+
} catch (ClientException $th) {
904+
}
901905
}
902906

903907
public function testHandlingOfResponseWithoutContent(): void

tests/Unit/Client/Psr18ClientTest.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ function ($errno, $errstr): bool {
348348

349349
try {
350350
$client->requestGet('/path');
351-
} catch (ClientException $th) {}
351+
} catch (ClientException $th) {
352+
}
352353
}
353354

354355
public function testRequestPostTriggersDeprecationWarning(): void
@@ -382,7 +383,8 @@ function ($errno, $errstr): bool {
382383

383384
try {
384385
$client->requestPost('/path', '');
385-
} catch (ClientException $th) {}
386+
} catch (ClientException $th) {
387+
}
386388
}
387389

388390
public function testRequestPutTriggersDeprecationWarning(): void
@@ -416,7 +418,8 @@ function ($errno, $errstr): bool {
416418

417419
try {
418420
$client->requestPut('/path', '');
419-
} catch (ClientException $th) {}
421+
} catch (ClientException $th) {
422+
}
420423
}
421424

422425
public function testRequestDeleteTriggersDeprecationWarning(): void
@@ -450,7 +453,8 @@ function ($errno, $errstr): bool {
450453

451454
try {
452455
$client->requestDelete('/path');
453-
} catch (ClientException $th) {}
456+
} catch (ClientException $th) {
457+
}
454458
}
455459

456460
/**

0 commit comments

Comments
 (0)