Passed
Push — main ( aaef5c...e4c121 )
by TARIQ
71:39
created
plugins/woocommerce/includes/emails/class-wc-email.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1024,8 +1024,11 @@  discard block
 block discarded – undo
1024 1024
 								if ( ! is_writable( $local_file ) ) : // phpcs:ignore WordPress.VIP.FileSystemWritesDisallow.file_ops_is_writable
1025 1025
 									?>
1026 1026
 									readonly="readonly" disabled="disabled"
1027
-								<?php else : ?>
1028
-									data-name="<?php echo esc_attr( $template_type ) . '_code'; ?>"<?php endif; ?>><?php echo esc_html( file_get_contents( $local_file ) ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents ?></textarea>
1027
+								<?php else {
1028
+    : ?>
1029
+									data-name="<?php echo esc_attr( $template_type ) . '_code';
1030
+}
1031
+?>"<?php endif; ?>><?php echo esc_html( file_get_contents( $local_file ) ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents ?></textarea>
1029 1032
 							</div>
1030 1033
 						<?php elseif ( file_exists( $template_file ) ) : ?>
1031 1034
 							<p>
@@ -1060,8 +1063,11 @@  discard block
 block discarded – undo
1060 1063
 							<div class="editor" style="display:none">
1061 1064
 								<textarea class="code" readonly="readonly" disabled="disabled" cols="25" rows="20"><?php echo esc_html( file_get_contents( $template_file ) );  // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents ?></textarea>
1062 1065
 							</div>
1063
-						<?php else : ?>
1064
-							<p><?php esc_html_e( 'File was not found.', 'woocommerce' ); ?></p>
1066
+						<?php else {
1067
+    : ?>
1068
+							<p><?php esc_html_e( 'File was not found.', 'woocommerce' );
1069
+}
1070
+?></p>
1065 1071
 						<?php endif; ?>
1066 1072
 					</div>
1067 1073
 				<?php endforeach; ?>
Please login to merge, or discard this patch.
plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -735,8 +735,11 @@  discard block
 block discarded – undo
735 735
 										<option value="<?php echo esc_attr( $option_key_inner ); ?>" <?php selected( (string) $option_key_inner, esc_attr( $value ) ); ?>><?php echo esc_html( $option_value_inner ); ?></option>
736 736
 									<?php endforeach; ?>
737 737
 								</optgroup>
738
-							<?php else : ?>
739
-								<option value="<?php echo esc_attr( $option_key ); ?>" <?php selected( (string) $option_key, esc_attr( $value ) ); ?>><?php echo esc_html( $option_value ); ?></option>
738
+							<?php else {
739
+    : ?>
740
+								<option value="<?php echo esc_attr( $option_key );
741
+}
742
+?>" <?php selected( (string) $option_key, esc_attr( $value ) ); ?>><?php echo esc_html( $option_value ); ?></option>
740 743
 							<?php endif; ?>
741 744
 						<?php endforeach; ?>
742 745
 					</select>
@@ -793,8 +796,11 @@  discard block
 block discarded – undo
793 796
 										<option value="<?php echo esc_attr( $option_key_inner ); ?>" <?php selected( in_array( (string) $option_key_inner, $value, true ), true ); ?>><?php echo esc_html( $option_value_inner ); ?></option>
794 797
 									<?php endforeach; ?>
795 798
 								</optgroup>
796
-							<?php else : ?>
797
-								<option value="<?php echo esc_attr( $option_key ); ?>" <?php selected( in_array( (string) $option_key, $value, true ), true ); ?>><?php echo esc_html( $option_value ); ?></option>
799
+							<?php else {
800
+    : ?>
801
+								<option value="<?php echo esc_attr( $option_key );
802
+}
803
+?>" <?php selected( in_array( (string) $option_key, $value, true ), true ); ?>><?php echo esc_html( $option_value ); ?></option>
798 804
 							<?php endif; ?>
799 805
 						<?php endforeach; ?>
800 806
 					</select>
Please login to merge, or discard this patch.
plugins/woocommerce/includes/wc-template-functions.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1000,8 +1000,10 @@
 block discarded – undo
1000 1000
 				<?php do_action( 'woocommerce_after_shop_loop' ); ?>
1001 1001
 
1002 1002
 				<?php
1003
-			else :
1003
+			else {
1004
+			    :
1004 1005
 				do_action( 'woocommerce_no_products_found' );
1006
+			}
1005 1007
 			endif;
1006 1008
 		}
1007 1009
 	}
Please login to merge, or discard this patch.
plugins/woocommerce/templates/myaccount/form-add-payment-method.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@
 block discarded – undo
56 56
 			</div>
57 57
 		</div>
58 58
 	</form>
59
-<?php else : ?>
60
-	<p class="woocommerce-notice woocommerce-notice--info woocommerce-info"><?php esc_html_e( 'New payment methods can only be added during checkout. Please contact us if you require assistance.', 'woocommerce' ); ?></p>
59
+<?php else {
60
+    : ?>
61
+	<p class="woocommerce-notice woocommerce-notice--info woocommerce-info"><?php esc_html_e( 'New payment methods can only be added during checkout. Please contact us if you require assistance.', 'woocommerce' );
62
+}
63
+?></p>
61 64
 <?php endif; ?>
Please login to merge, or discard this patch.
plugins/woocommerce/templates/myaccount/downloads.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,9 +34,12 @@
 block discarded – undo
34 34
 
35 35
 	<?php do_action( 'woocommerce_after_available_downloads' ); ?>
36 36
 
37
-<?php else : ?>
37
+<?php else {
38
+    : ?>
38 39
 	<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
39
-		<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
40
+		<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) );
41
+}
42
+?>">
40 43
 			<?php esc_html_e( 'Browse products', 'woocommerce' ); ?>
41 44
 		</a>
42 45
 		<?php esc_html_e( 'No downloads available yet.', 'woocommerce' ); ?>
Please login to merge, or discard this patch.
plugins/woocommerce/templates/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.
plugins/woocommerce/templates/myaccount/orders.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,9 +95,12 @@
 block discarded – undo
95 95
 		</div>
96 96
 	<?php endif; ?>
97 97
 
98
-<?php else : ?>
98
+<?php else {
99
+    : ?>
99 100
 	<div class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-Message--info woocommerce-info">
100
-		<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"><?php esc_html_e( 'Browse products', 'woocommerce' ); ?></a>
101
+		<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) );
102
+}
103
+?>"><?php esc_html_e( 'Browse products', 'woocommerce' ); ?></a>
101 104
 		<?php esc_html_e( 'No order has been made yet.', 'woocommerce' ); ?>
102 105
 	</div>
103 106
 <?php endif; ?>
Please login to merge, or discard this patch.
plugins/woocommerce/templates/myaccount/form-login.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,9 +94,12 @@
 block discarded – undo
94 94
 					<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" autocomplete="new-password" />
95 95
 				</p>
96 96
 
97
-			<?php else : ?>
97
+			<?php else {
98
+    : ?>
98 99
 
99
-				<p><?php esc_html_e( 'A link to set a new password will be sent to your email address.', 'woocommerce' ); ?></p>
100
+				<p><?php esc_html_e( 'A link to set a new password will be sent to your email address.', 'woocommerce' );
101
+}
102
+?></p>
100 103
 
101 104
 			<?php endif; ?>
102 105
 
Please login to merge, or discard this patch.
plugins/woocommerce/templates/myaccount/payment-methods.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,9 +65,12 @@
 block discarded – undo
65 65
 		<?php endforeach; ?>
66 66
 	</table>
67 67
 
68
-<?php else : ?>
68
+<?php else {
69
+    : ?>
69 70
 
70
-	<p class="woocommerce-Message woocommerce-Message--info woocommerce-info"><?php esc_html_e( 'No saved methods found.', 'woocommerce' ); ?></p>
71
+	<p class="woocommerce-Message woocommerce-Message--info woocommerce-info"><?php esc_html_e( 'No saved methods found.', 'woocommerce' );
72
+}
73
+?></p>
71 74
 
72 75
 <?php endif; ?>
73 76
 
Please login to merge, or discard this patch.