8000 Fix coding standard · symfony/symfony@5c59e89 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c59e89

Browse files
committed
Fix coding standard
1 parent ad64692 commit 5c59e89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public static function setUpBeforeClass(): void
2323
throw new SkippedTestSuiteError('REDIS_CLUSTER_HOSTS env var is not defined.');
2424
}
2525
}
26+
2627
/**
2728
* @dataProvider provideCreateConnection
2829
*/
@@ -43,7 +44,7 @@ public function testCreateConnection(string $dsn, string $expectedClass)
4344

4445
public function provideCreateConnection(): array
4546
{
46-
$hosts = array_map(fn(string $host) => sprintf('host[%s]', $host), explode(' ', getenv('REDIS_CLUSTER_HOSTS')));
47+
$hosts = array_map(fn (string $host) => sprintf('host[%s]', $host), explode(' ', getenv('REDIS_CLUSTER_HOSTS')));
4748

4849
return [
4950
[
@@ -59,7 +60,7 @@ public function provideCreateConnection(): array
5960
'expectedClass' => '\Redis',
6061
],
6162
[
62-
'dsn' => sprintf('redis:?%s', join('&', array_slice($hosts, 0, 2))),
63+
'dsn' => sprintf('redis:?%s', implode('&', \array_slice($hosts, 0, 2))),
6364
'expectedClass' => '\RedisArray',
6465
],
6566
];

0 commit comments

Comments
 (0)
0