Code Duplication    Length = 2-2 lines in 2 locations

Sources/Subs-Calendar.php 2 locations

@@ 841-842 (lines=2) @@
838
	}
839
840
	// Mark the last item so that a list separator can be used in the template.
841
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
842
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
843
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
844
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
845
@@ 843-844 (lines=2) @@
840
	// Mark the last item so that a list separator can be used in the template.
841
	for ($i = 0, $n = count($return_data['calendar_birthdays']); $i < $n; $i++)
842
		$return_data['calendar_birthdays'][$i]['is_last'] = !isset($return_data['calendar_birthdays'][$i + 1]);
843
	for ($i = 0, $n = count($return_data['calendar_events']); $i < $n; $i++)
844
		$return_data['calendar_events'][$i]['is_last'] = !isset($return_data['calendar_events'][$i + 1]);
845
846
	return array(
847
		'data' => $return_data,