Fix styleci violations

This commit is contained in:
Nico Stapelbroek
2018-01-13 18:30:43 +01:00
parent 0af68e755f
commit 55f6ee7dc7
4 changed files with 6 additions and 7 deletions

View File

@@ -298,6 +298,7 @@ class IncidentController extends Controller
public function showIncidentUpdates(Incident $incident)
{
$updates = IncidentUpdate::byIncident($incident)->orderBy('created_at', 'desc')->get();
return View::make('dashboard.incidents.updates.index')->withIncident($incident)->withUpdates($updates);
}
@@ -340,11 +341,10 @@ class IncidentController extends Controller
->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.incidents.updates.success')));
}
/**
* Shows the edit incident view.
*
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param \CachetHQ\Cachet\Models\IncidentUpdate $incidentUpdate
*
* @return \Illuminate\View\View
@@ -357,9 +357,9 @@ class IncidentController extends Controller
}
/**
* Edit an incident.
* Edit an incident update.
*
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param \CachetHQ\Cachet\Models\IncidentUpdate $incidentUpdate
*
* @return \Illuminate\Http\RedirectResponse