Test Failed
Pull Request — master (#2482)
by Devin
05:37
created
includes/admin/tools/views/html-admin-page-system-info.php 1 patch
Braces   +16 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,12 @@  discard block
 block discarded – undo
57 57
 		<tr>
58 58
 			<td data-export-label="WP Multisite"><?php _e( 'WP Multisite', 'give' ); ?>:</td>
59 59
 			<td class="help"><span class="give-tooltip give-icon give-icon-question" data-tooltip="<?php echo esc_attr( __( 'Whether or not you have WordPress Multisite enabled.', 'give' ) ); ?>"></span></td>
60
-			<td><?php if ( is_multisite() ) echo '<span class="dashicons dashicons-yes"></span>'; else echo '&ndash;'; ?></td>
60
+			<td><?php if ( is_multisite() ) {
61
+	echo '<span class="dashicons dashicons-yes"></span>';
62
+} else {
63
+	echo '&ndash;';
64
+}
65
+?></td>
61 66
 		</tr>
62 67
 		<tr>
63 68
 			<td data-export-label="WP Memory Limit"><?php _e( 'WP Memory Limit', 'give' ); ?>:</td>
@@ -85,9 +90,12 @@  discard block
 block discarded – undo
85 90
 			<td>
86 91
 				<?php if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) : ?>
87 92
 					<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
88
-				<?php else : ?>
93
+				<?php else {
94
+	: ?>
89 95
 					<mark class="no">&ndash;</mark>
90
-				<?php endif; ?>
96
+				<?php endif;
97
+}
98
+?>
91 99
 			</td>
92 100
 		</tr>
93 101
 		<tr>
@@ -96,9 +104,12 @@  discard block
 block discarded – undo
96 104
 			<td>
97 105
 				<?php if ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) : ?>
98 106
 					<mark class="no">&ndash;</mark>
99
-				<?php else : ?>
107
+				<?php else {
108
+	: ?>
100 109
 					<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>
101
-				<?php endif; ?>
110
+				<?php endif;
111
+}
112
+?>
102 113
 			</td>
103 114
 		</tr>
104 115
 		<tr>
Please login to merge, or discard this patch.
includes/admin/EDD_SL_Plugin_Updater.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // Exit if accessed directly
4
-if ( ! defined( 'ABSPATH' ) ) exit;
4
+if ( ! defined( 'ABSPATH' ) ) {
5
+	exit;
6
+}
5 7
 
6 8
 /**
7 9
  * Allows plugins to use their own update API.
Please login to merge, or discard this patch.
templates/emails/header.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,10 @@
 block discarded – undo
6 6
  * @version     1.0
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
12
+// Exit if accessed directly.
10 13
 // This is the footer used if no others are available
11 14
 ?>
12 15
 <!DOCTYPE html>
Please login to merge, or discard this patch.
templates/emails/footer-default.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,10 @@
 block discarded – undo
6 6
  * @version     1.0
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
12
+// Exit if accessed directly.
10 13
 
11 14
 
12 15
 // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline.
Please login to merge, or discard this patch.
templates/emails/body-default.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,10 @@
 block discarded – undo
6 6
  * @version     1.0
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
12
+// Exit if accessed directly.
10 13
 
11 14
 // {email} is replaced by the content entered in Donations > Settings > Emails
12 15
 
Please login to merge, or discard this patch.
templates/emails/footer.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,10 @@
 block discarded – undo
6 6
  * @version     1.0
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
12
+// Exit if accessed directly.
10 13
 
11 14
 // This is the footer used if no others are available
12 15
 
Please login to merge, or discard this patch.
templates/emails/body.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,10 @@
 block discarded – undo
6 6
  * @version     1.0
7 7
  */
8 8
 
9
-if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly.
9
+if ( ! defined( 'ABSPATH' ) ) {
10
+	exit;
11
+}
12
+// Exit if accessed directly.
10 13
 
11 14
 // {email} is replaced by the content entered in Donations > Settings > Emails
12 15
 
Please login to merge, or discard this patch.
includes/admin/forms/class-metabox-form-data.php 1 patch
Braces   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -662,9 +662,12 @@  discard block
 block discarded – undo
662 662
 							<a href="#<?php echo $form_data_tab['id']; ?>" data-tab-id="<?php echo $form_data_tab['id']; ?>">
663 663
 								<?php if ( ! empty( $form_data_tab['icon-html'] ) ) : ?>
664 664
 									<?php echo $form_data_tab['icon-html']; ?>
665
-								<?php else : ?>
665
+								<?php else {
666
+	: ?>
666 667
 									<span class="give-icon give-icon-default"></span>
667
-								<?php endif; ?>
668
+								<?php endif;
669
+}
670
+?>
668 671
 								<span class="give-label"><?php echo $form_data_tab['label']; ?></span>
669 672
 							</a>
670 673
 							<?php if ( $this->has_sub_tab( $form_data_tab ) ) : ?>
@@ -674,9 +677,12 @@  discard block
 block discarded – undo
674 677
 											<a href="#<?php echo $sub_tab['id']; ?>" data-tab-id="<?php echo $sub_tab['id']; ?>">
675 678
 												<?php if ( ! empty( $sub_tab['icon-html'] ) ) : ?>
676 679
 													<?php echo $sub_tab['icon-html']; ?>
677
-												<?php else : ?>
680
+												<?php else {
681
+	: ?>
678 682
 													<span class="give-icon give-icon-default"></span>
679
-												<?php endif; ?>
683
+												<?php endif;
684
+}
685
+?>
680 686
 												<span class="give-label"><?php echo $sub_tab['label']; ?></span>
681 687
 											</a>
682 688
 										</li>
@@ -703,11 +709,14 @@  discard block
 block discarded – undo
703 709
 						</div>
704 710
 
705 711
 						<?php do_action( "give_after_{$setting['id']}_settings" ); ?>
706
-					<?php else : ?>
712
+					<?php else {
713
+	: ?>
707 714
 						<?php if ( $this->has_sub_tab( $setting ) ) : ?>
708 715
 							<?php if ( ! empty( $setting['sub-fields'] ) ) : ?>
709 716
 								<?php foreach ( $setting['sub-fields'] as $index => $sub_fields ) : ?>
710
-									<div id="<?php echo $sub_fields['id']; ?>" class="panel give_options_panel give-hidden">
717
+									<div id="<?php echo $sub_fields['id'];
718
+}
719
+?>" class="panel give_options_panel give-hidden">
711 720
 										<?php if ( ! empty( $sub_fields['fields'] ) ) : ?>
712 721
 											<?php foreach ( $sub_fields['fields'] as $sub_field ) : ?>
713 722
 												<?php give_render_field( $sub_field ); ?>
Please login to merge, or discard this patch.
includes/admin/views/html-admin-settings.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,5 +95,8 @@
 block discarded – undo
95 95
 		<?php endif; ?>
96 96
 		<?php echo $form_close_tag; ?>
97 97
 	</div>
98
-<?php else : echo '<div class="error"><p>' . __( 'Oops, this settings page does not exist.', 'give' ) . '</p></div>'; ?>
98
+<?php else {
99
+	: echo '<div class="error"><p>' . __( 'Oops, this settings page does not exist.', 'give' ) . '</p></div>';
100
+}
101
+?>
99 102
 <?php endif; ?>
100 103
\ No newline at end of file
Please login to merge, or discard this patch.