Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 111-112 (lines=2) @@
108
	ksort($bday);
109
110
	// Set is_last, so the themes know when to stop placing separators.
111
	foreach ($bday as $mday => $array)
112
		$bday[$mday][count($array) - 1]['is_last'] = true;
113
114
	return $bday;
115
}
@@ 265-266 (lines=2) @@
262
	// If we're doing normal contextual data, go through and make things clear to the templates ;).
263
	if ($use_permissions)
264
	{
265
		foreach ($events as $mday => $array)
266
			$events[$mday][count($array) - 1]['is_last'] = true;
267
	}
268
269
	ksort($events);