Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 11, 2024
1 parent 48d350b commit cf370a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions tests/Unit/Client/NativeCurlClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@ function ($errno, $errstr): bool {

try {
$client->requestGet('/path');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

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

try {
$client->requestPost('/path', '');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

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

try {
$client->requestPut('/path', '');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

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

try {
$client->requestDelete('/path');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

public function testHandlingOfResponseWithoutContent(): void
Expand Down
12 changes: 8 additions & 4 deletions tests/Unit/Client/Psr18ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ function ($errno, $errstr): bool {

try {
$client->requestGet('/path');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

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

try {
$client->requestPost('/path', '');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

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

try {
$client->requestPut('/path', '');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

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

try {
$client->requestDelete('/path');
} catch (ClientException $th) {}
} catch (ClientException $th) {
}
}

/**
Expand Down

0 comments on commit cf370a2

Please sign in to comment.