Use more meaningful variable names
This commit is contained in:
parent
b33da1563f
commit
0eb9145e5a
|
@ -125,9 +125,9 @@ function parseData($config, $data) {
|
||||||
$events[$hall_id] = $hall_data;
|
$events[$hall_id] = $hall_data;
|
||||||
}
|
}
|
||||||
// Remove halls with no events after filtering
|
// Remove halls with no events after filtering
|
||||||
foreach ($events as $i => $val) {
|
foreach ($events as $i => $event) {
|
||||||
$hasEvents = false;
|
$hasEvents = false;
|
||||||
foreach ($events[$i] as $event_info) {
|
foreach ($event as $event_info) {
|
||||||
if (!is_null($event_info)) {
|
if (!is_null($event_info)) {
|
||||||
$hasEvents = true;
|
$hasEvents = true;
|
||||||
break;
|
break;
|
||||||
|
@ -143,12 +143,12 @@ function parseData($config, $data) {
|
||||||
$events = array_map(null, ...$events);
|
$events = array_map(null, ...$events);
|
||||||
|
|
||||||
// Filter empty slots
|
// Filter empty slots
|
||||||
foreach($events as $i => $val) {
|
foreach($events as $i => $event) {
|
||||||
$hall_count = count($events[$i]);
|
$hall_count = count($event);
|
||||||
$hasEvents = false;
|
$hasEvents = false;
|
||||||
|
|
||||||
for ($j = 0; $j < $hall_count; ++$j) {
|
for ($j = 0; $j < $hall_count; ++$j) {
|
||||||
if (!is_null($events[$i][$j]) && $events[$i][$j]['edge']) {
|
if (!is_null($event[$j]) && $event[$j]['edge']) {
|
||||||
$hasEvents = true;
|
$hasEvents = true;
|
||||||
continue 2;
|
continue 2;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue