Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 852-853 (lines=2) @@
849
	}
850
851
	// Mark the last item so that a list separator can be used in the template.
852
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
853
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
854
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
855
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
856
@@ 854-855 (lines=2) @@
851
	// Mark the last item so that a list separator can be used in the template.
852
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
853
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
854
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
855
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
856
857
	return array(
858
		'data' => $return_data,