Use camel case for variable name

This commit is contained in:
James Brooks 2018-03-30 17:31:39 +01:00
parent 7dae5ac66c
commit 8fe2c22ac8

View File

@ -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