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

View File

@@ -89,7 +89,6 @@ class IncidentRoutes
'as' => 'post:dashboard.incidents.updates.edit',
'uses' => 'IncidentController@editIncidentUpdateAction',
]);
});
}
}

View File

@@ -78,7 +78,7 @@ class IncidentUpdate extends Model implements HasPresenter
* Scope all by incident.
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @param \CachetHQ\Cachet\Models\Incident $incident
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return \Illuminate\Database\Eloquent\Builder
*/

View File

@@ -24,7 +24,7 @@ return [
'updates' => [
'title' => 'Incident updates for :incident',
'count' => '{0} Zero Updates|[1] One Update|[2] Two Updates|[3,Inf] Several Updates',
'add' => [
'add' => [
'title' => 'Create new incident update',
'success' => 'Your new incident update has been created.',
'failure' => 'Something went wrong with the incident update.',