Code Duplication    Length = 2-2 lines in 3 locations

Sources/Display.php 1 location

@@ 568-569 (lines=2) @@
565
			list($start, $end, $allday, $span, $tz, $tz_abbrev) = buildEventDatetimes($row);
566
567
			// Sanity check
568
			if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
569
				continue;
570
571
			$linked_calendar_event = array(
572
				'id' => $row['id_event'],

Sources/Subs-Calendar.php 2 locations

@@ 177-178 (lines=2) @@
174
			$timezone_array[$tz] = timezone_open($tz);
175
176
		// Sanity check
177
		if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
178
			continue;
179
180
		// Get set up for the loop
181
		$start_object = date_create($row['start_date'] . (!$allday ? ' ' . $row['start_time'] : ''), $timezone_array[$tz]);
@@ 1217-1218 (lines=2) @@
1214
	list($start, $end, $allday, $span, $tz, $tz_abbrev) = buildEventDatetimes($row);
1215
1216
	// Sanity check
1217
	if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
1218
		return false;
1219
1220
	$return_value = array(
1221
		'boards' => array(),