Code Duplication    Length = 3-3 lines in 2 locations

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; ?>

_inc/lib/icalendar-reader.php 1 location

@@ 771-773 (lines=3) @@
768
			<li>
769
				<strong class="event-summary"><?php echo $this->escape( stripslashes( $event['SUMMARY'] ) ); ?></strong>
770
				<span class="event-when"><?php echo $this->formatted_date( $event ); ?></span>
771
				<?php if ( ! empty( $event['LOCATION'] ) ) : ?>
772
					<span class="event-location"><?php echo $this->escape( stripslashes( $event['LOCATION'] ) ); ?></span>
773
				<?php endif; ?>
774
				<?php if ( ! empty( $event['DESCRIPTION'] ) ) : ?>
775
					<span class="event-description"><?php echo wp_trim_words( $this->escape( stripcslashes( $event['DESCRIPTION'] ) ) ); ?></span>
776
				<?php endif; ?>