Apply fixes from StyleCI

This commit is contained in:
Manish Verma
2018-08-13 13:11:15 +00:00
committed by StyleCI Bot
parent 2f6ce43fe1
commit 776289bde6
3 changed files with 10 additions and 8 deletions

View File

@@ -13,22 +13,25 @@ class CommonMailer
return false;
}
$https = [];
$https['ssl']['verify_peer'] = FALSE;
$https['ssl']['verify_peer_name'] = FALSE;
$transport = new \Swift_SmtpTransport($config['host'], $config['port'], $config['security']);
$https['ssl']['verify_peer'] = false;
$https['ssl']['verify_peer_name'] = false;
$transport = new \Swift_SmtpTransport($config['host'], $config['port'], $config['security']);
$transport->setUsername($config['username']);
$transport->setPassword($config['password']);
$transport->setStreamOptions($https);
$set = new \Swift_Mailer($transport);
$set = new \Swift_Mailer($transport);
// Set the mailer
\Mail::setSwiftMailer($set);
return true;
} catch (Exception $e) {
loging($e->getMessage());
return $e->getMessage();
}
}
public function setMailGunDriver($config)
{
if (!$config) {