Code Duplication    Length = 3-3 lines in 2 locations

_inc/lib/icalendar-reader.php 1 location

@@ 725-727 (lines=3) @@
722
			<li>
723
				<strong class="event-summary"><?php echo $this->escape( stripslashes( $event['SUMMARY'] ) ); ?></strong>
724
				<span class="event-when"><?php echo $this->formatted_date( $event ); ?></span>
725
				<?php if ( ! empty( $event['LOCATION'] ) ) : ?>
726
					<span class="event-location"><?php echo $this->escape( stripslashes( $event['LOCATION'] ) ); ?></span>
727
				<?php endif; ?>
728
				<?php if ( ! empty( $event['DESCRIPTION'] ) ) : ?>
729
					<span class="event-description"><?php echo wp_trim_words( $this->escape( stripcslashes( $event['DESCRIPTION'] ) ) ); ?></span>
730
				<?php endif; ?>

modules/widgets/upcoming-events.php 1 location

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