CS fix
This commit is contained in:
parent
c6ecd83b9d
commit
62238b87bc
@ -60,17 +60,17 @@ class SwiftMailerHandler extends BaseSwiftMailerHandler
|
|||||||
*/
|
*/
|
||||||
private function flushMemorySpool()
|
private function flushMemorySpool()
|
||||||
{
|
{
|
||||||
$transport = $this->mailer->getTransport();
|
$mailerTransport = $this->mailer->getTransport();
|
||||||
if (!$transport instanceof \Swift_Transport_SpoolTransport) {
|
if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$spool = $transport->getSpool();
|
$spool = $mailerTransport->getSpool();
|
||||||
if (!$spool instanceof \Swift_MemorySpool) {
|
if (!$spool instanceof \Swift_MemorySpool) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null == $this->transport) {
|
if (null === $this->transport) {
|
||||||
throw new \Exception('No transport available to flush mail queue');
|
throw new \Exception('No transport available to flush mail queue');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user