Passed
Push — master ( c4ce36...e76f2f )
by Fernando
03:51 queued 01:18
created
tribe-events/day/single-featured.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -9,66 +9,66 @@
 block discarded – undo
9 9
  *
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
13
-	die( '-1' );
12
+if ( ! defined('ABSPATH')) {
13
+	die('-1');
14 14
 }
15 15
 
16 16
 $venue_details = tribe_get_venue_details();
17 17
 
18 18
 // Venue microformats
19
-$has_venue = ( $venue_details ) ? ' vcard' : '';
20
-$has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : '';
19
+$has_venue = ($venue_details) ? ' vcard' : '';
20
+$has_venue_address = ( ! empty($venue_details['address'])) ? ' location' : '';
21 21
 
22 22
 // Event Image
23
-echo tribe_event_featured_image( null, 'large' );
23
+echo tribe_event_featured_image(null, 'large');
24 24
 ?>
25 25
 
26 26
 <div class="tribe-events-event-content">
27 27
 	<!-- Event Title -->
28
-	<?php do_action( 'tribe_events_before_the_event_title' ) ?>
28
+	<?php do_action('tribe_events_before_the_event_title') ?>
29 29
 	<h2 class="tribe-events-list-event-title summary">
30
-		<a class="url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark">
30
+		<a class="url" href="<?php echo esc_url(tribe_get_event_link()); ?>" title="<?php the_title_attribute() ?>" rel="bookmark">
31 31
 			<?php the_title() ?>
32 32
 		</a>
33 33
 	</h2>
34
-	<?php do_action( 'tribe_events_after_the_event_title' ) ?>
34
+	<?php do_action('tribe_events_after_the_event_title') ?>
35 35
 
36 36
 	<!-- Event Meta -->
37
-	<?php do_action( 'tribe_events_before_the_meta' ) ?>
38
-	<div class="tribe-events-event-meta <?php echo esc_attr( $has_venue . $has_venue_address ); ?>">
37
+	<?php do_action('tribe_events_before_the_meta') ?>
38
+	<div class="tribe-events-event-meta <?php echo esc_attr($has_venue . $has_venue_address); ?>">
39 39
 
40 40
 		<!-- Schedule & Recurrence Details -->
41 41
 		<div class="tribe-updated published time-details">
42 42
 			<?php echo tribe_events_event_schedule_details(); ?>
43 43
 		</div>
44 44
 
45
-		<?php if ( $venue_details ) : ?>
45
+		<?php if ($venue_details) : ?>
46 46
 			<!-- Venue Display Info -->
47 47
 			<div class="tribe-events-venue-details">
48
-				<?php echo implode( ', ', $venue_details ); ?>
48
+				<?php echo implode(', ', $venue_details); ?>
49 49
 			</div> <!-- .tribe-events-venue-details -->
50 50
 		<?php endif; ?>
51 51
 
52 52
 	</div><!-- .tribe-events-event-meta -->
53
-	<?php do_action( 'tribe_events_after_the_meta' ) ?>
53
+	<?php do_action('tribe_events_after_the_meta') ?>
54 54
 
55
-	<?php if ( tribe_get_cost() ) : ?>
55
+	<?php if (tribe_get_cost()) : ?>
56 56
 		<div class="tribe-events-event-cost">
57
-			<?php esc_html_e( 'Price:', 'lsx' ) ?>
58
-			<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span>
57
+			<?php esc_html_e('Price:', 'lsx') ?>
58
+			<span class="ticket-cost"><?php echo tribe_get_cost(null, true); ?></span>
59 59
 			<?php
60 60
 			/** This action is documented in the-events-calendar/src/views/list/single-event.php */
61
-			do_action( 'tribe_events_inside_cost' )
61
+			do_action('tribe_events_inside_cost')
62 62
 			?>
63 63
 		</div>
64 64
 	<?php endif; ?>
65 65
 
66 66
 	<!-- Event Content -->
67
-	<?php do_action( 'tribe_events_before_the_content' ) ?>
67
+	<?php do_action('tribe_events_before_the_content') ?>
68 68
 	<div class="tribe-events-list-event-description tribe-events-content description entry-summary">
69 69
 		<?php echo tribe_events_get_the_excerpt(); ?>
70
-		<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'the-events-calendar' ) ?></a>
70
+		<a href="<?php echo esc_url(tribe_get_event_link()); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e('Find out more', 'the-events-calendar') ?></a>
71 71
 	</div><!-- .tribe-events-list-event-description -->
72 72
 
73
-	<?php do_action( 'tribe_events_after_the_content' ); ?>
73
+	<?php do_action('tribe_events_after_the_content'); ?>
74 74
 </div>
Please login to merge, or discard this patch.
tribe-events/day/single-event.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -9,76 +9,76 @@
 block discarded – undo
9 9
  *
10 10
  */
11 11
 
12
-if ( ! defined( 'ABSPATH' ) ) {
13
-	die( '-1' );
12
+if ( ! defined('ABSPATH')) {
13
+	die('-1');
14 14
 }
15 15
 
16 16
 $venue_details = tribe_get_venue_details();
17 17
 
18 18
 // Venue microformats
19
-$has_venue         = ( $venue_details ) ? ' vcard' : '';
20
-$has_venue_address = ( ! empty( $venue_details['address'] ) ) ? ' location' : '';
19
+$has_venue         = ($venue_details) ? ' vcard' : '';
20
+$has_venue_address = ( ! empty($venue_details['address'])) ? ' location' : '';
21 21
 
22 22
 // The address string via tribe_get_venue_details will often be populated even when there's
23 23
 // no address, so let's get the address string on its own for a couple of checks below.
24 24
 $venue_address = tribe_get_address();
25 25
 
26 26
 // Event Image
27
-echo tribe_event_featured_image( null, 'medium' );
27
+echo tribe_event_featured_image(null, 'medium');
28 28
 ?>
29 29
 
30 30
 <div class="tribe-events-event-content">
31 31
 	<!-- Event Title -->
32
-	<?php do_action( 'tribe_events_before_the_event_title' ) ?>
32
+	<?php do_action('tribe_events_before_the_event_title') ?>
33 33
 	<h2 class="tribe-events-list-event-title summary">
34
-		<a class="url" href="<?php echo esc_url( tribe_get_event_link() ); ?>" title="<?php the_title_attribute() ?>" rel="bookmark">
34
+		<a class="url" href="<?php echo esc_url(tribe_get_event_link()); ?>" title="<?php the_title_attribute() ?>" rel="bookmark">
35 35
 			<?php the_title() ?>
36 36
 		</a>
37 37
 	</h2>
38
-	<?php do_action( 'tribe_events_after_the_event_title' ) ?>
38
+	<?php do_action('tribe_events_after_the_event_title') ?>
39 39
 
40 40
 	<!-- Event Meta -->
41
-	<?php do_action( 'tribe_events_before_the_meta' ) ?>
42
-	<div class="tribe-events-event-meta <?php echo esc_attr( $has_venue . $has_venue_address ); ?>">
41
+	<?php do_action('tribe_events_before_the_meta') ?>
42
+	<div class="tribe-events-event-meta <?php echo esc_attr($has_venue . $has_venue_address); ?>">
43 43
 
44 44
 		<!-- Schedule & Recurrence Details -->
45 45
 		<div class="tribe-updated published time-details">
46 46
 			<?php echo tribe_events_event_schedule_details(); ?>
47 47
 		</div>
48 48
 
49
-		<?php if ( $venue_details ) : ?>
49
+		<?php if ($venue_details) : ?>
50 50
 			<!-- Venue Display Info -->
51 51
 			<div class="tribe-events-venue-details">
52 52
 			<?php
53
-				$address_delimiter = empty( $venue_address ) ? ' ' : ', ';
53
+				$address_delimiter = empty($venue_address) ? ' ' : ', ';
54 54
 
55 55
 				// These details are already escaped in various ways earlier in the code.
56
-				echo implode( $address_delimiter, $venue_details );
56
+				echo implode($address_delimiter, $venue_details);
57 57
 			?>
58 58
 			</div> <!-- .tribe-events-venue-details -->
59 59
 		<?php endif; ?>
60 60
 
61 61
 	</div><!-- .tribe-events-event-meta -->
62 62
 
63
-	<?php if ( tribe_get_cost() ) : ?>
63
+	<?php if (tribe_get_cost()) : ?>
64 64
 		<div class="tribe-events-event-cost">
65
-			<?php esc_html_e( 'Price:', 'lsx' ) ?>
66
-			<span class="ticket-cost"><?php echo tribe_get_cost( null, true ); ?></span>
65
+			<?php esc_html_e('Price:', 'lsx') ?>
66
+			<span class="ticket-cost"><?php echo tribe_get_cost(null, true); ?></span>
67 67
 			<?php
68 68
 			/** This action is documented in the-events-calendar/src/views/list/single-event.php */
69
-			do_action( 'tribe_events_inside_cost' )
69
+			do_action('tribe_events_inside_cost')
70 70
 			?>
71 71
 		</div>
72 72
 	<?php endif; ?>
73 73
 
74
-	<?php do_action( 'tribe_events_after_the_meta' ) ?>
74
+	<?php do_action('tribe_events_after_the_meta') ?>
75 75
 
76 76
 	<!-- Event Content -->
77
-	<?php do_action( 'tribe_events_before_the_content' ) ?>
77
+	<?php do_action('tribe_events_before_the_content') ?>
78 78
 	<div class="tribe-events-list-event-description tribe-events-content description entry-summary">
79 79
 		<?php echo tribe_events_get_the_excerpt(); ?>
80
-		<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e( 'Find out more', 'the-events-calendar' ) ?></a>
80
+		<a href="<?php echo esc_url(tribe_get_event_link()); ?>" class="tribe-events-read-more" rel="bookmark"><?php esc_html_e('Find out more', 'the-events-calendar') ?></a>
81 81
 	</div><!-- .tribe-events-list-event-description -->
82 82
 
83
-	<?php do_action( 'tribe_events_after_the_content' ); ?>
83
+	<?php do_action('tribe_events_after_the_content'); ?>
84 84
 </div>
Please login to merge, or discard this patch.