Skip to content

Commit 1a38876

Browse files
authored
Bump php-cs-fixer (#1001)
1 parent 320bcb2 commit 1a38876

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
/vendor/
2-
.php_cs.cache
3-
.phpunit.result.cache
2+
*.cache
43
composer.lock

src/DependencyInjection/AsyncAwsExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function addServiceDefinition(ContainerBuilder $container, string $name,
9898
}
9999

100100
// If no credential provider is specified, lets configured a credentials provider with cache.
101-
$hasCacheClasses = \class_exists(SymfonyCacheProvider::class) && \interface_exists(CacheInterface::class);
101+
$hasCacheClasses = class_exists(SymfonyCacheProvider::class) && interface_exists(CacheInterface::class);
102102
$credentialServiceId = $config['credential_provider'];
103103
if (null === $credentialServiceId && null !== $config['credential_provider_cache'] && $hasCacheClasses) {
104104
$credentialServiceId = 'async_aws.credential';
@@ -147,7 +147,7 @@ private function registerEnvLoader(ContainerBuilder $container, array $config):
147147

148148
if (null !== $client = $config['secrets']['client']) {
149149
if (!isset($config['clients'][$client])) {
150-
throw new InvalidConfigurationException(sprintf('The client "%s" configured in "async_aws.secrets" does not exists. Available clients are "%s"', $client, implode(', ', \array_keys($config['clients']))));
150+
throw new InvalidConfigurationException(sprintf('The client "%s" configured in "async_aws.secrets" does not exists. Available clients are "%s"', $client, implode(', ', array_keys($config['clients']))));
151151
}
152152
if ('ssm' !== $config['clients'][$client]['type']) {
153153
throw new InvalidConfigurationException(sprintf('The client "%s" configured in "async_aws.secrets" is not a SSM client.', $client));
@@ -174,7 +174,7 @@ private function registerEnvLoader(ContainerBuilder $container, array $config):
174174
]);
175175

176176
if ($config['secrets']['cache']['enabled']) {
177-
if (!\interface_exists(CacheInterface::class)) {
177+
if (!interface_exists(CacheInterface::class)) {
178178
throw new InvalidConfigurationException(sprintf('You have enabled "async_aws.secrets.cache" but the "symfony/cache" package is not installed. Try running "composer require symfony/cache"'));
179179
}
180180

src/Secrets/SsmVault.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function loadEnvVars(): array
3636
if ((null === $name = $parameter->getName()) || (null === $value = $parameter->getValue())) {
3737
continue;
3838
}
39-
$name = \strtoupper(\strtr(ltrim(substr($name, $prefixLen), '/'), '/', '_'));
39+
$name = strtoupper(strtr(ltrim(substr($name, $prefixLen), '/'), '/', '_'));
4040
$secrets[$name] = $value;
4141
}
4242

0 commit comments

Comments
 (0)