Use if/else instead of ternary operator
This commit is contained in:
parent
15c666bf43
commit
d2a0c74e22
@ -58,7 +58,11 @@ EOF
|
|||||||
if ($spool instanceof \Swift_ConfigurableSpool) {
|
if ($spool instanceof \Swift_ConfigurableSpool) {
|
||||||
$spool->setMessageLimit($input->getOption('message-limit'));
|
$spool->setMessageLimit($input->getOption('message-limit'));
|
||||||
$spool->setTimeLimit($input->getOption('time-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'));
|
$sent = $spool->flushQueue($this->getContainer()->get('swiftmailer.transport.real'));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user