Apply fixes from StyleCI
This commit is contained in:

committed by
StyleCI Bot

parent
ea4314a339
commit
b2a1b7ec55
@@ -276,7 +276,6 @@ class AgentController extends Controller
|
||||
$user->id;
|
||||
$user->delete();
|
||||
throw new \Exception($error);
|
||||
|
||||
return redirect('agents')->with('success', Lang::get('lang.agent_deleted_sucessfully'));
|
||||
} catch (\Exception $e) {
|
||||
return redirect('agents')->with('fails', $error);
|
||||
|
@@ -639,7 +639,8 @@ class EmailsController extends Controller
|
||||
$controller->fetch($email);
|
||||
}
|
||||
|
||||
public function checkMail($request) {
|
||||
public function checkMail($request)
|
||||
{
|
||||
$mailservice_id = $request->input('sending_protocol');
|
||||
$driver = $this->getDriver($mailservice_id);
|
||||
$username = $request->input('email_address');
|
||||
@@ -657,6 +658,7 @@ class EmailsController extends Controller
|
||||
$transport->setPassword($password);
|
||||
$mailer = \Swift_Mailer::newInstance($transport);
|
||||
$mailer->getTransport()->start();
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@@ -997,7 +997,6 @@ class SettingsController extends Controller
|
||||
$number .= '0';
|
||||
}
|
||||
|
||||
|
||||
if ($array_format[$i] !== '$' && $array_format[$i] !== '#') {
|
||||
$number .= $array_format[$i];
|
||||
}
|
||||
|
@@ -153,7 +153,6 @@ $users = DB::table('team_assign_agent')->select('team_assign_agent.id', 'team_as
|
||||
return $full_name;
|
||||
})
|
||||
|
||||
|
||||
->addColumn('active', function ($model) {
|
||||
if ($model->active == '1') {
|
||||
$role = "<a class='btn btn-success btn-xs'>".'Active'.'</a>';
|
||||
@@ -164,7 +163,6 @@ $users = DB::table('team_assign_agent')->select('team_assign_agent.id', 'team_as
|
||||
return $role;
|
||||
})
|
||||
|
||||
|
||||
->addColumn('assign_group', function ($model) {
|
||||
$group = Groups::whereId($model->assign_group)->first();
|
||||
|
||||
|
Reference in New Issue
Block a user