Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
plugins/woocommerce/templates/cart/mini-cart.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,11 @@  discard block
 block discarded – undo
54 54
 					?>
55 55
 					<?php if ( empty( $product_permalink ) ) : ?>
56 56
 						<?php echo $thumbnail . wp_kses_post( $product_name ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
57
-					<?php else : ?>
58
-						<a href="<?php echo esc_url( $product_permalink ); ?>">
57
+					<?php else {
58
+    : ?>
59
+						<a href="<?php echo esc_url( $product_permalink );
60
+}
61
+?>">
59 62
 							<?php echo $thumbnail . wp_kses_post( $product_name ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
60 63
 						</a>
61 64
 					<?php endif; ?>
@@ -87,9 +90,12 @@  discard block
 block discarded – undo
87 90
 
88 91
 	<?php do_action( 'woocommerce_widget_shopping_cart_after_buttons' ); ?>
89 92
 
90
-<?php else : ?>
93
+<?php else {
94
+    : ?>
91 95
 
92
-	<p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'woocommerce' ); ?></p>
96
+	<p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'woocommerce' );
97
+}
98
+?></p>
93 99
 
94 100
 <?php endif; ?>
95 101
 
Please login to merge, or discard this patch.
plugins/woocommerce/templates/cart/cart-shipping.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,12 +62,13 @@
 block discarded – undo
62 62
 				echo wp_kses_post( apply_filters( 'woocommerce_shipping_not_enabled_on_cart_html', __( 'Shipping costs are calculated during checkout.', 'woocommerce' ) ) );
63 63
 			} else {
64 64
 				echo wp_kses_post( apply_filters( 'woocommerce_shipping_may_be_available_html', __( 'Enter your address to view shipping options.', 'woocommerce' ) ) );
65
-			}
66
-		elseif ( ! is_cart() ) :
65
+			} elseif ( ! is_cart() ) :
67 66
 			echo wp_kses_post( apply_filters( 'woocommerce_no_shipping_available_html', __( 'There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.', 'woocommerce' ) ) );
68
-		else :
67
+		else {
68
+		    :
69 69
 			// Translators: $s shipping destination.
70 70
 			echo wp_kses_post( apply_filters( 'woocommerce_cart_no_shipping_available_html', sprintf( esc_html__( 'No shipping options were found for %s.', 'woocommerce' ) . ' ', '<strong>' . esc_html( $formatted_destination ) . '</strong>' ) ) );
71
+		}
71 72
 			$calculator_text = esc_html__( 'Enter a different address', 'woocommerce' );
72 73
 		endif;
73 74
 		?>
Please login to merge, or discard this patch.
plugins/woocommerce/templates/checkout/form-billing.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
 		<h3><?php esc_html_e( 'Billing &amp; Shipping', 'woocommerce' ); ?></h3>
25 25
 
26
-	<?php else : ?>
26
+	<?php else {
27
+    : ?>
27 28
 
28
-		<h3><?php esc_html_e( 'Billing details', 'woocommerce' ); ?></h3>
29
+		<h3><?php esc_html_e( 'Billing details', 'woocommerce' );
30
+}
31
+?></h3>
29 32
 
30 33
 	<?php endif; ?>
31 34
 
Please login to merge, or discard this patch.
plugins/woocommerce/templates/checkout/review-order.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,9 +89,12 @@
 block discarded – undo
89 89
 						<td><?php echo wp_kses_post( $tax->formatted_amount ); ?></td>
90 90
 					</tr>
91 91
 				<?php endforeach; ?>
92
-			<?php else : ?>
92
+			<?php else {
93
+    : ?>
93 94
 				<tr class="tax-total">
94
-					<th><?php echo esc_html( WC()->countries->tax_or_vat() ); ?></th>
95
+					<th><?php echo esc_html( WC()->countries->tax_or_vat() );
96
+}
97
+?></th>
95 98
 					<td><?php wc_cart_totals_taxes_total_html(); ?></td>
96 99
 				</tr>
97 100
 			<?php endif; ?>
Please login to merge, or discard this patch.
plugins/woocommerce/templates/checkout/thankyou.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,9 +37,12 @@  discard block
 block discarded – undo
37 37
 				<?php endif; ?>
38 38
 			</p>
39 39
 
40
-		<?php else : ?>
40
+		<?php else {
41
+    : ?>
41 42
 
42
-			<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), $order ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
43
+			<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), $order );
44
+}
45
+// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
43 46
 
44 47
 			<ul class="woocommerce-order-overview woocommerce-thankyou-order-details order_details">
45 48
 
@@ -79,9 +82,12 @@  discard block
 block discarded – undo
79 82
 		<?php do_action( 'woocommerce_thankyou_' . $order->get_payment_method(), $order->get_id() ); ?>
80 83
 		<?php do_action( 'woocommerce_thankyou', $order->get_id() ); ?>
81 84
 
82
-	<?php else : ?>
85
+	<?php else {
86
+    : ?>
83 87
 
84
-		<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), null ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
88
+		<p class="woocommerce-notice woocommerce-notice--success woocommerce-thankyou-order-received"><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', esc_html__( 'Thank you. Your order has been received.', 'woocommerce' ), null );
89
+}
90
+// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
85 91
 
86 92
 	<?php endif; ?>
87 93
 
Please login to merge, or discard this patch.
plugins/woocommerce/templates/single-product-reviews.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,11 @@  discard block
 block discarded – undo
60 60
 				echo '</nav>';
61 61
 			endif;
62 62
 			?>
63
-		<?php else : ?>
64
-			<p class="woocommerce-noreviews"><?php esc_html_e( 'There are no reviews yet.', 'woocommerce' ); ?></p>
63
+		<?php else {
64
+    : ?>
65
+			<p class="woocommerce-noreviews"><?php esc_html_e( 'There are no reviews yet.', 'woocommerce' );
66
+}
67
+?></p>
65 68
 		<?php endif; ?>
66 69
 	</div>
67 70
 
@@ -137,8 +140,11 @@  discard block
 block discarded – undo
137 140
 				?>
138 141
 			</div>
139 142
 		</div>
140
-	<?php else : ?>
141
-		<p class="woocommerce-verification-required"><?php esc_html_e( 'Only logged in customers who have purchased this product may leave a review.', 'woocommerce' ); ?></p>
143
+	<?php else {
144
+    : ?>
145
+		<p class="woocommerce-verification-required"><?php esc_html_e( 'Only logged in customers who have purchased this product may leave a review.', 'woocommerce' );
146
+}
147
+?></p>
142 148
 	<?php endif; ?>
143 149
 
144 150
 	<div class="clear"></div>
Please login to merge, or discard this patch.
plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1126,8 +1126,10 @@  discard block
 block discarded – undo
1126 1126
 					esc_url( get_comment_link( $item ) ),
1127 1127
 					esc_html( $submitted )
1128 1128
 				);
1129
-			else :
1129
+			else {
1130
+			    :
1130 1131
 				echo esc_html( $submitted );
1132
+			}
1131 1133
 			endif;
1132 1134
 
1133 1135
 			?>
@@ -1159,8 +1161,10 @@  discard block
 block discarded – undo
1159 1161
 				if ( current_user_can( 'edit_product', $product_post->ID ) ) :
1160 1162
 					$post_link  = "<a href='" . esc_url( get_edit_post_link( $product_post->ID ) ) . "' class='comments-edit-item-link'>";
1161 1163
 					$post_link .= esc_html( get_the_title( $product_post->ID ) ) . '</a>';
1162
-				else :
1164
+				else {
1165
+				    :
1163 1166
 					$post_link = esc_html( get_the_title( $product_post->ID ) );
1167
+				}
1164 1168
 				endif;
1165 1169
 
1166 1170
 				echo $post_link; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
Please login to merge, or discard this patch.
plugins/jsm-show-post-meta/jsm-show-post-meta.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,10 @@
 block discarded – undo
38 38
 
39 39
 		public function __construct() {
40 40
 
41
-			if ( ! is_admin() ) return;	// This is an admin-only plugin.
41
+			if ( ! is_admin() ) {
42
+			    return;
43
+			}
44
+			// This is an admin-only plugin.
42 45
 
43 46
 			$plugin_dir = trailingslashit( dirname( __FILE__ ) );
44 47
 
Please login to merge, or discard this patch.
wp/wp-activate.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -195,7 +195,8 @@  discard block
 block discarded – undo
195 195
 					printf( __( 'Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>' ), $url, esc_url( $login_url ) );
196 196
 				?>
197 197
 				</p>
198
-			<?php else : ?>
198
+			<?php else {
199
+    : ?>
199 200
 				<p class="view">
200 201
 				<?php
201 202
 					printf(
@@ -204,6 +205,7 @@  discard block
 block discarded – undo
204 205
 						network_site_url( $blog_details->path . 'wp-login.php', 'login' ),
205 206
 						network_home_url( $blog_details->path )
206 207
 					);
208
+}
207 209
 				?>
208 210
 				</p>
209 211
 				<?php
Please login to merge, or discard this patch.