Skip to content

Commit 62114a2

Browse files
CS fixes
1 parent 6706bb3 commit 62114a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Transport/Connection.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ public static function fromDsn(#[\SensitiveParameter] string $dsn, array $option
117117
// check for extra keys in options
118118
$optionsExtraKeys = array_diff(array_keys($options), array_keys(self::DEFAULT_OPTIONS));
119119
if (0 < \count($optionsExtraKeys)) {
120-
throw new InvalidArgumentException(sprintf('Unknown option found: [%s]. Allowed options are [%s].', implode(', ', $optionsExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
120+
throw new InvalidArgumentException(\sprintf('Unknown option found: [%s]. Allowed options are [%s].', implode(', ', $optionsExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
121121
}
122122

123123
// check for extra keys in options
124124
$queryExtraKeys = array_diff(array_keys($query), array_keys(self::DEFAULT_OPTIONS));
125125
if (0 < \count($queryExtraKeys)) {
126-
throw new InvalidArgumentException(sprintf('Unknown option found in DSN: [%s]. Allowed options are [%s].', implode(', ', $queryExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
126+
throw new InvalidArgumentException(\sprintf('Unknown option found in DSN: [%s]. Allowed options are [%s].', implode(', ', $queryExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
127127
}
128128

129129
$options = $query + $options + self::DEFAULT_OPTIONS;
@@ -150,7 +150,7 @@ public static function fromDsn(#[\SensitiveParameter] string $dsn, array $option
150150
unset($query['region']);
151151

152152
if ('default' !== ($params['host'] ?? 'default')) {
153-
$clientConfiguration['endpoint'] = sprintf('%s://%s%s', ($query['sslmode'] ?? null) === 'disable' ? 'http' : 'https', $params['host'], ($params['port'] ?? null) ? ':'.$params['port'] : '');
153+
$clientConfiguration['endpoint'] = \sprintf('%s://%s%s', ($query['sslmode'] ?? null) === 'disable' ? 'http' : 'https', $params['host'], ($params['port'] ?? null) ? ':'.$params['port'] : '');
154154
if (preg_match(';^sqs\.([^\.]++)\.amazonaws\.com$;', $params['host'], $matches)) {
155155
$clientConfiguration['region'] = $matches[1];
156156
}
@@ -277,7 +277,7 @@ public function setup(): void
277277
}
278278

279279
if (null !== $this->configuration['account']) {
280-
throw new InvalidArgumentException(sprintf('The Amazon SQS queue "%s" does not exist (or you don\'t have permissions on it), and can\'t be created when an account is provided.', $this->configuration['queue_name']));
280+
throw new InvalidArgumentException(\sprintf('The Amazon SQS queue "%s" does not exist (or you don\'t have permissions on it), and can\'t be created when an account is provided.', $this->configuration['queue_name']));
281281
}
282282

283283
$parameters = ['QueueName' => $this->configuration['queue_name']];
@@ -293,7 +293,7 @@ public function setup(): void
293293
// Blocking call to wait for the queue to be created
294294
$exists->wait();
295295
if (!$exists->isSuccess()) {
296-
throw new TransportException(sprintf('Failed to create the Amazon SQS queue "%s".', $this->configuration['queue_name']));
296+
throw new TransportException(\sprintf('Failed to create the Amazon SQS queue "%s".', $this->configuration['queue_name']));
297297
}
298298
$this->queueUrl = null;
299299
}

0 commit comments

Comments
 (0)