Passed
Push — development ( 65a7cc...764dda )
by
unknown
10:32
created
woocommerce/myaccount/form-edit-address.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,11 +23,14 @@
 block discarded – undo
23 23
 
24 24
 <?php if ( ! $load_address ) : ?>
25 25
 	<?php wc_get_template( 'myaccount/my-address.php' ); ?>
26
-<?php else : ?>
26
+<?php else {
27
+	: ?>
27 28
 
28 29
 	<form method="post">
29 30
 
30
-		<h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title, $load_address ); ?></h3><?php // @codingStandardsIgnoreLine ?>
31
+		<h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title, $load_address );
32
+}
33
+?></h3><?php // @codingStandardsIgnoreLine ?>
31 34
 
32 35
 		<div class="woocommerce-address-fields">
33 36
 			<?php do_action( "woocommerce_before_edit_address_form_{$load_address}" ); ?>
Please login to merge, or discard this patch.
woocommerce/checkout/form-coupon.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
 
18 18
 defined( 'ABSPATH' ) || exit;
19 19
 
20
-if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine.
20
+if ( ! wc_coupons_enabled() ) {
21
+// @codingStandardsIgnoreLine.
21 22
 	return;
22 23
 }
23 24
 
Please login to merge, or discard this patch.
index.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@
 block discarded – undo
22 22
 	 */
23 23
 	get_template_part( 'templates/loop/content', get_post_format() );
24 24
 	endwhile;
25
-else :
25
+else {
26
+	:
26 27
 	get_template_part( 'templates/loop/content', 'none' );
28
+}
27 29
 endif;
28 30
 
Please login to merge, or discard this patch.
inc/bootstrap-wp-navwalker.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -182,7 +182,8 @@
 block discarded – undo
182 182
 			}
183 183
 
184 184
 			$atts['target'] = ! empty( $item->target ) ? $item->target : '';
185
-			if ( '_blank' === $item->target && empty( $item->xfn ) ) { // Thanks to LukaszJaro, see https://github.com/understrap/understrap/issues/973
185
+			if ( '_blank' === $item->target && empty( $item->xfn ) ) {
186
+// Thanks to LukaszJaro, see https://github.com/understrap/understrap/issues/973
186 187
 				$atts['rel'] = 'noopener noreferrer';
187 188
 			} else {
188 189
 				$atts['rel'] = $item->xfn;
Please login to merge, or discard this patch.
woocommerce/myaccount/form-login.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,9 +113,12 @@
 block discarded – undo
113 113
 					       name="password" id="reg_password" autocomplete="new-password"/>
114 114
 				</p>
115 115
 
116
-			<?php else : ?>
116
+			<?php else {
117
+	: ?>
117 118
 
118
-				<p><?php esc_html_e( 'A password will be sent to your email address.', 'spurs' ); ?></p>
119
+				<p><?php esc_html_e( 'A password will be sent to your email address.', 'spurs' );
120
+}
121
+?></p>
119 122
 
120 123
 			<?php endif; ?>
121 124
 
Please login to merge, or discard this patch.
archive.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,6 +29,8 @@
 block discarded – undo
29 29
 		get_template_part( 'templates/loop/content', get_post_format() );
30 30
 	endwhile;
31 31
 
32
-else :
32
+else {
33
+	:
33 34
 	get_template_part( 'templates/loop/content', 'none' );
35
+}
34 36
 endif;
Please login to merge, or discard this patch.
templates/loop/content-none.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,9 +33,12 @@
 block discarded – undo
33 33
 			<?php
34 34
 			get_search_form();
35 35
 
36
-		else : ?>
36
+		else {
37
+			: ?>
37 38
 
38
-			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'spurs' ); ?></p>
39
+			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'spurs' );
40
+		}
41
+		?></p>
39 42
 			<?php
40 43
 			get_search_form();
41 44
 		endif; ?>
Please login to merge, or discard this patch.
header.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,12 +43,17 @@
 block discarded – undo
43 43
 							<a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>"
44 44
 							   title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
45 45
 						</h1>
46
-					<?php else : ?>
47
-						<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>"
46
+					<?php else {
47
+	: ?>
48
+						<a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) );
49
+}
50
+?>"
48 51
 						   title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
49 52
 					<?php endif;
50
-				else :
53
+				else {
54
+					:
51 55
 					the_custom_logo();
56
+				}
52 57
 				endif; // end custom logo ?>
53 58
 
54 59
 				<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown"
Please login to merge, or discard this patch.
woocommerce/myaccount/orders.php 1 patch
Braces   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,8 @@  discard block
 block discarded – undo
70 70
 							$actions = wc_get_account_orders_actions( $order );
71 71
 
72 72
 							if ( ! empty( $actions ) ) {
73
-								foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
73
+								foreach ( $actions as $key => $action ) {
74
+// phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
74 75
 									echo '<a href="' . esc_url( $action['url'] ) . '" class="woocommerce-button button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>';
75 76
 								}
76 77
 							}
@@ -104,11 +105,14 @@  discard block
 block discarded – undo
104 105
 		endif; ?>
105 106
 
106 107
 			<?php
107
-		else : ?>
108
+		else {
109
+			: ?>
108 110
 			<div
109 111
 				class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-Message--info woocommerce-info">
110 112
 				<a class="woocommerce-Button button"
111
-				   href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
113
+				   href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) );
114
+		}
115
+		?>">
112 116
 					<?php esc_html_e( 'Go to the shop', 'spurs' ); ?>
113 117
 				</a>
114 118
 				<?php esc_html_e( 'No order has been made yet.', 'spurs' ); ?>
Please login to merge, or discard this patch.