Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 834-835 (lines=2) @@
831
	}
832
833
	// Mark the last item so that a list separator can be used in the template.
834
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
835
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
836
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
837
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
838
@@ 836-837 (lines=2) @@
833
	// Mark the last item so that a list separator can be used in the template.
834
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
835
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
836
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
837
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
838
839
	return array(
840
		'data' => $return_data,