Merge pull request #1246 from thehereward/fix-spelling-mistakes

Fix some obvious spelling mistakes.
This commit is contained in:
Graham Campbell
2015-12-21 22:25:46 +00:00
6 changed files with 10 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ use CachetHQ\Cachet\Models\Invite;
final class ClaimInviteCommand
{
/**
* The invte to mark as claimed.
* The invite to mark as claimed.
*
* @var \CachetHQ\Cachet\Models\Invite
*/

View File

@@ -14,7 +14,7 @@ namespace CachetHQ\Cachet\Commands\User;
final class InviteTeamMemberCommand
{
/**
* The invte emails.
* The invite emails.
*
* @var string[]
*/

View File

@@ -26,7 +26,7 @@ class ReportMaintenanceCommandHandler
protected $dates;
/**
* Create a new report maintanance command handler instance.
* Create a new report maintenance command handler instance.
*
* @param \CachetHQ\Cachet\Dates\DateFactory $dates
*

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) {

View File

@@ -98,7 +98,7 @@ class IncidentPresenter extends AbstractPresenter
}
/**
* Present formated date time.
* Present formatted date time.
*
* @return string
*/