Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 431-434 (lines=4) @@
428
						$event_classes  .= 'simcal-event ' . $recurring . $has_location . $calendar_class . ' simcal-tooltip';
429
430
						// Toggle some events visibility if more than optional limit.
431
						if ( ( $calendar->events_limit > -1 )  && ( $count >= $calendar->events_limit ) ) :
432
							$event_classes    .= ' simcal-event-toggled';
433
							$event_visibility  = ' style="display: none"';
434
						endif;
435
436
						// Event title in list.
437
						$title = ! empty( $event->title ) ? trim( $event->title ) : __( 'Event', 'google-calendar-events' );

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

@@ 626-629 (lines=4) @@
623
							$event_classes .= 'simcal-event ' . $recurring . $has_location . $calendar_class;
624
625
							// Toggle some events visibility if more than optional limit.
626
							if ( ( $calendar->events_limit > - 1 ) && ( $count >= $calendar->events_limit ) ) :
627
								$event_classes .= ' simcal-event-toggled';
628
								$event_visibility = ' style="display: none"';
629
							endif;
630
631
							$event_color = $event->get_color();
632
							if ( ! empty( $event_color ) ) {