Code Duplication    Length = 5-5 lines in 2 locations

Themes/default/Calendar.template.php 2 locations

@@ 255-259 (lines=5) @@
252
					if (!empty($day['events']))
253
					{
254
						// Sort events by start time (all day events will be listed first)
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;
259
						});
260
261
						echo '
262
							<div class="smalltext lefttext">
@@ 438-442 (lines=5) @@
435
							if (!empty($day['events']))
436
							{
437
								// Sort events by start time (all day events will be listed first)
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;
442
								});
443
444
								foreach ($day['events'] as $event)
445
								{