Code Duplication    Length = 4-4 lines in 2 locations

includes/calendars/views/default-calendar-grid.php 1 location

@@ 447-450 (lines=4) @@
444
						$event_classes  .= 'simcal-event ' . $recurring . $has_location . $calendar_class . ' simcal-tooltip';
445
446
						// Toggle some events visibility if more than optional limit.
447
						if ( ( $calendar->events_limit > -1 )  && ( $count >= $calendar->events_limit ) ) :
448
							$event_classes    .= ' simcal-event-toggled';
449
							$event_visibility  = ' style="display: none"';
450
						endif;
451
452
						// Event title in list.
453
						$title = ! empty( $event->title ) ? trim( $event->title ) : __( 'Event', 'google-calendar-events' );

includes/calendars/views/default-calendar-list.php 1 location

@@ 588-591 (lines=4) @@
585
							$event_classes .= 'simcal-event ' . $recurring . $has_location . $calendar_class;
586
587
							// Toggle some events visibility if more than optional limit.
588
							if ( ( $calendar->events_limit > - 1 ) && ( $count >= $calendar->events_limit ) ) :
589
								$event_classes .= ' simcal-event-toggled';
590
								$event_visibility = ' style="display: none"';
591
							endif;
592
593
							$event_color = '';
594
							$bullet = '';