Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use if/else instead of ternary operator

  • Loading branch information...
commit aee26989e7d8855cdeceff3373e94d10716f8577 1 parent c848d00
Ryan authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Command/SendEmailCommand.php
View
6 Command/SendEmailCommand.php
@@ -58,7 +58,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($spool instanceof \Swift_ConfigurableSpool) {
$spool->setMessageLimit($input->getOption('message-limit'));
$spool->setTimeLimit($input->getOption('time-limit'));
- NULL !== $input->getOption('recover-timeout') ? $spool->recover($input->getOption('recover-timeout')) : $spool->recover();
+ if (null !== $input->getOption('recover-timeout')) {
+ $spool->recover($input->getOption('recover-timeout'));
+ } else {
+ $spool->recover();
+ }
}
$sent = $spool->flushQueue($this->getContainer()->get('swiftmailer.transport.real'));
Please sign in to comment.
Something went wrong with that request. Please try again.