@@ 1015-1020 (lines=6) @@ | ||
1012 | $ticket_datetimes_remaining[$DTT_ID]['rem'] = $datetime_limits[$DTT_ID]; |
|
1013 | $ticket_datetimes_remaining[$DTT_ID]['datetime'] = $datetime; |
|
1014 | } |
|
1015 | usort($ticket_datetimes_remaining, function ($a, $b) { |
|
1016 | if ($a['rem'] === $b['rem']) { |
|
1017 | return 0; |
|
1018 | } |
|
1019 | return ($a['rem'] < $b['rem']) ? -1 : 1; |
|
1020 | }); |
|
1021 | //get the remaining on the first datetime (which should be the one with the least remaining) and that is |
|
1022 | //what we add to the spaces_available running total. Then we need to decrease the remaining on our datetime tracker. |
|
1023 | $lowest_datetime = reset($ticket_datetimes_remaining); |
@@ 2643-2649 (lines=7) @@ | ||
2640 | * @param $b |
|
2641 | * @return int |
|
2642 | */ |
|
2643 | private function _sort_nav_tabs($a, $b) |
|
2644 | { |
|
2645 | if ($a['order'] == $b['order']) { |
|
2646 | return 0; |
|
2647 | } |
|
2648 | return ($a['order'] < $b['order']) ? -1 : 1; |
|
2649 | } |
|
2650 | ||
2651 | ||
2652 |