@@ 2647-2653 (lines=7) @@ | ||
2644 | * @param $b |
|
2645 | * @return int |
|
2646 | */ |
|
2647 | private function _sort_nav_tabs($a, $b) |
|
2648 | { |
|
2649 | if ($a['order'] == $b['order']) { |
|
2650 | return 0; |
|
2651 | } |
|
2652 | return ($a['order'] < $b['order']) ? -1 : 1; |
|
2653 | } |
|
2654 | ||
2655 | ||
2656 |
@@ 1073-1078 (lines=6) @@ | ||
1070 | $ticket_datetimes_remaining[$datetime->ID()]['rem'] = $datetime_limits[$datetime->ID()]; |
|
1071 | $ticket_datetimes_remaining[$datetime->ID()]['datetime'] = $datetime; |
|
1072 | } |
|
1073 | usort($ticket_datetimes_remaining, function ($a, $b) { |
|
1074 | if ($a['rem'] === $b['rem']) { |
|
1075 | return 0; |
|
1076 | } |
|
1077 | return ($a['rem'] < $b['rem']) ? -1 : 1; |
|
1078 | }); |
|
1079 | //get the remaining on the first datetime (which should be the one with the least remaining) and that is |
|
1080 | //what we add to the spaces_available running total. Then we need to decrease the remaining on our datetime tracker. |
|
1081 | $lowest_datetime = reset($ticket_datetimes_remaining); |