Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
This commit is contained in:
@@ -57,7 +57,6 @@ class PhpMailController extends Controller
|
||||
*
|
||||
* @param type Reg $reg
|
||||
* @param type Department $dept_id
|
||||
*
|
||||
* @return type integer
|
||||
*/
|
||||
public function mailfrom($reg, $dept_id)
|
||||
@@ -182,13 +181,13 @@ 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,
|
||||
$config = ['host' => $mail->sending_host,
|
||||
'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';
|
||||
@@ -196,8 +195,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'),
|
||||
@@ -279,8 +278,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