Skip to content

Commit dfd05b5

Browse files
keradusnicolas-grekas
authored andcommitted
DX: re-apply PHP CS Fixer, partially
1 parent a4d0e09 commit dfd05b5

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

NativeHttpClient.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,14 @@ public function request(string $method, string $url, array $options = []): Respo
203203
}
204204

205205
switch ($cryptoMethod = $options['crypto_method']) {
206-
case \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT: $cryptoMethod |= \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT;
207-
case \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT: $cryptoMethod |= \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
208-
case \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT: $cryptoMethod |= \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT;
206+
case \STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT:
207+
$cryptoMethod |= \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT;
208+
// no break
209+
case \STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT:
210+
$cryptoMethod |= \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
211+
// no break
212+
case \STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT:
213+
$cryptoMethod |= \STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT;
209214
}
210215

211216
$context = [

Psr18Client.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@
2828
use Psr\Http\Message\UriFactoryInterface;
2929
use Psr\Http\Message\UriInterface;
3030
use Symfony\Component\HttpClient\Internal\HttplugWaitLoop;
31-
use Symfony\Component\HttpClient\Response\StreamableInterface;
32-
use Symfony\Component\HttpClient\Response\StreamWrapper;
3331
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
3432
use Symfony\Contracts\HttpClient\HttpClientInterface;
35-
use Symfony\Contracts\HttpClient\ResponseInterface as HttpClientResponseInterface;
3633
use Symfony\Contracts\Service\ResetInterface;
3734

3835
if (!interface_exists(ClientInterface::class)) {

0 commit comments

Comments
 (0)