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

@@ 170-171 (lines=2) @@
167
		list($start, $end, $allday, $span, $tz, $tz_abbrev) = buildEventDatetimes($row);
168
169
		// Sanity check
170
		if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
171
			continue;
172
173
		// Get set up for the loop
174
		$start_object = date_create($row['start_date'] . (!$allday ? ' ' . $row['start_time'] : ''), timezone_open($tz));
@@ 1210-1211 (lines=2) @@
1207
	list($start, $end, $allday, $span, $tz, $tz_abbrev) = buildEventDatetimes($row);
1208
1209
	// Sanity check
1210
	if (!empty($start['error_count']) || !empty($start['warning_count']) || !empty($end['error_count']) || !empty($end['warning_count']))
1211
		return false;
1212
1213
	$return_value = array(
1214
		'boards' => array(),