Apply fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
2f6ce43fe1
commit
776289bde6
@@ -13,8 +13,8 @@ class CommonMailer
|
||||
return false;
|
||||
}
|
||||
$https = [];
|
||||
$https['ssl']['verify_peer'] = FALSE;
|
||||
$https['ssl']['verify_peer_name'] = FALSE;
|
||||
$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']);
|
||||
@@ -23,12 +23,15 @@ class CommonMailer
|
||||
|
||||
// Set the mailer
|
||||
\Mail::setSwiftMailer($set);
|
||||
|
||||
return true;
|
||||
} catch (Exception $e) {
|
||||
loging($e->getMessage());
|
||||
|
||||
return $e->getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public function setMailGunDriver($config)
|
||||
{
|
||||
if (!$config) {
|
||||
|
@@ -19,10 +19,9 @@ class PhpMailController extends Controller
|
||||
/**
|
||||
*@var variable to instantiate common mailer class
|
||||
*/
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->commonMailer = new CommonMailer;
|
||||
$this->commonMailer = new CommonMailer();
|
||||
}
|
||||
|
||||
public function fetch_smtp_details($id)
|
||||
|
Reference in New Issue
Block a user