Skip to content

Commit 5d32f79

Browse files
committed
fixed CS
1 parent 5281875 commit 5d32f79

12 files changed

+18
-18
lines changed

AbstractApiTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ protected function doSend(SentMessage $message): void
6161

6262
protected function getRecipients(Email $email, SmtpEnvelope $envelope): array
6363
{
64-
return \array_filter($envelope->getRecipients(), function (Address $address) use ($email) {
65-
return false === \in_array($address, \array_merge($email->getCc(), $email->getBcc()), true);
64+
return array_filter($envelope->getRecipients(), function (Address $address) use ($email) {
65+
return false === \in_array($address, array_merge($email->getCc(), $email->getBcc()), true);
6666
});
6767
}
6868
}

AbstractTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ abstract protected function doSend(SentMessage $message): void;
9393
*/
9494
protected function stringifyAddresses(array $addresses): array
9595
{
96-
return \array_map(function (Address $a) {
96+
return array_map(function (Address $a) {
9797
return $a->toString();
9898
}, $addresses);
9999
}

Amazon/Http/Api/SesTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private function getPayload(Email $email, SmtpEnvelope $envelope): array
7676
if ($email->getAttachments()) {
7777
return [
7878
'Action' => 'SendRawEmail',
79-
'RawMessage.Data' => \base64_encode($email->toString()),
79+
'RawMessage.Data' => base64_encode($email->toString()),
8080
];
8181
}
8282

Amazon/Http/SesTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function doSend(SentMessage $message): void
5656
],
5757
'body' => [
5858
'Action' => 'SendRawEmail',
59-
'RawMessage.Data' => \base64_encode($message->toString()),
59+
'RawMessage.Data' => base64_encode($message->toString()),
6060
],
6161
]);
6262

Amazon/Smtp/SesTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SesTransport extends EsmtpTransport
2727
*/
2828
public function __construct(string $username, string $password, string $region = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
2929
{
30-
parent::__construct(\sprintf('email-smtp.%s.amazonaws.com', $region ?: 'eu-west-1'), 587, 'tls', null, $dispatcher, $logger);
30+
parent::__construct(sprintf('email-smtp.%s.amazonaws.com', $region ?: 'eu-west-1'), 587, 'tls', null, $dispatcher, $logger);
3131

3232
$this->setUsername($username);
3333
$this->setPassword($password);

Api/AbstractApiTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ protected function doSend(SentMessage $message): void
6161

6262
protected function getRecipients(Email $email, SmtpEnvelope $envelope): array
6363
{
64-
return \array_filter($envelope->getRecipients(), function (Address $address) use ($email) {
65-
return false === \in_array($address, \array_merge($email->getCc(), $email->getBcc()), true);
64+
return array_filter($envelope->getRecipients(), function (Address $address) use ($email) {
65+
return false === \in_array($address, array_merge($email->getCc(), $email->getBcc()), true);
6666
});
6767
}
6868
}

Http/Api/AbstractApiTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ protected function doSend(SentMessage $message): void
6161

6262
protected function getRecipients(Email $email, SmtpEnvelope $envelope): array
6363
{
64-
return \array_filter($envelope->getRecipients(), function (Address $address) use ($email) {
65-
return false === \in_array($address, \array_merge($email->getCc(), $email->getBcc()), true);
64+
return array_filter($envelope->getRecipients(), function (Address $address) use ($email) {
65+
return false === \in_array($address, array_merge($email->getCc(), $email->getBcc()), true);
6666
});
6767
}
6868
}

Sendgrid/Http/Api/SendgridTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function getPayload(Email $email, SmtpEnvelope $envelope): array
6767
}
6868

6969
$personalization = [
70-
'to' => \array_map($addressStringifier, $this->getRecipients($email, $envelope)),
70+
'to' => array_map($addressStringifier, $this->getRecipients($email, $envelope)),
7171
'subject' => $email->getSubject(),
7272
];
7373
if ($emails = array_map($addressStringifier, $email->getCc())) {

SesTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class SesTransport extends EsmtpTransport
2727
*/
2828
public function __construct(string $username, string $password, string $region = null, EventDispatcherInterface $dispatcher = null, LoggerInterface $logger = null)
2929
{
30-
parent::__construct(\sprintf('email-smtp.%s.amazonaws.com', $region ?: 'eu-west-1'), 587, 'tls', null, $dispatcher, $logger);
30+
parent::__construct(sprintf('email-smtp.%s.amazonaws.com', $region ?: 'eu-west-1'), 587, 'tls', null, $dispatcher, $logger);
3131

3232
$this->setUsername($username);
3333
$this->setPassword($password);

Transport.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ private static function createTransport(string $dsn, EventDispatcherInterface $d
6868
throw new InvalidArgumentException(sprintf('The "%s" mailer DSN must contain a mailer name.', $dsn));
6969
}
7070

71-
$user = \urldecode($parsedDsn['user'] ?? '');
72-
$pass = \urldecode($parsedDsn['pass'] ?? '');
73-
\parse_str($parsedDsn['query'] ?? '', $query);
71+
$user = urldecode($parsedDsn['user'] ?? '');
72+
$pass = urldecode($parsedDsn['pass'] ?? '');
73+
parse_str($parsedDsn['query'] ?? '', $query);
7474

7575
switch ($parsedDsn['host']) {
7676
case 'null':

0 commit comments

Comments
 (0)