Test Failed
Pull Request — master (#2225)
by Devin
04:40
created
templates/history-donations.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -166,7 +166,8 @@  discard block
 block discarded – undo
166 166
 							__( 'View', 'give' ) . ' ' . give_get_payment_status( $post, true ) . ' »'
167 167
 						);
168 168
 
169
-					else :
169
+					else {
170
+						:
170 171
 						echo sprintf(
171 172
 							'<a href="%1$s">%2$s</a>',
172 173
 							esc_url(
@@ -178,6 +179,7 @@  discard block
 block discarded – undo
178 179
 							),
179 180
 							__( 'View Receipt &raquo;', 'give' )
180 181
 						);
182
+					}
181 183
 
182 184
 					endif;
183 185
 					?>
@@ -210,6 +212,9 @@  discard block
 block discarded – undo
210 212
 		?>
211 213
 	</div>
212 214
 	<?php wp_reset_postdata(); ?>
213
-<?php else : ?>
214
-	<?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' ); ?>
215
+<?php else {
216
+	: ?>
217
+	<?php Give()->notices->print_frontend_notice( __( 'It looks like you haven\'t made any donations.', 'give' ), true, 'success' );
218
+}
219
+?>
215 220
 <?php endif;
Please login to merge, or discard this patch.
includes/formatting.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
 		if( is_string( $id_or_currency_code ) && ( $id_or_currency_code !== $give_options['currency'] ) && array_key_exists( $id_or_currency_code, $currencies ) ) {
36 36
 			$setting = $currencies[ $id_or_currency_code ]['setting'];
37
-		}elseif ( is_numeric( $id_or_currency_code ) && 'give_payment' === get_post_type( $id_or_currency_code ) ) {
37
+		} elseif ( is_numeric( $id_or_currency_code ) && 'give_payment' === get_post_type( $id_or_currency_code ) ) {
38 38
 			$donation_meta = give_get_meta( $id_or_currency_code, '_give_payment_meta', true );
39 39
 
40 40
 			if (
Please login to merge, or discard this patch.