Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

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