Completed
Pull Request — master (#986)
by Rami
20:36
created
includes/forms/template.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -781,8 +781,11 @@
 block discarded – undo
781 781
 					}
782 782
 					?>
783 783
 				</select>
784
-			<?php else : ?>
785
-				<input type="text" size="6" name="card_state" id="card_state" class="card_state give-input" placeholder="<?php esc_attr_e( 'State / Province', 'give' ); ?>"/>
784
+			<?php else {
785
+	: ?>
786
+				<input type="text" size="6" name="card_state" id="card_state" class="card_state give-input" placeholder="<?php esc_attr_e( 'State / Province', 'give' );
787
+}
788
+?>"/>
786 789
 			<?php endif; ?>
787 790
 		</p>
788 791
 		<?php do_action( 'give_cc_billing_bottom' ); ?>
Please login to merge, or discard this patch.
includes/admin/customers/customers.php 1 patch
Braces   +25 added lines, -10 removed lines patch added patch discarded remove patch
@@ -276,8 +276,11 @@  discard block
 block discarded – undo
276 276
 								<span class="customer-user-id info-item editable">
277 277
 									<?php if ( intval( $customer->user_id ) > 0 ) : ?>
278 278
 										<span data-key="user_id"><?php echo $customer->user_id; ?></span>
279
-									<?php else : ?>
280
-										<span data-key="user_id"><?php esc_html_e( 'None', 'give' ); ?></span>
279
+									<?php else {
280
+	: ?>
281
+										<span data-key="user_id"><?php esc_html_e( 'None', 'give' );
282
+}
283
+?></span>
281 284
 									<?php endif; ?>
282 285
 									<?php if ( current_user_can( $customer_edit_role ) && intval( $customer->user_id ) > 0 ) : ?>
283 286
 										<span class="disconnect-user"> - <a id="disconnect-customer" href="#disconnect" title="<?php esc_attr_e( 'Disconnects the current user ID from this customer record', 'give' ); ?>"><?php esc_html_e( 'Disconnect User', 'give' ); ?></a></span>
@@ -346,8 +349,11 @@  discard block
 block discarded – undo
346 349
 													}
347 350
 													?>
348 351
 												</select>
349
-											<?php else : ?>
350
-												<input type="text" size="6" data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-input info-item" placeholder="<?php esc_attr_e( 'State / Province', 'give' ); ?>" />
352
+											<?php else {
353
+	: ?>
354
+												<input type="text" size="6" data-key="state" name="customerinfo[state]" id="card_state" class="card_state give-input info-item" placeholder="<?php esc_attr_e( 'State / Province', 'give' );
355
+}
356
+?>" />
351 357
 											<?php endif; ?>
352 358
 											<input class="info-item" type="text" data-key="zip" name="customerinfo[zip]" placeholder="<?php esc_attr_e( 'Zip / Postal Code', 'give' ); ?>" value="<?php echo $address['zip']; ?>" />
353 359
 													</span>
@@ -486,9 +492,12 @@  discard block
 block discarded – undo
486 492
 						</td>
487 493
 					</tr>
488 494
 				<?php endforeach; ?>
489
-			<?php else: ?>
495
+			<?php else {
496
+	: ?>
490 497
 				<tr>
491
-					<td colspan="5"><?php esc_html_e( 'No donations found.', 'give' ); ?></td>
498
+					<td colspan="5"><?php esc_html_e( 'No donations found.', 'give' );
499
+}
500
+?></td>
492 501
 				</tr>
493 502
 			<?php endif; ?>
494 503
 			</tbody>
@@ -529,9 +538,12 @@  discard block
 block discarded – undo
529 538
 						</td>
530 539
 					</tr>
531 540
 				<?php endforeach; ?>
532
-			<?php else: ?>
541
+			<?php else {
542
+	: ?>
533 543
 				<tr>
534
-					<td colspan="2"><?php esc_html_e( 'No completed donations found.', 'give' ); ?></td>
544
+					<td colspan="2"><?php esc_html_e( 'No completed donations found.', 'give' );
545
+}
546
+?></td>
535 547
 				</tr>
536 548
 			<?php endif; ?>
537 549
 			</tbody>
@@ -621,9 +633,12 @@  discard block
 block discarded – undo
621 633
 					</span>
622 634
 					</div>
623 635
 				<?php endforeach; ?>
624
-			<?php else: ?>
636
+			<?php else {
637
+	: ?>
625 638
 				<div class="give-no-customer-notes">
626
-					<?php esc_html_e( 'No donor notes found.', 'give' ); ?>
639
+					<?php esc_html_e( 'No donor notes found.', 'give' );
640
+}
641
+?>
627 642
 				</div>
628 643
 			<?php endif; ?>
629 644
 		</div>
Please login to merge, or discard this patch.
includes/class-give-license-handler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -689,7 +689,7 @@
 block discarded – undo
689 689
 								"{$this->checkout_url}?edd_license_key={$subscription['license_key']}&utm_campaign=admin&utm_source=licenses&utm_medium=expired",
690 690
 								esc_url( add_query_arg( '_give_hide_license_notices_permanently', $subscription['id'], $_SERVER['REQUEST_URI'] ) )
691 691
 							);
692
-						}else{
692
+						} else{
693 693
 							$messages[$subscription['id']] = sprintf(
694 694
 								__( 'You Give addon license will expire in %s for payment <a href="%s" target="_blank">#%d</a>. <a href="%s" target="_blank">Click to renew an existing license</a> or <a href="%s">Click here if already renewed</a>.', 'give' ),
695 695
 								human_time_diff( current_time( 'timestamp', 1 ), strtotime( $subscription['expires'] ) ),
Please login to merge, or discard this patch.