mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Use camel case for variable name
This commit is contained in:
parent
7dae5ac66c
commit
8fe2c22ac8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user