8000 Make code consistent · zim32/symfony@7c075ed · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c075ed

Browse files
committed
Make code consistent
1 parent be8897b commit 7c075ed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Notifier/Bridge/AmazonSns/AmazonSnsTransportFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ public function create(Dsn $dsn): AmazonSnsTransport
3131

3232
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
3333
$port = $dsn->getPort();
34-
$sslmode = $dsn->getOption('sslmode', 'enable');
35-
$protocol = $sslmode === 'disable' ? 'http' : 'https';
34+
$protocol = 'disable' === $dsn->getOption('sslmode') ? 'http' : 'https';
3635

3736
$options = null === $host ? [] : ['endpoint' => $protocol.'://'.$host.($port ? ':'.$port : '')];
3837

0 commit comments

Comments
 (0)
0