Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aea9b37

Browse files
committed
rename variable
1 parent 90b1556 commit aea9b37

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Symfony/Component/Mailer/Bridge/Amazon/Factory/SesTransportFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ public function create(Dsn $dsn): TransportInterface
3030
throw new \InvalidArgumentException('User is not set.');
3131
}
3232

33-
if (null === $pass = $dsn->getPassword()) {
33+
if (null === $password = $dsn->getPassword()) {
3434
throw new \InvalidArgumentException('Password is not set.');
3535
}
3636

3737
$region = $dsn->getOption('region');
3838

3939
if ('smtp' === $scheme) {
40-
return new Amazon\Smtp\SesTransport($user, $pass, $region, $this->dispatcher, $this->logger);
40+
return new Amazon\Smtp\SesTransport($user, $password, $region, $this->dispatcher, $this->logger);
4141
}
4242

4343
if ('api' === $scheme) {
44-
return new Amazon\Http\Api\SesTransport($user, $pass, $region, $this->client, $this->dispatcher, $this->logger);
44+
return new Amazon\Http\Api\SesTransport($user, $password, $region, $this->client, $this->dispatcher, $this->logger);
4545
}
4646

4747
if ('http' === $scheme) {
48-
return new Amazon\Http\SesTransport($user, $pass, $region, $this->client, $this->dispatcher, $this->logger);
48+
return new Amazon\Http\SesTransport($user, $password, $region, $this->client, $this->dispatcher, $this->logger);
4949
}
5050

5151
throw new UnsupportedSchemeException($dsn);

src/Symfony/Component/Mailer/Bridge/Mailgun/Factory/MailgunTransportFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ public function create(Dsn $dsn): TransportInterface
2626
{
2727
$scheme = $dsn->getScheme();
2828
$user = $dsn->getUser();
29-
$pass = $dsn->getPassword();
29+
$password = $dsn->getPassword();
3030
$region = $dsn->getOption('region');
3131

3232
if ('smtp' === $scheme) {
33-
return new Mailgun\Smtp\MailgunTransport($user, $pass, $region, $this->dispatcher, $this->logger);
33+
return new Mailgun\Smtp\MailgunTransport($user, $password, $region, $this->dispatcher, $this->logger);
3434
}
3535

3636
if ('http' === $scheme) {
37-
return new Mailgun\Http\MailgunTransport($user, $pass, $this->client, $region, $this->dispatcher, $this->logger);
37+
return new Mailgun\Http\MailgunTransport($user, $password, $this->client, $region, $this->dispatcher, $this->logger);
3838
}
3939

4040
if ('api' === $scheme) {
41-
return new Mailgun\Http\Api\MailgunTransport($user, $pass, $this->client, $region, $this->dispatcher, $this->logger);
41+
return new Mailgun\Http\Api\MailgunTransport($user, $password, $this->client, $region, $this->dispatcher, $this->logger);
4242
}
4343

4444
throw new UnsupportedSchemeException($dsn);

src/Symfony/Component/Mailer/Transport/Smtp/EsmtpTransportFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public function create(Dsn $dsn): TransportInterface
3535
$transport->setUsername($user);
3636
}
3737

38-
if ($pass = $dsn->getPassword()) {
39-
$transport->setPassword($pass);
38+
if ($password = $dsn->getPassword()) {
39+
$transport->setPassword($password);
4040
}
4141

4242
return $transport;

0 commit comments

Comments
 (0)