From 8fe2c22ac8db42e9e4e4af9c61fac921cf5635cd Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 30 Mar 2018 17:31:39 +0100 Subject: [PATCH] Use camel case for variable name --- app/Http/Controllers/StatusPageController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/StatusPageController.php b/app/Http/Controllers/StatusPageController.php index fe25beb35..ccecc669a 100644 --- a/app/Http/Controllers/StatusPageController.php +++ b/app/Http/Controllers/StatusPageController.php @@ -45,7 +45,7 @@ class StatusPageController extends AbstractApiController */ public function showIndex() { - $only_disrupted_days = Config::get('setting.only_disrupted_days'); + $onlyDisruptedDays = Config::get('setting.only_disrupted_days'); $appIncidentDays = (int) Config::get('setting.app_incident_days', 1); // Used for the database query @@ -57,7 +57,7 @@ class StatusPageController extends AbstractApiController $previousDate = null; $nextDate = null; - if ($only_disrupted_days) { + if ($onlyDisruptedDays) { // In this case, start_date GET parameter means the page $page = Binput::get('start_date', 0); @@ -121,7 +121,7 @@ class StatusPageController extends AbstractApiController return app(DateFactory::class)->make($incident->occurred_at)->toDateString(); }); - if (!$only_disrupted_days) { + if (!$onlyDisruptedDays) { $incidentDays = array_pad([], $appIncidentDays, null); // Add in days that have no incidents