Passed
Pull Request — master (#389)
by Jacques
03:10
created
partials/content.php 1 patch
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,14 +70,20 @@  discard block
 block discarded – undo
70 70
 				<h1 class="entry-title">
71 71
 					<?php if ( has_post_thumbnail() ) : ?>
72 72
 						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a>
73
-					<?php else : ?>
74
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
73
+					<?php else {
74
+	: ?>
75
+						<a href="<?php echo esc_url( $archive_link );
76
+}
77
+?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
75 78
 					<?php endif; ?>
76 79
 
77 80
 					<?php if ( has_post_format( array( 'link' ) ) ) : ?>
78 81
 						<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
79
-					<?php else : ?>
80
-						<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
82
+					<?php else {
83
+	: ?>
84
+						<a href="<?php the_permalink();
85
+}
86
+?>" rel="bookmark"><?php the_title(); ?></a>
81 87
 					<?php endif; ?>
82 88
 
83 89
 					<?php if ( is_sticky() ) : ?>
@@ -103,11 +109,13 @@  discard block
 block discarded – undo
103 109
 						<?php the_content(); ?>
104 110
 					</div><!-- .entry-content -->
105 111
 
106
-				<?php else : ?>
112
+				<?php else {
113
+	: ?>
107 114
 
108 115
 					<div class="entry-content">
109 116
 						<?php
110 117
 							the_content();
118
+}
111 119
 
112 120
 							wp_link_pages( array(
113 121
 								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
Please login to merge, or discard this patch.
footer.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,10 @@
 block discarded – undo
20 20
 					<div class="col-sm-12">
21 21
 						<?php lsx_footer_top(); ?>
22 22
 
23
-						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>">
23
+						<p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) {
24
+	echo 'credit-float';
25
+}
26
+?>">
24 27
 							<?php
25 28
 								printf(
26 29
 									/* Translators: 1: current year, 2: blog name */
Please login to merge, or discard this patch.
index.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
 			<?php lsx_paging_nav(); ?>
33 33
 
34
-		<?php else : ?>
34
+		<?php else {
35
+	: ?>
35 36
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
37
+			<?php get_template_part( 'partials/content', 'none' );
38
+}
39
+?>
37 40
 
38 41
 		<?php endif; ?>
39 42
 
Please login to merge, or discard this patch.
includes/classes/class-lsx-bootstrap-navwalker.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -93,14 +93,17 @@
 block discarded – undo
93 93
 
94 94
 				$class_names = join( ' ', $classes );
95 95
 
96
-				if ( $args->has_children )
97
-					$class_names .= ' dropdown';
96
+				if ( $args->has_children ) {
97
+									$class_names .= ' dropdown';
98
+				}
98 99
 
99
-				if ( in_array( 'current-menu-item', $classes ) )
100
-					$class_names .= ' active';
100
+				if ( in_array( 'current-menu-item', $classes ) ) {
101
+									$class_names .= ' active';
102
+				}
101 103
 
102
-				if ( in_array( 'current-menu-parent', $classes ) )
103
-					$class_names .= ' active';
104
+				if ( in_array( 'current-menu-parent', $classes ) ) {
105
+									$class_names .= ' active';
106
+				}
104 107
 
105 108
 				//Check if this is ment to be a "social" type menu
106 109
 				$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
Please login to merge, or discard this patch.
archive.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
 			<?php lsx_paging_nav(); ?>
33 33
 
34
-		<?php else : ?>
34
+		<?php else {
35
+	: ?>
35 36
 
36
-			<?php get_template_part( 'partials/content', 'none' ); ?>
37
+			<?php get_template_part( 'partials/content', 'none' );
38
+}
39
+?>
37 40
 
38 41
 		<?php endif; ?>
39 42
 
Please login to merge, or discard this patch.
page-templates/template-wc-thank-you.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,8 +72,12 @@  discard block
 block discarded – undo
72 72
 
73 73
 							<dl class="customer_details">
74 74
 								<?php
75
-									if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
76
-									if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
75
+									if ( $order->billing_email ) {
76
+										echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>';
77
+									}
78
+									if ( $order->billing_phone ) {
79
+										echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>';
80
+									}
77 81
 
78 82
 									// Additional customer details hook
79 83
 									do_action( 'woocommerce_order_details_after_customer_details', $order );
@@ -230,9 +234,12 @@  discard block
 block discarded – undo
230 234
 
231 235
 					<?php // @codingStandardsIgnoreEnd ?>
232 236
 
233
-				<?php else : ?>
237
+				<?php else {
238
+	: ?>
234 239
 
235
-					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div>
240
+					<div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' );
241
+}
242
+?></div>
236 243
 
237 244
 				<?php endif; ?>
238 245
 
Please login to merge, or discard this patch.
partials/content-none.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,12 @@
 block discarded – undo
23 23
 
24 24
 			<?php echo wp_kses_post( apply_filters( 'lsx_404_search_form', get_search_form() ) ); ?>
25 25
 
26
-		<?php else : ?>
26
+		<?php else {
27
+	: ?>
27 28
 
28
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' ); ?></p>
29
+			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'lsx' );
30
+}
31
+?></p>
29 32
 			<?php echo wp_kses_post( apply_filters( 'lsx_404_search_form', get_search_form() ) ); ?>
30 33
 
31 34
 		<?php endif; ?>
Please login to merge, or discard this patch.
partials/content-related.php 1 patch
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,14 +79,20 @@  discard block
 block discarded – undo
79 79
 				<h2 class="entry-title">
80 80
 					<?php if ( has_post_thumbnail() ) : ?>
81 81
 						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a>
82
-					<?php else : ?>
83
-						<a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
82
+					<?php else {
83
+	: ?>
84
+						<a href="<?php echo esc_url( $archive_link );
85
+}
86
+?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a>
84 87
 					<?php endif; ?>
85 88
 
86 89
 					<?php if ( has_post_format( array( 'link' ) ) ) : ?>
87 90
 						<a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a>
88
-					<?php else : ?>
89
-						<a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
91
+					<?php else {
92
+	: ?>
93
+						<a href="<?php the_permalink();
94
+}
95
+?>" rel="bookmark"><?php the_title(); ?></a>
90 96
 					<?php endif; ?>
91 97
 
92 98
 					<?php if ( is_sticky() ) : ?>
@@ -111,11 +117,13 @@  discard block
 block discarded – undo
111 117
 						<?php the_content(); ?>
112 118
 					</div><!-- .entry-content -->
113 119
 
114
-				<?php else : ?>
120
+				<?php else {
121
+	: ?>
115 122
 
116 123
 					<div class="entry-content">
117 124
 						<?php
118 125
 							the_content();
126
+}
119 127
 
120 128
 							wp_link_pages( array(
121 129
 								'before'      => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">',
Please login to merge, or discard this patch.
includes/gutenberg.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,8 +26,9 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function add_gutenberg_compatible_body_class( $classes ) {
28 28
 	// if ( ! is_home() && ! is_front_page() ).
29
-	if ( is_page() || is_page_template() || is_single() )
30
-		$classes[] = 'gutenberg-compatible-template';
29
+	if ( is_page() || is_page_template() || is_single() ) {
30
+			$classes[] = 'gutenberg-compatible-template';
31
+	}
31 32
 
32 33
 	// Add a class if the page is using the Content and Media block.
33 34
 	$post = get_post();
@@ -48,8 +49,9 @@  discard block
 block discarded – undo
48 49
 
49 50
 // Add custom class for templates that are using the Gutenberg editor.
50 51
 add_action('body_class', function( $classes ) {
51
-	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) && ( ( is_singular( 'post' ) || is_page() ) ) )
52
-		$classes[] = 'using-gutenberg';
52
+	if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) && ( ( is_singular( 'post' ) || is_page() ) ) ) {
53
+			$classes[] = 'using-gutenberg';
54
+	}
53 55
 	return $classes;
54 56
 });
55 57
 
Please login to merge, or discard this patch.