Fix some obvious spelling mistakes.

This commit is contained in:
Hereward Mills
2015-12-21 22:06:21 +00:00
parent 1607275d2d
commit ee886cddfd
6 changed files with 10 additions and 10 deletions

View File

@@ -36,9 +36,9 @@ class IncidentController extends AbstractApiController
*/
public function getIncidents(Request $request, Guard $auth)
{
$incidentVisiblity = $auth->check() ? 0 : 1;
$incidentVisibility = $auth->check() ? 0 : 1;
$incidents = Incident::where('visible', '>=', $incidentVisiblity)->paginate(Binput::get('per_page', 20));
$incidents = Incident::where('visible', '>=', $incidentVisibility)->paginate(Binput::get('per_page', 20));
return $this->paginator($incidents, $request);
}
@@ -87,7 +87,7 @@ class IncidentController extends AbstractApiController
/**
* Update an existing incident.
*
* @param \CachetHQ\Cachet\Models\Inicdent $incident
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return \Illuminate\Http\JsonResponse
*/
@@ -117,7 +117,7 @@ class IncidentController extends AbstractApiController
/**
* Delete an existing incident.
*
* @param \CachetHQ\Cachet\Models\Inicdent $incident
* @param \CachetHQ\Cachet\Models\Incident $incident
*
* @return \Illuminate\Http\JsonResponse
*/

View File

@@ -56,9 +56,9 @@ class StatusPageController extends Controller
}
$dateTimeZone = Setting::get('app_timezone');
$incidentVisiblity = Auth::check() ? 0 : 1;
$incidentVisibility = Auth::check() ? 0 : 1;
$allIncidents = Incident::notScheduled()->where('visible', '>=', $incidentVisiblity)->whereBetween('created_at', [
$allIncidents = Incident::notScheduled()->where('visible', '>=', $incidentVisibility)->whereBetween('created_at', [
$startDate->copy()->subDays($daysToShow)->format('Y-m-d').' 00:00:00',
$startDate->format('Y-m-d').' 23:59:59',
])->orderBy('scheduled_at', 'desc')->orderBy('created_at', 'desc')->get()->groupBy(function (Incident $incident) use ($dateTimeZone) {