Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 235-236 (lines=2) @@
232
	// If we're doing normal contextual data, go through and make things clear to the templates ;).
233
	if ($use_permissions)
234
	{
235
		foreach ($events as $mday => $array)
236
			$events[$mday][count($array) - 1]['is_last'] = true;
237
	}
238
239
	ksort($events);
@@ 81-82 (lines=2) @@
78
	ksort($bday);
79
80
	// Set is_last, so the themes know when to stop placing separators.
81
	foreach ($bday as $mday => $array)
82
		$bday[$mday][count($array) - 1]['is_last'] = true;
83
84
	return $bday;
85
}