Skip to content

Commit 06efc01

Browse files
committed
fix: more fixes formatting
1 parent 961c176 commit 06efc01

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/DependencyInjection/SncRedisExtension.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ public function getXsdValidationBasePath(): string
9393
/** @param array{dsns: array<mixed>, type: string} $client */
9494
private function loadClient(array $client, ContainerBuilder $container): void
9595
{
96-
$dsnResolver = /**
97-
* @return RedisDsn|RedisEnvDsn
98-
*/
96+
$dsnResolver = /** @return RedisDsn|RedisEnvDsn */
9997
static function ($dsn) use ($container) {
10098
$usedEnvs = null;
10199
$container->resolveEnvPlaceholders($dsn, null, $usedEnvs);

src/Factory/PhpredisClientFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
use RedisCluster;
1515
use RedisException;
1616
use RedisSentinel;
17+
use ReflectionClass;
18+
use ReflectionMethod;
1719
use Relay\Exception as RelayException;
1820
use Relay\Relay;
1921
use Relay\Sentinel;
20-
use ReflectionClass;
21-
use ReflectionMethod;
2222
use Snc\RedisBundle\DependencyInjection\Configuration\RedisDsn;
2323
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
2424

@@ -138,7 +138,7 @@ private function createRedisArrayClient(array $dsns, string $class, string $alia
138138

139139
$hosts = array_values(array_map(
140140
static fn (RedisDsn $dsn) => ($dsn->getTls() ? 'tls://' : '') . $dsn->getHost() . ':' . $dsn->getPort(),
141-
$dsns
141+
$dsns,
142142
));
143143

144144
$redisArrayOptions = [

tests/Factory/PhpredisClientFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ public function testThrowsExceptionForRedisArrayWithClusterOrReplication(): void
544544

545545
public function testThrowsExceptionForRedisArrayWithSentinel(): void
546546
{
547-
$this->expectException(\LogicException::class);
547+
$this->expectException(LogicException::class);
548548
$this->expectExceptionMessage('The redis_array option is only supported for Redis or Relay classes.');
549549

550550
$dsns = [

0 commit comments

Comments
 (0)