Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 817-818 (lines=2) @@
814
	}
815
816
	// Mark the last item so that a list separator can be used in the template.
817
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
818
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
819
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
820
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
821
@@ 819-820 (lines=2) @@
816
	// Mark the last item so that a list separator can be used in the template.
817
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
818
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
819
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
820
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
821
822
	return array(
823
		'data' => $return_data,