Skip to content

Commit 8fbc1d6

Browse files
keradusfabpot
authored andcommitted
chore: PHP CS Fixer fixes
1 parent 9fb2ba2 commit 8fbc1d6

File tree

44 files changed

+78
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+78
-64
lines changed

src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,6 @@ private function createRegistry(?ObjectManager $manager = null): ManagerRegistry
494494
$registry->method('getManager')->willReturn($manager);
495495
}
496496

497-
498497
return $registry;
499498
}
500499
}

src/Symfony/Bridge/Doctrine/Tests/Form/DataTransformer/CollectionToArrayTransformerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ public function testTransformReadableCollection()
7474
3 => 'bar',
7575
];
7676

77-
$collection = new class($array) implements ReadableCollection
78-
{
77+
$collection = new class($array) implements ReadableCollection {
7978
public function __construct(private readonly array $array)
8079
{
8180
}

src/Symfony/Component/Cache/Tests/Adapter/AbstractRedisAdapterTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Cache\Tests\Adapter;
1313

1414
use Psr\Cache\CacheItemPoolInterface;
15-
use Relay\Relay;
1615
use Relay\Cluster as RelayCluster;
16+
use Relay\Relay;
1717
use Symfony\Component\Cache\Adapter\RedisAdapter;
1818

1919
abstract class AbstractRedisAdapterTestCase extends AdapterTestCase

src/Symfony/Component/Cache/Tests/Adapter/PredisReplicationAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public static function setUpBeforeClass(): void
2727
$hosts = explode(' ', getenv('REDIS_REPLICATION_HOSTS'));
2828
$lastArrayKey = array_key_last($hosts);
2929
$hostTable = [];
30-
foreach($hosts as $key => $host) {
30+
foreach ($hosts as $key => $host) {
3131
$hostInformation = array_combine(['host', 'port'], explode(':', $host));
32-
if($lastArrayKey === $key) {
32+
if ($lastArrayKey === $key) {
3333
$hostInformation['role'] = 'master';
3434
}
3535
$hostTable[] = $hostInformation;

src/Symfony/Component/Cache/Tests/Adapter/RelayClusterAdapterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\Cache\Tests\Adapter;
1313

14-
use Relay\Relay;
15-
use Relay\Cluster as RelayCluster;
1614
use Psr\Cache\CacheItemPoolInterface;
15+
use Relay\Cluster as RelayCluster;
16+
use Relay\Relay;
1717
use Symfony\Component\Cache\Adapter\AbstractAdapter;
1818
use Symfony\Component\Cache\Adapter\RedisAdapter;
1919
use Symfony\Component\Cache\Exception\InvalidArgumentException;

src/Symfony/Component/Cache/Tests/Traits/RedisProxiesTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
namespace Symfony\Component\Cache\Tests\Traits;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Relay\Relay;
1615
use Relay\Cluster as RelayCluster;
16+
use Relay\Relay;
1717
use Symfony\Component\Cache\Traits\RedisProxyTrait;
1818
use Symfony\Component\Cache\Traits\RelayClusterProxy;
1919
use Symfony\Component\Cache\Traits\RelayProxy;
@@ -124,7 +124,6 @@ public function testRelayProxy()
124124
$this->assertEquals($expectedProxy, $proxy);
125125
}
126126

127-
128127
/**
129128
* @requires extension relay
130129
*/

src/Symfony/Component/Cache/Traits/RedisTrait.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
use Predis\Connection\Replication\ReplicationInterface as Predis2ReplicationInterface;
2121
use Predis\Response\ErrorInterface;
2222
use Predis\Response\Status;
23-
use Relay\Relay;
2423
use Relay\Cluster as RelayCluster;
24+
use Relay\Relay;
2525
use Relay\Sentinel;
2626
use Symfony\Component\Cache\Exception\CacheException;
2727
use Symfony\Component\Cache\Exception\InvalidArgumentException;
@@ -382,20 +382,20 @@ public static function createConnection(#[\SensitiveParameter] string $dsn, arra
382382
try {
383383
$relayClusterContext = $params['relay_cluster_context'];
384384

385-
foreach (['allow_self_signed', 'verify_peer_name','verify_peer'] as $contextStreamBoolField) {
386-
if(isset($relayClusterContext['stream'][$contextStreamBoolField])) {
385+
foreach (['allow_self_signed', 'verify_peer_name', 'verify_peer'] as $contextStreamBoolField) {
386+
if (isset($relayClusterContext['stream'][$contextStreamBoolField])) {
387387
$relayClusterContext['stream'][$contextStreamBoolField] = filter_var($relayClusterContext['stream'][$contextStreamBoolField], \FILTER_VALIDATE_BOOL);
388388
}
389389
}
390390

391-
foreach (['use-cache', 'client-tracking','throw-on-error','client-invalidations','reply-literal','persistent'] as $contextBoolField) {
392-
if(isset($relayClusterContext[$contextBoolField])) {
391+
foreach (['use-cache', 'client-tracking', 'throw-on-error', 'client-invalidations', 'reply-literal', 'persistent'] as $contextBoolField) {
392+
if (isset($relayClusterContext[$contextBoolField])) {
393393
$relayClusterContext[$contextBoolField] = filter_var($relayClusterContext[$contextBoolField], \FILTER_VALIDATE_BOOL);
394394
}
395395
}
396396

397-
foreach (['max-retries', 'serializer','compression','compression-level'] as $contextIntField) {
398-
if(isset($relayClusterContext[$contextIntField])) {
397+
foreach (['max-retries', 'serializer', 'compression', 'compression-level'] as $contextIntField) {
398+
if (isset($relayClusterContext[$contextIntField])) {
399399
$relayClusterContext[$contextIntField] = filter_var($relayClusterContext[$contextIntField], \FILTER_VALIDATE_INT);
400400
}
401401
}

src/Symfony/Component/Cache/Traits/RelayClusterProxy.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737
int|float $command_timeout = 0,
3838
bool $persistent = false,
3939
#[\SensitiveParameter] mixed $auth = null,
40-
array|null $context = null
40+
array|null $context = null,
4141
) {
4242
$this->initializeLazyObject()->__construct(...\func_get_args());
4343
}
@@ -157,7 +157,6 @@ public function endpointId(): array|false
157157
return $this->initializeLazyObject()->endpointId(...\func_get_args());
158158
}
159159

160-
161160
public function rawCommand(array|string $key_or_address, string $cmd, mixed ...$args): mixed
162161
{
163162
return $this->initializeLazyObject()->rawCommand(...\func_get_args());
@@ -383,12 +382,13 @@ public function bitpos(mixed $key, int $bit, ?int $start = null, ?int $end = nul
383382
return $this->initializeLazyObject()->bitpos(...\func_get_args());
384383
}
385384

386-
public function blmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstpos, float $timeout): \Relay\Cluster|string|null|false
385+
public function blmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstpos, float $timeout): \Relay\Cluster|string|false|null
387386
{
388387
return $this->initializeLazyObject()->blmove(...\func_get_args());
389388
}
390389

391-
public function lmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstpos): Cluster|string|null|false {
390+
public function lmove(mixed $srckey, mixed $dstkey, string $srcpos, string $dstpos): Cluster|string|false|null
391+
{
392392
return $this->initializeLazyObject()->lmove(...\func_get_args());
393393
}
394394

@@ -662,7 +662,8 @@ public function ltrim(mixed $key, int $start, int $end): \Relay\Cluster|bool
662662
return $this->initializeLazyObject()->ltrim(...\func_get_args());
663663
}
664664

665-
public static function maxMemory(): int {
665+
public static function maxMemory(): int
666+
{
666667
return \Relay\Cluster::maxMemory();
667668
}
668669

@@ -1083,7 +1084,7 @@ public function zrangestore(mixed $dstkey, mixed $srckey, mixed $start, mixed $e
10831084

10841085
public function zrank(mixed $key, mixed $rank, bool $withscore = false): Cluster|array|int|false
10851086
{
1086-
return $this->initializeLazyObject()->zrank(...\func_get_args());
1087+
return $this->initializeLazyObject()->zrank(...\func_get_args());
10871088
}
10881089

10891090
public function zrangebylex(mixed $key, mixed $min, mixed $max, int $offset = -1, int $count = -1): \Relay\Cluster|array|false

src/Symfony/Component/Clock/Test/ClockSensitiveTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Symfony\Component\Clock\Clock;
1818
use Symfony\Component\Clock\ClockInterface;
1919
use Symfony\Component\Clock\MockClock;
20-
2120
use function Symfony\Component\Clock\now;
2221

2322
/**

src/Symfony/Component/Clock/Tests/ClockTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use Symfony\Component\Clock\MockClock;
1919
use Symfony\Component\Clock\NativeClock;
2020
use Symfony\Component\Clock\Test\ClockSensitiveTrait;
21-
2221
use function Symfony\Component\Clock\now;
2322

2423
class ClockTest extends TestCase

0 commit comments

Comments
 (0)