Code Duplication    Length = 3-3 lines in 2 locations

modules/widgets/upcoming-events.php 1 location

@@ 99-101 (lines=3) @@
96
				<li>
97
					<strong class="event-summary"><?php echo $ical->escape( stripslashes( $event['SUMMARY'] ) ); ?></strong>
98
					<span class="event-when"><?php echo $ical->formatted_date( $event ); ?></span>
99
					<?php if ( ! empty( $event['LOCATION'] ) ) : ?>
100
						<span class="event-location"><?php echo $ical->escape( stripslashes( $event['LOCATION'] ) ); ?></span>
101
					<?php endif; ?>
102
					<?php if ( ! empty( $event['DESCRIPTION'] ) ) : ?>
103
						<span class="event-description"><?php echo wp_trim_words( $ical->escape( stripcslashes( $event['DESCRIPTION'] ) ) ); ?></span>
104
					<?php endif; ?>

_inc/lib/icalendar-reader.php 1 location

@@ 757-759 (lines=3) @@
754
			<li>
755
				<strong class="event-summary"><?php echo $this->escape( stripslashes( $event['SUMMARY'] ) ); ?></strong>
756
				<span class="event-when"><?php echo $this->formatted_date( $event ); ?></span>
757
				<?php if ( ! empty( $event['LOCATION'] ) ) : ?>
758
					<span class="event-location"><?php echo $this->escape( stripslashes( $event['LOCATION'] ) ); ?></span>
759
				<?php endif; ?>
760
				<?php if ( ! empty( $event['DESCRIPTION'] ) ) : ?>
761
					<span class="event-description"><?php echo wp_trim_words( $this->escape( stripcslashes( $event['DESCRIPTION'] ) ) ); ?></span>
762
				<?php endif; ?>