Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use if/else instead of ternary operator
  • Loading branch information
Ryan committed Jan 19, 2012
1 parent 15c666b commit d2a0c74
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -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'));

Expand Down

0 comments on commit d2a0c74

Please sign in to comment.