Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 713-714 (lines=2) @@
710
	}
711
712
	// Mark the last item so that a list separator can be used in the template.
713
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
714
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
715
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
716
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
717
@@ 715-716 (lines=2) @@
712
	// Mark the last item so that a list separator can be used in the template.
713
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
714
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
715
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
716
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
717
718
	return array(
719
		'data' => $return_data,