Apply fixes from StyleCI
This commit is contained in:
@@ -57,6 +57,7 @@ class PhpMailController extends Controller
|
||||
*
|
||||
* @param type Reg $reg
|
||||
* @param type Department $dept_id
|
||||
*
|
||||
* @return type integer
|
||||
*/
|
||||
public function mailfrom($reg, $dept_id)
|
||||
@@ -182,12 +183,12 @@ class PhpMailController extends Controller
|
||||
switch ($mail->sending_protocol) {
|
||||
case 'smtp':
|
||||
$config = ['host' => $mail->sending_host,
|
||||
'port' => $mail->sending_port,
|
||||
'security' => $mail->sending_encryption,
|
||||
'username' => $mail->email_address,
|
||||
'password' => $mail->password,
|
||||
'port' => $mail->sending_port,
|
||||
'security' => $mail->sending_encryption,
|
||||
'username' => $mail->email_address,
|
||||
'password' => $mail->password,
|
||||
];
|
||||
if (! $this->commonMailer->setSmtpDriver($config)) {
|
||||
if (!$this->commonMailer->setSmtpDriver($config)) {
|
||||
\Log::info('Invaid configuration :- '.$config);
|
||||
|
||||
return 'invalid mail configuration';
|
||||
@@ -195,8 +196,8 @@ class PhpMailController extends Controller
|
||||
break;
|
||||
case 'send_mail':
|
||||
$config = [
|
||||
'host' => \Config::get('mail.host'),
|
||||
'port' => \Config::get('mail.port'),
|
||||
'host' => \Config::get('mail.host'),
|
||||
'port' => \Config::get('mail.port'),
|
||||
'security' => \Config::get('mail.encryption'),
|
||||
'username' => \Config::get('mail.username'),
|
||||
'password' => \Config::get('mail.password'),
|
||||
@@ -278,8 +279,8 @@ class PhpMailController extends Controller
|
||||
$short = 'database';
|
||||
$field = [
|
||||
'driver' => 'database',
|
||||
'table' => 'jobs',
|
||||
'queue' => 'default',
|
||||
'table' => 'jobs',
|
||||
'queue' => 'default',
|
||||
'expire' => 60,
|
||||
];
|
||||
$queue = new \App\Model\MailJob\QueueService();
|
||||
|
Reference in New Issue
Block a user