Skip to content

Commit

Permalink
Update doctrine/coding-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Nov 5, 2022
1 parent cbbaf9e commit 9f4af65
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"ext-pdo_sqlite": "*",
"ext-redis": "*",
"doctrine/annotations": "^1.13",
"doctrine/coding-standard": "^9.0",
"doctrine/coding-standard": "^10.0",
"friendsofphp/proxy-manager-lts": "^1.0.6",
"monolog/monolog": "*",
"phpunit/phpunit": "^8.5 || ^9.5",
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
->addMethodCall('setGeneratorStrategy', [
new Definition(
FileWriterGeneratorStrategy::class,
[new Definition(FileLocator::class, ['%kernel.cache_dir%'])]
[new Definition(FileLocator::class, ['%kernel.cache_dir%'])],
),
])
->addMethodCall('setProxiesTargetDir', ['%kernel.cache_dir%'])
->addMethodCall('setProxiesTargetDir', ['%kernel.cache_dir%']),
),
]);
};
2 changes: 1 addition & 1 deletion tests/Command/RedisQueryCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function setUp(): void
$cloner->method('cloneVar')->willReturn(new Data([]));

$this->tester = new CommandTester(
new RedisQueryCommand($this->container, $this->createMock(DataDumperInterface::class), $cloner)
new RedisQueryCommand($this->container, $this->createMock(DataDumperInterface::class), $cloner),
);

$this->container->expects($this->once())->method('get')->will($this->returnValue($this->predisClient));
Expand Down
14 changes: 7 additions & 7 deletions tests/DependencyInjection/SncRedisExtensionEnvTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testPredisDefaultParameterConfigLoad(): void

$this->assertSame(
[PredisParametersFactory::class, 'create'],
$container->findDefinition('snc_redis.connection.default_parameters.default')->getFactory()
$container->findDefinition('snc_redis.connection.default_parameters.default')->getFactory(),
);
}

Expand All @@ -36,7 +36,7 @@ public function testPredisDefaultParameterWithSSLContextConfigLoad(): void

$this->assertSame(
[PredisParametersFactory::class, 'create'],
$container->findDefinition('snc_redis.connection.default_parameters.default')->getFactory()
$container->findDefinition('snc_redis.connection.default_parameters.default')->getFactory(),
);
}

Expand Down Expand Up @@ -65,7 +65,7 @@ public function testPhpredisDefaultParameterConfig(): void
'prefix' => null,
'service' => null,
],
$clientDefinition->getArgument(2)
$clientDefinition->getArgument(2),
);
}

Expand Down Expand Up @@ -104,7 +104,7 @@ public function testPhpredisFullConfig(): void
'cluster' => null,
'service' => null,
],
$clientDefinition->getArgument(2)
$clientDefinition->getArgument(2),
);
$this->assertTrue($clientDefinition->getArgument(4));
}
Expand Down Expand Up @@ -141,7 +141,7 @@ public function testPhpredisWithAclConfig(): void
'service' => null,
'throw_errors' => true,
],
$clientDefinition->getArgument(2)
$clientDefinition->getArgument(2),
);
}

Expand Down Expand Up @@ -194,7 +194,7 @@ public function testPhpRedisClusterOption(): void
'prefix' => null,
'service' => null,
],
$clientDefinition->getArgument(2)
$clientDefinition->getArgument(2),
);
}

Expand Down Expand Up @@ -224,7 +224,7 @@ public function testPhpRedisClusterOptionMultipleDsn(): void
'prefix' => null,
'service' => null,
],
$clientDefinition->getArgument(2)
$clientDefinition->getArgument(2),
);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/DependencyInjection/SncRedisExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ private function getPhpRedisClusterYamlMinimalConfig(): string

private function getPhpRedisWithACLYamlMinimalConfig(): string
{
return <<<YAML
return <<<'YAML'
clients:
default:
type: phpredis
Expand All @@ -772,7 +772,7 @@ private function getPhpRedisWithACLYamlMinimalConfig(): string

private function getPhpRedisWithInvalidACLYamlMinimalConfig(): string
{
return <<<YAML
return <<<'YAML'
clients:
default:
type: phpredis
Expand Down
16 changes: 8 additions & 8 deletions tests/Factory/PhpredisClientFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function testCreateMinimalClusterConfig(): void
['redis://localhost:7000'],
['connection_timeout' => 5, 'connection_persistent' => false],
'phprediscluster',
false
false,
);

$this->assertInstanceOf(RedisCluster::class, $client);
Expand Down Expand Up @@ -105,7 +105,7 @@ public function testCreateFullConfig(): void
],
],
'alias_test',
false
false,
);

$this->assertInstanceOf(Redis::class, $client);
Expand Down Expand Up @@ -139,7 +139,7 @@ public function testDsnConfig(): void
'connection_timeout' => 5,
],
'alias_test',
true
true,
);

$this->assertInstanceOf(Redis::class, $client);
Expand All @@ -163,7 +163,7 @@ public function testNestedDsnConfig(): void
'connection_timeout' => 5,
],
'alias_test',
false
false,
);

$this->assertInstanceOf(Redis::class, $client);
Expand All @@ -185,7 +185,7 @@ public function testLoadSerializationType(string $serializationType, int $serial
'connection_timeout' => 5,
],
'default',
false
false,
);

self::assertSame($serializer, $client->getOption(Redis::OPT_SERIALIZER));
Expand All @@ -204,7 +204,7 @@ public function testLoadSerializationTypeFail(): void
'connection_timeout' => 5,
],
'default',
false
false,
);
}

Expand Down Expand Up @@ -243,7 +243,7 @@ public function testMethodsWithVariadicParameters(): void
'connection_timeout' => 5,
],
'alias_test',
true
true,
);

/** @psalm-suppress TooManyArguments */
Expand All @@ -268,7 +268,7 @@ public function testMethodWithPassByRefArgument(): void
['redis://redis:sncredis@localhost:6379/2'],
['connection_timeout' => 5],
'alias_test',
true
true,
);

$iterator = 1;
Expand Down

0 comments on commit 9f4af65

Please sign in to comment.