Test Failed
Push — issue/3417 ( 9726e4 )
by Ravinder
1141:09 queued 1139:41
created
templates/single-give-form/content-single-give-form.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * @version       1.0
9 9
  */
10 10
 
11
-if ( ! defined( 'ABSPATH' ) ) {
11
+if ( ! defined('ABSPATH')) {
12 12
 	exit; // Exit if accessed directly.
13 13
 }
14 14
 
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * @since 1.0
21 21
  */
22
-do_action( 'give_before_single_form' );
22
+do_action('give_before_single_form');
23 23
 
24
-if ( post_password_required() ) {
24
+if (post_password_required()) {
25 25
 	echo get_the_password_form();
26 26
 	return;
27 27
 }
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 		 *
38 38
 		 * @since 1.0
39 39
 		 */
40
-		do_action( 'give_before_single_form_summary' );
40
+		do_action('give_before_single_form_summary');
41 41
 		?>
42 42
 
43
-		<div class="<?php echo apply_filters( 'give_forms_single_summary_classes', 'summary entry-summary' ); ?>">
43
+		<div class="<?php echo apply_filters('give_forms_single_summary_classes', 'summary entry-summary'); ?>">
44 44
 
45 45
 			<?php
46 46
 			/**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			 *
51 51
 			 * @since 1.0
52 52
 			 */
53
-			do_action( 'give_single_form_summary' );
53
+			do_action('give_single_form_summary');
54 54
 			?>
55 55
 
56 56
 		</div>
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		 *
65 65
 		 * @since 1.0
66 66
 		 */
67
-		do_action( 'give_after_single_form_summary' );
67
+		do_action('give_after_single_form_summary');
68 68
 		?>
69 69
 
70 70
 	</div><!-- #give-form-<?php the_ID(); ?> -->
@@ -77,5 +77,5 @@  discard block
 block discarded – undo
77 77
  *
78 78
  * @since 1.0
79 79
  */
80
-do_action( 'give_after_single_form' );
80
+do_action('give_after_single_form');
81 81
 ?>
Please login to merge, or discard this patch.
templates/single-give-form/title.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  * @since       1.0
12 12
  */
13 13
 
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit; // Exit if accessed directly.
16 16
 } ?>
17 17
 <h1 itemprop="name" class="give-form-title entry-title"><?php the_title(); ?></h1>
Please login to merge, or discard this patch.
templates/payment-processing.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 ?>
6 6
 <div id="give-payment-processing">
7 7
 	<?php
8
-	Give()->notices->print_frontend_notice( sprintf(
8
+	Give()->notices->print_frontend_notice(sprintf(
9 9
 	/* translators: %s: success page URL */
10
-		__( 'Your donation is processing. This page will reload automatically in 8 seconds. If it does not, click <a href="%s">here</a>.', 'give' ),
10
+		__('Your donation is processing. This page will reload automatically in 8 seconds. If it does not, click <a href="%s">here</a>.', 'give'),
11 11
 		give_get_success_page_uri()
12
-	), true, 'success' );
12
+	), true, 'success');
13 13
 	?>
14 14
 	<span class="give-loading-animation"></span>
15 15
 	<script type="text/javascript">setTimeout(function () {
Please login to merge, or discard this patch.
templates/emails/header.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,13 +6,13 @@
 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')) exit; // Exit if accessed directly.
10 10
 // This is the footer used if no others are available
11 11
 ?>
12 12
 <!DOCTYPE html>
13 13
 <html>
14 14
 	<head>
15 15
 		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
16
-		<title><?php echo get_bloginfo( 'name' ); ?></title>
16
+		<title><?php echo get_bloginfo('name'); ?></title>
17 17
 	</head>
18 18
 	<body>
19 19
\ No newline at end of file
Please login to merge, or discard this patch.
templates/emails/footer-default.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 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')) exit; // Exit if accessed directly.
10 10
 
11 11
 
12 12
 // 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.
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                                                 <table border="0" cellpadding="10" cellspacing="0" width="100%">
45 45
                                                     <tr>
46 46
                                                         <td colspan="2" valign="middle" id="credit" style="<?php echo $credit; ?>">
47
-                                                           <?php echo wpautop( wp_kses_post( wptexturize( apply_filters( 'give_email_footer_text', '<a href="' . esc_url( home_url() ) . '">' . get_bloginfo( 'name' ) . '</a>' ) ) ) ); ?>
47
+                                                           <?php echo wpautop(wp_kses_post(wptexturize(apply_filters('give_email_footer_text', '<a href="'.esc_url(home_url()).'">'.get_bloginfo('name').'</a>')))); ?>
48 48
                                                         </td>
49 49
                                                     </tr>
50 50
                                                 </table>
Please login to merge, or discard this patch.
templates/emails/body-default.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 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')) exit; // Exit if accessed directly.
10 10
 
11 11
 // {email} is replaced by the content entered in Donations > Settings > Emails
12 12
 
Please login to merge, or discard this patch.
templates/emails/footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 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')) exit; // Exit if accessed directly.
10 10
 
11 11
 // This is the footer used if no others are available
12 12
 
Please login to merge, or discard this patch.
templates/emails/body.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 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')) exit; // Exit if accessed directly.
10 10
 
11 11
 // {email} is replaced by the content entered in Donations > Settings > Emails
12 12
 
Please login to merge, or discard this patch.
includes/admin/views/blank-slate.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,23 +17,23 @@  discard block
 block discarded – undo
17 17
 ?>
18 18
 
19 19
 <div class="give-blank-slate">
20
-	<?php if ( ! empty( $content['image_url'] ) ) : ?>
21
-		<img class="give-blank-slate__image" src="<?php echo esc_url( $content['image_url'] ); ?>" alt="<?php echo esc_attr( $content['image_alt'] ); ?>">
20
+	<?php if ( ! empty($content['image_url'])) : ?>
21
+		<img class="give-blank-slate__image" src="<?php echo esc_url($content['image_url']); ?>" alt="<?php echo esc_attr($content['image_alt']); ?>">
22 22
 	<?php endif; ?>
23 23
 
24
-	<?php if ( ! empty( $content['heading'] ) ) : ?>
25
-		<h2 class="give-blank-slate__heading"><?php esc_html_e( $content['heading'] ); ?></h2>
24
+	<?php if ( ! empty($content['heading'])) : ?>
25
+		<h2 class="give-blank-slate__heading"><?php esc_html_e($content['heading']); ?></h2>
26 26
 	<?php endif; ?>
27 27
 
28
-	<?php if ( ! empty( $content['message'] ) ) : ?>
29
-		<p class="give-blank-slate__message"><?php esc_html_e( $content['message'] ); ?></p>
28
+	<?php if ( ! empty($content['message'])) : ?>
29
+		<p class="give-blank-slate__message"><?php esc_html_e($content['message']); ?></p>
30 30
 	<?php endif; ?>
31 31
 
32
-	<?php if ( ! empty( $content['cta_text']) && ! empty( $content['cta_link'] ) ) : ?>
33
-		<a class="give-blank-slate__cta button button-primary" href="<?php echo esc_url( $content['cta_link'] ); ?>"><?php esc_html_e( $content['cta_text'] ); ?></a>
32
+	<?php if ( ! empty($content['cta_text']) && ! empty($content['cta_link'])) : ?>
33
+		<a class="give-blank-slate__cta button button-primary" href="<?php echo esc_url($content['cta_link']); ?>"><?php esc_html_e($content['cta_text']); ?></a>
34 34
 	<?php endif; ?>
35 35
 
36
-	<?php if ( ! empty( $content['help'] ) ) : ?>
36
+	<?php if ( ! empty($content['help'])) : ?>
37 37
 		<p class="give-blank-slate__help">
38 38
 			<?php
39 39
 			$allowed_html = array(
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 				'code'   => array(),
48 48
 			);
49 49
 
50
-			echo wp_kses( $content['help'], $allowed_html );
50
+			echo wp_kses($content['help'], $allowed_html);
51 51
 			?>
52 52
 		</p>
53 53
 	<?php endif; ?>
Please login to merge, or discard this patch.