Merge pull request #360 from ladybirdweb/analysis-8wgOEE

Apply fixes from StyleCI
This commit is contained in:
Manish Verma
2016-12-29 14:51:38 +05:30
committed by GitHub

View File

@@ -93,17 +93,16 @@ class TeamController extends Controller
if ($request->team_lead) { if ($request->team_lead) {
$team_lead = $request->team_lead; $team_lead = $request->team_lead;
$team_update->update([ $team_update->update([
'team_lead' => $team_lead 'team_lead' => $team_lead,
]); ]);
Assign_team_agent::create([ Assign_team_agent::create([
'team_id' => $team_update->id, 'team_id' => $team_update->id,
'agent_id' => $team_lead 'agent_id' => $team_lead,
]); ]);
} else { } else {
$team_lead = null; $team_lead = null;
} }
/* redirect to Index page with Success Message */ /* redirect to Index page with Success Message */
return redirect('teams')->with('success', Lang::get('lang.teams_created_successfully')); return redirect('teams')->with('success', Lang::get('lang.teams_created_successfully'));
} catch (Exception $e) { } catch (Exception $e) {