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:
@@ -30,10 +30,10 @@ class MailRequest extends Request
|
||||
}
|
||||
|
||||
$rules = [
|
||||
'email_address' => $email_address_rule,
|
||||
'email_name' => 'required',
|
||||
'password' => 'required',
|
||||
'sending_protocol'=> 'required_if:sending_status,on',
|
||||
'email_address' => $email_address_rule,
|
||||
'email_name' => 'required',
|
||||
'password' => 'required',
|
||||
'sending_protocol' => 'required_if:sending_status,on',
|
||||
];
|
||||
$driver = $this->input('sending_protocol');
|
||||
$driver_rules = $this->getDriver($driver);
|
||||
@@ -61,14 +61,14 @@ class MailRequest extends Request
|
||||
switch ($short) {
|
||||
case 'mailgun':
|
||||
$rules = [
|
||||
'domain'=> 'required',
|
||||
'secret'=> 'required',
|
||||
'domain' => 'required',
|
||||
'secret' => 'required',
|
||||
];
|
||||
|
||||
return $rules;
|
||||
case 'mandrill':
|
||||
$rules = [
|
||||
'secret'=> 'required',
|
||||
'secret' => 'required',
|
||||
];
|
||||
|
||||
return $rules;
|
||||
|
Reference in New Issue
Block a user