@@ -1459,8 +1459,6 @@ |
||
| 1459 | 1459 | * Helper function for getEventRange, getEventProperties, getNewEventDatetimes, etc. |
| 1460 | 1460 | * |
| 1461 | 1461 | * @param array $row A database row representing an event from the calendar table |
| 1462 | - * @param string $date_format Tells timeformat() how to format the date values for display to the user |
|
| 1463 | - * @param string $time_format Tells timeformat() how to format the time values for display to the user |
|
| 1464 | 1462 | * @return array An array containing the start and end date and time properties for the event |
| 1465 | 1463 | */ |
| 1466 | 1464 | function buildEventDatetimes($row) |
@@ -253,9 +253,9 @@ discard block |
||
| 253 | 253 | { |
| 254 | 254 | // Sort events by start time (all day events will be listed first) |
| 255 | 255 | uasort($day['events'], function ($a, $b) { |
| 256 | - if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 257 | - return 0; |
|
| 258 | - return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 256 | + if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 257 | + return 0; |
|
| 258 | + return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 259 | 259 | }); |
| 260 | 260 | |
| 261 | 261 | echo ' |
@@ -436,9 +436,9 @@ discard block |
||
| 436 | 436 | { |
| 437 | 437 | // Sort events by start time (all day events will be listed first) |
| 438 | 438 | uasort($day['events'], function ($a, $b) { |
| 439 | - if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 440 | - return 0; |
|
| 441 | - return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 439 | + if ($a['start_timestamp'] == $b['start_timestamp']) |
|
| 440 | + return 0; |
|
| 441 | + return ($a['start_timestamp'] < $b['start_timestamp']) ? -1 : 1; |
|
| 442 | 442 | }); |
| 443 | 443 | |
| 444 | 444 | foreach ($day['events'] as $event) |