Test Failed
Pull Request — master (#2482)
by Devin
05:37
created
includes/misc-functions.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -812,10 +812,10 @@  discard block
 block discarded – undo
812 812
 		}
813 813
 
814 814
 		if ( ! is_int( $params[1] )
815
-		     && ! is_float( $params[1] )
816
-		     && ! is_string( $params[1] )
817
-		     && $params[1] !== null
818
-		     && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) )
815
+			 && ! is_float( $params[1] )
816
+			 && ! is_string( $params[1] )
817
+			 && $params[1] !== null
818
+			 && ! ( is_object( $params[1] ) && method_exists( $params[1], '__toString' ) )
819 819
 		) {
820 820
 			trigger_error( esc_html__( 'array_column(): The column key should be either a string or an integer.', 'give' ), E_USER_WARNING );
821 821
 
@@ -823,10 +823,10 @@  discard block
 block discarded – undo
823 823
 		}
824 824
 
825 825
 		if ( isset( $params[2] )
826
-		     && ! is_int( $params[2] )
827
-		     && ! is_float( $params[2] )
828
-		     && ! is_string( $params[2] )
829
-		     && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) )
826
+			 && ! is_int( $params[2] )
827
+			 && ! is_float( $params[2] )
828
+			 && ! is_string( $params[2] )
829
+			 && ! ( is_object( $params[2] ) && method_exists( $params[2], '__toString' ) )
830 830
 		) {
831 831
 			trigger_error( esc_html__( 'array_column(): The index key should be either a string or an integer.', 'give' ), E_USER_WARNING );
832 832
 
Please login to merge, or discard this patch.
includes/forms/template.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -941,10 +941,10 @@  discard block
 block discarded – undo
941 941
 			    <?php echo( give_field_is_required( 'billing_country', $form_id ) ? ' required aria-required="true" ' : '' ); ?>
942 942
 		    >
943 943
 			    <?php
944
-			    foreach ( $countries as $country_code => $country ) {
945
-				    echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>';
946
-			    }
947
-			    ?>
944
+				foreach ( $countries as $country_code => $country ) {
945
+					echo '<option value="' . esc_attr( $country_code ) . '"' . selected( $country_code, $selected_country, false ) . '>' . $country . '</option>';
946
+				}
947
+				?>
948 948
 		    </select>
949 949
 	    </p>
950 950
 
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
 		    <label for="card_address" class="give-label">
953 953
 			    <?php esc_html_e( 'Address 1', 'give' ); ?>
954 954
 			    <?php
955
-			    if ( give_field_is_required( 'card_address', $form_id ) ) : ?>
955
+				if ( give_field_is_required( 'card_address', $form_id ) ) : ?>
956 956
 				    <span class="give-required-indicator">*</span>
957 957
 			    <?php endif; ?>
958 958
 			    <span class="give-tooltip give-icon give-icon-question"
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
 		    <label for="card_state" class="give-label">
1017 1017
 			    <span class="state-label-text"><?php echo $label; ?></span>
1018 1018
 			    <?php if ( give_field_is_required( 'card_state', $form_id ) ) :
1019
-				    ?>
1019
+					?>
1020 1020
 				    <span class="give-required-indicator <?php echo( array_key_exists( $selected_country, $states_not_required_country_list ) ? 'give-hidden' : '' ) ?> ">*</span>
1021 1021
 			    <?php endif; ?>
1022 1022
 			    <span class="give-tooltip give-icon give-icon-question"
@@ -1024,17 +1024,17 @@  discard block
 block discarded – undo
1024 1024
 		    </label>
1025 1025
 		    <?php
1026 1026
 
1027
-		    if ( ! empty( $states ) ) : ?>
1027
+			if ( ! empty( $states ) ) : ?>
1028 1028
 			    <select
1029 1029
 				    name="card_state"
1030 1030
 				    id="card_state"
1031 1031
 				    class="card_state give-select<?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required' : '' ); ?>"
1032 1032
 				    <?php echo( give_field_is_required( 'card_state', $form_id ) ? ' required aria-required="true" ' : '' ); ?>>
1033 1033
 				    <?php
1034
-				    foreach ( $states as $state_code => $state ) {
1035
-					    echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>';
1036
-				    }
1037
-				    ?>
1034
+					foreach ( $states as $state_code => $state ) {
1035
+						echo '<option value="' . $state_code . '"' . selected( $state_code, $selected_state, false ) . '>' . $state . '</option>';
1036
+					}
1037
+					?>
1038 1038
 			    </select>
1039 1039
 		    <?php else : ?>
1040 1040
 			    <input type="text" size="6" name="card_state" id="card_state" class="card_state give-input"
Please login to merge, or discard this patch.
includes/admin/class-admin-settings.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
 
110 110
 			// Show error message if Akismet not configured and Admin try to save 'enabled' option.
111 111
 			if ( isset( $_POST['akismet_spam_protection'] )
112
-			     && give_is_setting_enabled( $_POST['akismet_spam_protection'] )
113
-			     && ! give_check_akismet_key()
112
+				 && give_is_setting_enabled( $_POST['akismet_spam_protection'] )
113
+				 && ! give_check_akismet_key()
114 114
 			) {
115 115
 				self::add_error( 'give-akismet-protection', __( 'Please properly configure Akismet to enable SPAM protection.', 'give' ) );
116 116
 
@@ -792,9 +792,9 @@  discard block
 block discarded – undo
792 792
 						<td class="give-docs-link" colspan="2">
793 793
 							<?php
794 794
 							echo '<p class="give-docs-link"><a href="' . esc_url( $value['url'] )
795
-							     . '" target="_blank">'
796
-							     . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] )
797
-							     . '<span class="dashicons dashicons-editor-help"></span></a></p>';
795
+								 . '" target="_blank">'
796
+								 . sprintf( esc_html__( 'Need Help? See docs on "%s"', 'give' ), $value['title'] )
797
+								 . '<span class="dashicons dashicons-editor-help"></span></a></p>';
798 798
 							?>
799 799
 						</td>
800 800
 						</tr><?php
Please login to merge, or discard this patch.