Skip to content

Commit 110d13b

Browse files
keradusnicolas-grekas
authored andcommitted
DX: re-apply PHP CS Fixer, partially
1 parent 5bdf2f0 commit 110d13b

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

src/Symfony/Bridge/ProxyManager/Tests/LazyProxy/PhpDumper/ProxyDumperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static function getPrivatePublicDefinitions()
9393
{
9494
return [
9595
[
96-
(new Definition(__CLASS__)),
96+
new Definition(__CLASS__),
9797
'privates',
9898
],
9999
[

src/Symfony/Bundle/DebugBundle/DependencyInjection/DebugExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Symfony\Component\DependencyInjection\Loader\PhpFileLoader;
2121
use Symfony\Component\DependencyInjection\Reference;
2222
use Symfony\Component\VarDumper\Caster\ReflectionCaster;
23-
use Symfony\Component\VarDumper\Dumper\HtmlDumper;
2423

2524
/**
2625
* DebugExtension.

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/TestBundle.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle;
1313

14-
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\DependencyInjection\AnnotationReaderPass;
1514
use Symfony\Bundle\FrameworkBundle\Tests\Functional\Bundle\TestBundle\DependencyInjection\Config\CustomConfig;
1615
use Symfony\Component\DependencyInjection\Compiler\CheckTypeDeclarationsPass;
1716
use Symfony\Component\DependencyInjection\Compiler\PassConfig;

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public function testFindInvalidNamespace()
352352
$this->expectException(NamespaceNotFoundException::class);
353353
$this->expectExceptionMessage('There are no commands defined in the "bar" namespace.');
354354

355-
(new Application)->findNamespace('bar');
355+
(new Application())->findNamespace('bar');
356356
}
357357

358358
public function testFindUniqueNameButNamespaceName()

src/Symfony/Component/HttpClient/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 = [

src/Symfony/Component/HttpClient/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)) {

src/Symfony/Component/Ldap/Adapter/ConnectionInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ public function isBound(): bool;
2828
/**
2929
* Binds the connection against a user's DN and password.
3030
*
31+
* @return void
32+
*
3133
* @throws AlreadyExistsException When the connection can't be created because of an LDAP_ALREADY_EXISTS error
3234
* @throws ConnectionTimeoutException When the connection can't be created because of an LDAP_TIMEOUT error
3335
* @throws InvalidCredentialsException When the connection can't be created because of an LDAP_INVALID_CREDENTIALS error
34-
*
35-
* @return void
3636
*/
3737
public function bind(string $dn = null, #[\SensitiveParameter] string $password = null);
3838
}

src/Symfony/Component/Ldap/LdapInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ interface LdapInterface
2828
/**
2929
* Return a connection bound to the ldap.
3030
*
31-
* @throws ConnectionException if dn / password could not be bound
32-
*
3331
* @return void
32+
*
33+
* @throws ConnectionException if dn / password could not be bound
3434
*/
3535
public function bind(string $dn = null, #[\SensitiveParameter] string $password = null);
3636

src/Symfony/Component/Validator/Resources/bin/sync-iban-formats.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private function readIbanFormatsTable(): array
187187
{
188188
$tablesResponse = file_get_contents('https://www.wikitable2json.com/api/International_Bank_Account_Number?table=3&keyRows=1&clearRef=true');
189189

190-
return json_decode($tablesResponse, true, 512, JSON_THROW_ON_ERROR)[0];
190+
return json_decode($tablesResponse, true, 512, \JSON_THROW_ON_ERROR)[0];
191191
}
192192

193193
private function buildIbanRegexp(string $countryCode, string $bbanFormat): string

0 commit comments

Comments
 (0)