Passed
Push — master ( 54b8f2...ba36ac )
by Warwick
07:49
created
templates/taxonomy-plan-type.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@  discard block
 block discarded – undo
15 15
 	$redirect   = '/content-restricted/?r=' . $page_id . '&wcm_redirect_to=archive&wcm_redirect_id=' . $page_id;
16 16
 ?>
17 17
 
18
-	<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>">
18
+	<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>">
19 19
 
20 20
 		<?php lsx_content_before(); ?>
21 21
 
22 22
 		<!-- Begining restricted content -->
23 23
 		<?php
24
-		if ( ! function_exists( 'wc_memberships_view_restricted_post_content' ) || ( current_user_can( 'wc_memberships_view_restricted_post_content', $post_id ) ) ) {
24
+		if ( ! function_exists('wc_memberships_view_restricted_post_content') || (current_user_can('wc_memberships_view_restricted_post_content', $post_id))) {
25 25
 			?>
26 26
 			<main id="main" role="main">
27 27
 
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
 
30 30
 				<div class="post-wrapper archive-plan">
31 31
 					<div class="row">
32
-						<?php if ( have_posts() ) : ?>
32
+						<?php if (have_posts()) : ?>
33 33
 							<?php
34
-							while ( have_posts() ) :
34
+							while (have_posts()) :
35 35
 								the_post();
36 36
 								?>
37 37
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
 						<?php else : ?>
43 43
 
44
-							<?php get_template_part( 'partials/content', 'none' ); ?>
44
+							<?php get_template_part('partials/content', 'none'); ?>
45 45
 
46 46
 						<?php endif; ?>
47 47
 					</div>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
 			<?php
55 55
 		} else {
56
-			wp_redirect( $redirect );
56
+			wp_redirect($redirect);
57 57
 			exit;
58 58
 		}
59 59
 		?>
Please login to merge, or discard this patch.