Completed
Branch dependabot/composer/wp-graphql... (d51bd9)
by
unknown
05:53 queued 14s
created
payment_methods/Paypal_Pro/templates/paypal_pro_debug_info.template.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -17,39 +17,39 @@  discard block
 block discarded – undo
17 17
     <div class="sandbox-panel">
18 18
     <h2 class="section-title"><?php esc_html_e('PayPal Sandbox Mode', 'event_espresso'); ?></h2>
19 19
     <h3 style="color:#ff0000;"><?php
20
-        esc_html_e(
21
-            'Debug Mode Is Turned On. Payments will not be processed',
22
-            'event_espresso'
23
-        ); ?></h3>
20
+		esc_html_e(
21
+			'Debug Mode Is Turned On. Payments will not be processed',
22
+			'event_espresso'
23
+		); ?></h3>
24 24
 
25 25
     <p class="test-credit-cards-info-pg" style="margin-bottom:0;">
26 26
         <strong><?php esc_html_e('Testing Guidelines', 'event_espresso'); ?></strong>
27 27
     </p>
28 28
     <ul style="margin:1em 2em 1.5em; line-height:1.2em;">
29 29
         <li><?php
30
-            esc_html_e(
31
-                'While testing, use the credit card number associated with your sandbox account.',
32
-                'event_espresso'
33
-            ); ?></li>
30
+			esc_html_e(
31
+				'While testing, use the credit card number associated with your sandbox account.',
32
+				'event_espresso'
33
+			); ?></li>
34 34
         <li><?php
35
-            printf(
36
-                esc_html__(
37
-                    'To find the sandbox account\'s credit card, go to %1$s, then "Dashboard", then under Sandbox click "Accounts", then click your account and click "Profile", then in the popup that appears click on the "Funding" tab. Your testing card is listed there.',
38
-                    'event_espresso'
39
-                ),
40
-                '<a href="http://developer.paypal.com">developer.paypal.com</a>'
41
-            ); ?></li>
35
+			printf(
36
+				esc_html__(
37
+					'To find the sandbox account\'s credit card, go to %1$s, then "Dashboard", then under Sandbox click "Accounts", then click your account and click "Profile", then in the popup that appears click on the "Funding" tab. Your testing card is listed there.',
38
+					'event_espresso'
39
+				),
40
+				'<a href="http://developer.paypal.com">developer.paypal.com</a>'
41
+			); ?></li>
42 42
         <li><?php
43
-            esc_html_e('CVV2 should be 115', 'event_espresso'); ?></li>
43
+			esc_html_e('CVV2 should be 115', 'event_espresso'); ?></li>
44 44
     </ul>
45 45
 
46 46
     <p class="test-credit-cards-info-pg">
47 47
         <strong><?php esc_html_e('Credit Card Numbers Used for Testing', 'event_espresso'); ?></strong><br/>
48 48
         <span class="small-text"><?php
49
-            esc_html_e(
50
-                'Use the following credit card numbers for testing. Any other card number produces a general failure.',
51
-                'event_espresso'
52
-            ); ?></span>
49
+			esc_html_e(
50
+				'Use the following credit card numbers for testing. Any other card number produces a general failure.',
51
+				'event_espresso'
52
+			); ?></span>
53 53
     </p>
54 54
 
55 55
     <div class="tbl-wrap">
@@ -73,18 +73,18 @@  discard block
 block discarded – undo
73 73
     <p class="test-credit-cards-info-pg">
74 74
         <strong><?php esc_html_e('Testing Result Code Responses', 'event_espresso'); ?></strong><br/>
75 75
         <span class="small-text"><?php
76
-            printf(
77
-                esc_html__(
78
-                    'You can use the amount of the transaction to generate a particular result code (see %s PayPal\'s documentation%s). The table below lists the general guidelines for specifying amounts. IMPORTANT: before you attempt any of these, ensure your sandbox PayPal account has %s "Negative Testing" set to on%s. Also be aware that you can generate AVS errors by using certain strings in your address field, and CVV errors using certain CVV values. See %s this PayPal doc %s',
79
-                    'event_espresso'
80
-                ),
81
-                "<a href='https://developer.paypal.com/docs/classic/api/errorcodes/#id09C3GA00GR1' target='_blank'>",
82
-                "</a>",
83
-                "<a href='https://docs.google.com/a/eventespresso.com/file/d/0B5P8GXTvZgfMNXNkZ2s5VUlHTUk/edit?usp=drivesdk' target='_blank'>",
84
-                "</a>",
85
-                "<a href='https://cms.paypal.com/ca/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_testing_SBTestErrorConditions' target='_blank'>",
86
-                "</a>"
87
-            ); ?></span>
76
+			printf(
77
+				esc_html__(
78
+					'You can use the amount of the transaction to generate a particular result code (see %s PayPal\'s documentation%s). The table below lists the general guidelines for specifying amounts. IMPORTANT: before you attempt any of these, ensure your sandbox PayPal account has %s "Negative Testing" set to on%s. Also be aware that you can generate AVS errors by using certain strings in your address field, and CVV errors using certain CVV values. See %s this PayPal doc %s',
79
+					'event_espresso'
80
+				),
81
+				"<a href='https://developer.paypal.com/docs/classic/api/errorcodes/#id09C3GA00GR1' target='_blank'>",
82
+				"</a>",
83
+				"<a href='https://docs.google.com/a/eventespresso.com/file/d/0B5P8GXTvZgfMNXNkZ2s5VUlHTUk/edit?usp=drivesdk' target='_blank'>",
84
+				"</a>",
85
+				"<a href='https://cms.paypal.com/ca/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_testing_SBTestErrorConditions' target='_blank'>",
86
+				"</a>"
87
+			); ?></span>
88 88
     </p>
89 89
 
90 90
     <div class="tbl-wrap">
Please login to merge, or discard this patch.
payment_methods/Aim/templates/authorize_net_aim_debug_info.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
 
19 19
         <p>
20 20
             <?php esc_html_e(
21
-                'Test Mode allows you to submit test transactions to the payment gateway. Transactions that are submitted while Test Mode is ON are NOT actually processed. The result of a transaction depends on the card number submitted, and the invoice amount. If you want a transaction to be approved, use one of the following card numbers.',
22
-                'event_espresso'
23
-            ); ?>
21
+				'Test Mode allows you to submit test transactions to the payment gateway. Transactions that are submitted while Test Mode is ON are NOT actually processed. The result of a transaction depends on the card number submitted, and the invoice amount. If you want a transaction to be approved, use one of the following card numbers.',
22
+				'event_espresso'
23
+			); ?>
24 24
         </p>
25 25
 
26 26
         <p>
Please login to merge, or discard this patch.
caffeinated/admin/hooks/Global_EE_Caf_Hooks.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function extra_news_box_content($content)
42 42
     {
43
-        echo '<h3 style="margin:0">' . esc_html__('From the Forums', 'event_espresso') . '</h3>';
43
+        echo '<h3 style="margin:0">'.esc_html__('From the Forums', 'event_espresso').'</h3>';
44 44
         echo '<div id="ee_forum_posts_content">';
45 45
         $url = 'https://eventespresso.com/forum/event-espresso-support/feed/';
46 46
         EE_Admin_Page::cached_rss_display('ee_forum_posts_content', $url);
Please login to merge, or discard this patch.
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -14,42 +14,42 @@
 block discarded – undo
14 14
  */
15 15
 class Global_EE_Caf_Hooks
16 16
 {
17
-    public function __construct()
18
-    {
19
-        $this->_do_hooks();
20
-    }
17
+	public function __construct()
18
+	{
19
+		$this->_do_hooks();
20
+	}
21 21
 
22 22
 
23
-    private function _do_hooks()
24
-    {
25
-        add_filter('FHEE_show_sponsors_meta_box', '__return_false', 10);
26
-        add_filter('FHEE_show_ratings_request_meta_box', '__return_false', 10);
27
-        add_filter(
28
-            'FHEE__EE_Admin_Page_Core__load_global_scripts_styles__loader_containers',
29
-            array($this, 'forums_lazy_loading'),
30
-            10
31
-        );
32
-        add_action(
33
-            'AHEE__EE_Admin_Page__espresso_news_post_box__after_content',
34
-            array($this, 'extra_news_box_content'),
35
-            10
36
-        );
37
-    }
23
+	private function _do_hooks()
24
+	{
25
+		add_filter('FHEE_show_sponsors_meta_box', '__return_false', 10);
26
+		add_filter('FHEE_show_ratings_request_meta_box', '__return_false', 10);
27
+		add_filter(
28
+			'FHEE__EE_Admin_Page_Core__load_global_scripts_styles__loader_containers',
29
+			array($this, 'forums_lazy_loading'),
30
+			10
31
+		);
32
+		add_action(
33
+			'AHEE__EE_Admin_Page__espresso_news_post_box__after_content',
34
+			array($this, 'extra_news_box_content'),
35
+			10
36
+		);
37
+	}
38 38
 
39 39
 
40
-    public function extra_news_box_content($content)
41
-    {
42
-        echo '<h3 style="margin:0">' . esc_html__('From the Forums', 'event_espresso') . '</h3>';
43
-        echo '<div id="ee_forum_posts_content">';
44
-        $url = 'https://eventespresso.com/forum/event-espresso-support/feed/';
45
-        EE_Admin_Page::cached_rss_display('ee_forum_posts_content', $url);
46
-        echo '</div>';
47
-    }
40
+	public function extra_news_box_content($content)
41
+	{
42
+		echo '<h3 style="margin:0">' . esc_html__('From the Forums', 'event_espresso') . '</h3>';
43
+		echo '<div id="ee_forum_posts_content">';
44
+		$url = 'https://eventespresso.com/forum/event-espresso-support/feed/';
45
+		EE_Admin_Page::cached_rss_display('ee_forum_posts_content', $url);
46
+		echo '</div>';
47
+	}
48 48
 
49 49
 
50
-    public function forums_lazy_loading($ids)
51
-    {
52
-        $ids[] = 'ee_forum_posts_content';
53
-        return $ids;
54
-    }
50
+	public function forums_lazy_loading($ids)
51
+	{
52
+		$ids[] = 'ee_forum_posts_content';
53
+		return $ids;
54
+	}
55 55
 }
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/help_tabs/import_page.help_tab.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,48 +1,48 @@
 block discarded – undo
1 1
 <p><strong><?php esc_html_e('Importing CSV Event Espresso Data', 'event_espresso'); ?></strong></p>
2 2
 <p>
3 3
     <?php esc_html_e(
4
-        'The importer can be used to import event information into Event Espresso using a CSV file.',
5
-        'event_espresso'
6
-    ); ?>
4
+		'The importer can be used to import event information into Event Espresso using a CSV file.',
5
+		'event_espresso'
6
+	); ?>
7 7
 </p>
8 8
 <p><strong><?php esc_html_e("Importing from other Event Espresso 4 Sites", 'event_espresso'); ?></strong></p>
9 9
 <p>
10 10
     <?php esc_html_e(
11
-        'To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).',
12
-        'event_espresso'
13
-    ); ?>
11
+		'To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).',
12
+		'event_espresso'
13
+	); ?>
14 14
 </p>
15 15
 <p>
16 16
     <?php esc_html_e(
17
-        'Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.',
18
-        'event_espresso'
19
-    ); ?>
17
+		'Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.',
18
+		'event_espresso'
19
+	); ?>
20 20
 </p>
21 21
 <p><strong><?php esc_html_e("Importing from this Site", 'event_espresso'); ?></strong></p>
22 22
 <p><?php
23
-    esc_html_e(
24
-        "You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).",
25
-        'event_espresso'
26
-    ); ?></p>
23
+	esc_html_e(
24
+		"You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).",
25
+		'event_espresso'
26
+	); ?></p>
27 27
 
28 28
 <p><strong><?php esc_html_e("Notes about Generating your own CSV Import Files", "event_espresso"); ?></strong></p>
29 29
 <p><?php
30
-    esc_html_e(
31
-        "If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.",
32
-        "event_espresso"
33
-    ); ?></p>
30
+	esc_html_e(
31
+		"If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.",
32
+		"event_espresso"
33
+	); ?></p>
34 34
 <p><?php
35
-    esc_html_e(
36
-        "The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ",
37
-        "event_espresso"
38
-    ); ?></p>
35
+	esc_html_e(
36
+		"The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ",
37
+		"event_espresso"
38
+	); ?></p>
39 39
 <p><?php
40
-    esc_html_e(
41
-        "In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)",
42
-        "event_espresso"
43
-    ); ?></p>
40
+	esc_html_e(
41
+		"In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)",
42
+		"event_espresso"
43
+	); ?></p>
44 44
 <p><?php
45
-    esc_html_e(
46
-        "Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)",
47
-        "event_espresso"
48
-    ); ?></p>
49 45
\ No newline at end of file
46
+	esc_html_e(
47
+		"Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)",
48
+		"event_espresso"
49
+	); ?></p>
50 50
\ No newline at end of file
Please login to merge, or discard this patch.
Invoice/templates/invoice_payment_details_content.template.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             <?php echo esc_html($page_title); ?>
21 21
         </h4>
22 22
     <?php }
23
-    if (! empty($invoice_url)) { ?>
23
+	if (! empty($invoice_url)) { ?>
24 24
         <p>
25 25
             <a href="<?php echo esc_url_raw($invoice_url); ?>"
26 26
                class="ee-button-lnk inline-button ee-invoice-lnk"
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
                 <p class="instruct"><?php echo wpautop(wp_kses($page_confirmation_text, $allowedtags)); ?></p>
36 36
             </div>
37 37
         <?php }
38
-        if (! empty($page_extra_info)) { ?>
38
+		if (! empty($page_extra_info)) { ?>
39 39
             <div class="address-block">
40 40
                 <?php echo wpautop(wp_kses($page_extra_info, $allowedtags)); ?>
41 41
             </div>
42 42
         <?php }
43
-    } ?>
43
+	} ?>
44 44
 </div>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@  discard block
 block discarded – undo
16 16
 $allowedtags = AllowedTags::getAllowedTags();
17 17
 ?>
18 18
 <div class="event-display-boxes">
19
-    <?php if (! empty($page_title)) { ?>
19
+    <?php if ( ! empty($page_title)) { ?>
20 20
         <h4 id="invoice_title" class="payment_type_title section-heading">
21 21
             <?php echo esc_html($page_title); ?>
22 22
         </h4>
23 23
     <?php }
24
-    if (! empty($invoice_url)) { ?>
24
+    if ( ! empty($invoice_url)) { ?>
25 25
         <p>
26 26
             <a href="<?php echo esc_url_raw($invoice_url); ?>"
27 27
                class="ee-button-lnk inline-button ee-invoice-lnk"
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                 <p class="instruct"><?php echo wpautop(wp_kses($page_confirmation_text, $allowedtags)); ?></p>
37 37
             </div>
38 38
         <?php }
39
-        if (! empty($page_extra_info)) { ?>
39
+        if ( ! empty($page_extra_info)) { ?>
40 40
             <div class="address-block">
41 41
                 <?php echo wpautop(wp_kses($page_extra_info, $allowedtags)); ?>
42 42
             </div>
Please login to merge, or discard this patch.
payment_methods/Bank/EE_PMT_Bank.pm.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         $this->_pretty_name = esc_html__("Bank", 'event_espresso');
22 22
         parent::__construct($pm_instance);
23
-        $this->_default_button_url  = $this->file_url() . 'lib/bank-logo.png';
23
+        $this->_default_button_url  = $this->file_url().'lib/bank-logo.png';
24 24
         $this->_default_description = esc_html__(
25 25
             'Make payment using an electronic funds transfer from your bank.',
26 26
             'event_espresso'
Please login to merge, or discard this patch.
Indentation   +117 added lines, -117 removed lines patch added patch discarded remove patch
@@ -9,129 +9,129 @@
 block discarded – undo
9 9
  */
10 10
 class EE_PMT_Bank extends EE_PMT_Base
11 11
 {
12
-    /**
13
-     * @param EE_Payment_Method|null $pm_instance
14
-     * @throws ReflectionException
15
-     * @throws EE_Error
16
-     */
17
-    public function __construct($pm_instance = null)
18
-    {
19
-        $this->_pretty_name = esc_html__("Bank", 'event_espresso');
20
-        parent::__construct($pm_instance);
21
-        $this->_default_button_url  = $this->file_url() . 'lib/bank-logo.png';
22
-        $this->_default_description = esc_html__(
23
-            'Make payment using an electronic funds transfer from your bank.',
24
-            'event_espresso'
25
-        );
26
-    }
12
+	/**
13
+	 * @param EE_Payment_Method|null $pm_instance
14
+	 * @throws ReflectionException
15
+	 * @throws EE_Error
16
+	 */
17
+	public function __construct($pm_instance = null)
18
+	{
19
+		$this->_pretty_name = esc_html__("Bank", 'event_espresso');
20
+		parent::__construct($pm_instance);
21
+		$this->_default_button_url  = $this->file_url() . 'lib/bank-logo.png';
22
+		$this->_default_description = esc_html__(
23
+			'Make payment using an electronic funds transfer from your bank.',
24
+			'event_espresso'
25
+		);
26
+	}
27 27
 
28 28
 
29
-    /**
30
-     * Creates the billing form for this payment method type
31
-     *
32
-     * @param EE_Transaction|null $transaction
33
-     * @return EE_Billing_Info_Form|null
34
-     * @throws EE_Error
35
-     * @throws ReflectionException
36
-     */
37
-    public function generate_new_billing_form(EE_Transaction $transaction = null)
38
-    {
39
-    return null;
40
-    }
29
+	/**
30
+	 * Creates the billing form for this payment method type
31
+	 *
32
+	 * @param EE_Transaction|null $transaction
33
+	 * @return EE_Billing_Info_Form|null
34
+	 * @throws EE_Error
35
+	 * @throws ReflectionException
36
+	 */
37
+	public function generate_new_billing_form(EE_Transaction $transaction = null)
38
+	{
39
+	return null;
40
+	}
41 41
 
42 42
 
43
-    /**
44
-     * Gets the form for all the settings related to this payment method type
45
-     *
46
-     * @return EE_Payment_Method_Form
47
-     * @throws EE_Error
48
-     * @throws ReflectionException
49
-     */
50
-    public function generate_new_settings_form()
51
-    {
52
-        return new EE_Payment_Method_Form(
53
-            [
54
-                'extra_meta_inputs' => [
55
-                    'page_title'           => new EE_Text_Input(
56
-                        [
57
-                            'html_label_text' => sprintf(
58
-                                esc_html__("Title %s", "event_espresso"),
59
-                                $this->get_help_tab_link()
60
-                            ),
61
-                            'default'         => esc_html__("Electronic Funds Transfers", 'event_espresso'),
62
-                        ]
63
-                    ),
64
-                    'payment_instructions' => new EE_Text_Area_Input(
65
-                        [
66
-                            'html_label_text'       => sprintf(
67
-                                esc_html__("Payment Instructions %s", "event_espresso"),
68
-                                $this->get_help_tab_link()
69
-                            ),
70
-                            'html_help_text'        => esc_html__(
71
-                                'Provide instructions on how registrants can send the bank draft payment. Eg, mention your account name, bank account number, bank name, bank routing code, and bank address, etc.',
72
-                                'event_espresso'
73
-                            ),
74
-                            'default'               => sprintf(
75
-                                esc_html__(
76
-                                    'Please initiate an electronic payment using the following bank information: %1$sAccount Owner: Luke Skywalker%1$sBank Account # 1234567890%1$sBank Name: Rebellion Bank%1$sRouting Number: 12345%1$sBank Address: 12345 Wookie Rd., Planet Corellian.%1$sPayment must be received within 48 hours of event date.',
77
-                                    'event_espresso'
78
-                                ),
79
-                                "\n"
80
-                            ),
81
-                            'validation_strategies' => [
82
-                                new EE_Full_HTML_Validation_Strategy(),
83
-                            ],
84
-                        ]
85
-                    ),
86
-                ],
87
-                'exclude'           => ['PMD_debug_mode'],
88
-            ]
89
-        );
90
-    }
43
+	/**
44
+	 * Gets the form for all the settings related to this payment method type
45
+	 *
46
+	 * @return EE_Payment_Method_Form
47
+	 * @throws EE_Error
48
+	 * @throws ReflectionException
49
+	 */
50
+	public function generate_new_settings_form()
51
+	{
52
+		return new EE_Payment_Method_Form(
53
+			[
54
+				'extra_meta_inputs' => [
55
+					'page_title'           => new EE_Text_Input(
56
+						[
57
+							'html_label_text' => sprintf(
58
+								esc_html__("Title %s", "event_espresso"),
59
+								$this->get_help_tab_link()
60
+							),
61
+							'default'         => esc_html__("Electronic Funds Transfers", 'event_espresso'),
62
+						]
63
+					),
64
+					'payment_instructions' => new EE_Text_Area_Input(
65
+						[
66
+							'html_label_text'       => sprintf(
67
+								esc_html__("Payment Instructions %s", "event_espresso"),
68
+								$this->get_help_tab_link()
69
+							),
70
+							'html_help_text'        => esc_html__(
71
+								'Provide instructions on how registrants can send the bank draft payment. Eg, mention your account name, bank account number, bank name, bank routing code, and bank address, etc.',
72
+								'event_espresso'
73
+							),
74
+							'default'               => sprintf(
75
+								esc_html__(
76
+									'Please initiate an electronic payment using the following bank information: %1$sAccount Owner: Luke Skywalker%1$sBank Account # 1234567890%1$sBank Name: Rebellion Bank%1$sRouting Number: 12345%1$sBank Address: 12345 Wookie Rd., Planet Corellian.%1$sPayment must be received within 48 hours of event date.',
77
+									'event_espresso'
78
+								),
79
+								"\n"
80
+							),
81
+							'validation_strategies' => [
82
+								new EE_Full_HTML_Validation_Strategy(),
83
+							],
84
+						]
85
+					),
86
+				],
87
+				'exclude'           => ['PMD_debug_mode'],
88
+			]
89
+		);
90
+	}
91 91
 
92 92
 
93
-    /**
94
-     * Adds the help tab
95
-     *
96
-     * @return array
97
-     * @see EE_PMT_Base::help_tabs_config()
98
-     */
99
-    public function help_tabs_config()
100
-    {
101
-        return [
102
-            $this->get_help_tab_name() => [
103
-                'title'    => esc_html__('Bank Draft Settings', 'event_espresso'),
104
-                'filename' => 'payment_methods_overview_bank_draft',
105
-            ],
106
-        ];
107
-    }
93
+	/**
94
+	 * Adds the help tab
95
+	 *
96
+	 * @return array
97
+	 * @see EE_PMT_Base::help_tabs_config()
98
+	 */
99
+	public function help_tabs_config()
100
+	{
101
+		return [
102
+			$this->get_help_tab_name() => [
103
+				'title'    => esc_html__('Bank Draft Settings', 'event_espresso'),
104
+				'filename' => 'payment_methods_overview_bank_draft',
105
+			],
106
+		];
107
+	}
108 108
 
109 109
 
110
-    /**
111
-     * For adding any html output ab ove the payment overview.
112
-     * Many gateways won't want ot display anything, so this function just returns an empty string.
113
-     * Other gateways may want to override this, such as offline gateways.
114
-     *
115
-     * @param EE_Payment $payment
116
-     * @return string
117
-     * @throws EE_Error
118
-     * @throws ReflectionException
119
-     */
120
-    public function payment_overview_content(EE_Payment $payment)
121
-    {
122
-        $extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array();
123
-        $template_vars                 = array_merge(
124
-            [
125
-                'payment_method'       => $this->_pm_instance,
126
-                'payment'              => $payment,
127
-                'page_title'           => '',
128
-                'payment_instructions' => '',
129
-            ],
130
-            $extra_meta_for_payment_method
131
-        );
132
-        return EEH_Template::locate_template(
133
-            'payment_methods/Bank/templates/bank_payment_details_content.template.php',
134
-            $template_vars
135
-        );
136
-    }
110
+	/**
111
+	 * For adding any html output ab ove the payment overview.
112
+	 * Many gateways won't want ot display anything, so this function just returns an empty string.
113
+	 * Other gateways may want to override this, such as offline gateways.
114
+	 *
115
+	 * @param EE_Payment $payment
116
+	 * @return string
117
+	 * @throws EE_Error
118
+	 * @throws ReflectionException
119
+	 */
120
+	public function payment_overview_content(EE_Payment $payment)
121
+	{
122
+		$extra_meta_for_payment_method = $this->_pm_instance->all_extra_meta_array();
123
+		$template_vars                 = array_merge(
124
+			[
125
+				'payment_method'       => $this->_pm_instance,
126
+				'payment'              => $payment,
127
+				'page_title'           => '',
128
+				'payment_instructions' => '',
129
+			],
130
+			$extra_meta_for_payment_method
131
+		);
132
+		return EEH_Template::locate_template(
133
+			'payment_methods/Bank/templates/bank_payment_details_content.template.php',
134
+			$template_vars
135
+		);
136
+	}
137 137
 }
Please login to merge, or discard this patch.
Paypal_Express/templates/paypal_express_debug_info.template.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 
3 3
     <h4 class="important-notice">
4 4
         <?php esc_html_e(
5
-            'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.',
6
-            'event_espresso'
7
-        ); ?></h4>
5
+			'Debug Mode is turned ON. You will be redirected to the PayPal Sandbox environment. Please use your Sandbox PayPal account for the checkout.',
6
+			'event_espresso'
7
+		); ?></h4>
8 8
 
9 9
     <h4><?php esc_html_e('How do I test specific error codes?', 'event_espresso'); ?></h4>
10 10
     <p>
11 11
         <?php esc_html_e(
12
-            'To trigger an error condition on an amount-related field, 
12
+			'To trigger an error condition on an amount-related field, 
13 13
 			specify a error code value as a number with two digits to the right of the decimal point. 
14 14
 			For example, specify a value of 107.55 to trigger the 10755 error.',
15
-            'event_espresso'
16
-        ); ?>
15
+			'event_espresso'
16
+		); ?>
17 17
     </p>
18 18
     <p>
19 19
         <?php printf(
20
-            esc_html__('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'),
21
-            '<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">',
22
-            '</a>'
23
-        ); ?>
20
+			esc_html__('More details can be found here: %1$s Testing Error Conditions %2$s.', 'event_espresso'),
21
+			'<a href="https://developer.paypal.com/docs/classic/lifecycle/sb_error-conditions">',
22
+			'</a>'
23
+		); ?>
24 24
     </p>
25 25
 
26 26
 </div>
27 27
\ No newline at end of file
Please login to merge, or discard this patch.
help_tabs/payment_methods_overview_paypalstandard.help_tab.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@
 block discarded – undo
23 23
 <li>
24 24
 <strong><?php esc_html_e('PayPal Calculates Taxes', 'event_espresso'); ?></strong><br />
25 25
 <?php printf(esc_html__('If set to "Yes", we will indicate to PayPal that it should calculate the taxes on the order and add it. This means PayPal\'s tax calculations will be used on the order instead of Event Espresso\'s. %1$sRead here for more information.%2$s', 'event_espresso'), "<a href='https://www.paypal.com/ca/cgi-bin/webscr?cmd=xpt/Marketing/shipping/EasyCalculateShipAndTax-outside' target='_blank'>", '</a>'); ?><br/>
26
-<?php esc_html_e('Note: It may confuse users if Event Espresso initially calculates taxes on the order, and then they go to PayPal and it calculates taxes differently. So it is recommended that if PayPal is calculating taxes, that you do not set any taxes in Event Espresso.', 'event_espresso');?>
26
+<?php esc_html_e('Note: It may confuse users if Event Espresso initially calculates taxes on the order, and then they go to PayPal and it calculates taxes differently. So it is recommended that if PayPal is calculating taxes, that you do not set any taxes in Event Espresso.', 'event_espresso'); ?>
27 27
 </li>
28 28
 <li>
29 29
 <strong><?php esc_html_e('PayPal Calculates Shipping', 'event_espresso'); ?></strong><br />
30 30
 <?php esc_html_e('Similar to the "PayPal Calculates Taxes" setting, if this is set to "Yes", we will indicate to PayPal that it should calculate the shipping on each payment (if there are multiple payments for a single transaction, PayPal is permitted to add shipping charges to each payment.)', 'event_espresso'); ?><br/>
31
-<?php esc_html_e('Important Note: PayPal will ONLY calculate shipping on an order if "Shipping Address Options" is set to "Prompt for an Address" (otherwise how will PayPal know how much to charge for shipping if it doesn\'t know where it\'s shipping to?)', 'event_espresso');?>
31
+<?php esc_html_e('Important Note: PayPal will ONLY calculate shipping on an order if "Shipping Address Options" is set to "Prompt for an Address" (otherwise how will PayPal know how much to charge for shipping if it doesn\'t know where it\'s shipping to?)', 'event_espresso'); ?>
32 32
 <li>
33
-<strong><?php esc_html_e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso');?></strong><br/>
34
-<?php esc_html_e('If you want PayPal to calculate taxes and shipping on an order, those changes will NOT appear during the initial registration process until the user is redirected to PayPal for payment.', 'event_espresso');?><br/>
35
-<?php esc_html_e('However, after the user has returned from PayPal, their order in Event Espresso will be updated with the new taxes and added shipping charges (e.g. it will appear on their receipt.)', 'event_espresso');?><br/>
36
-<?php esc_html_e('Also Note: In order for PayPal to properly calculate taxes and shipping, they need to receive the entire order at the same time. So if a user goes to make a payment using PayPal, and their order somehow already has a payment on it, PayPal CANNOT calculate taxes or shipping on that order.', 'event_espresso');?>
33
+<strong><?php esc_html_e('Notes Regarding Paypal Taxes and Shipping', 'event_espresso'); ?></strong><br/>
34
+<?php esc_html_e('If you want PayPal to calculate taxes and shipping on an order, those changes will NOT appear during the initial registration process until the user is redirected to PayPal for payment.', 'event_espresso'); ?><br/>
35
+<?php esc_html_e('However, after the user has returned from PayPal, their order in Event Espresso will be updated with the new taxes and added shipping charges (e.g. it will appear on their receipt.)', 'event_espresso'); ?><br/>
36
+<?php esc_html_e('Also Note: In order for PayPal to properly calculate taxes and shipping, they need to receive the entire order at the same time. So if a user goes to make a payment using PayPal, and their order somehow already has a payment on it, PayPal CANNOT calculate taxes or shipping on that order.', 'event_espresso'); ?>
37 37
 </li>
38 38
 <li>
39 39
 <strong><?php esc_html_e('Shipping Address Options', 'event_espresso'); ?></strong><br />
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_migration_was_borked_page.template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
 <p>
98 98
     <?php printf(
99 99
         esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),
100
-        '<a href="mailto:' . EE_SUPPORT_EMAIL . '">',
100
+        '<a href="mailto:'.EE_SUPPORT_EMAIL.'">',
101 101
         EE_SUPPORT_EMAIL,
102 102
         "</a>"
103 103
     ); ?>
Please login to merge, or discard this patch.
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@  discard block
 block discarded – undo
7 7
 <h1><?php esc_html_e("Data Migration Error", "event_espresso"); ?></h1>
8 8
 <p class='error'>
9 9
     <?php printf(
10
-        esc_html__(
11
-            "Your last Database Update had a %s fatal error and was halted%s.",
12
-            "event_espresso"
13
-        ),
14
-        "<b>",
15
-        "</b>"
16
-    ); ?>
10
+		esc_html__(
11
+			"Your last Database Update had a %s fatal error and was halted%s.",
12
+			"event_espresso"
13
+		),
14
+		"<b>",
15
+		"</b>"
16
+	); ?>
17 17
 </p>
18 18
 <a id="show-hide-migration-warnings" class="display-the-hidden">
19 19
     <?php esc_html_e("Show Errors", 'event_espresso'); ?>
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
 </ul>
26 26
 <h2>
27 27
     <?php esc_html_e(
28
-        "Fill out the below form to automatically Send Event Espresso a Crash Report",
29
-        "event_espresso"
30
-    ); ?>
28
+		"Fill out the below form to automatically Send Event Espresso a Crash Report",
29
+		"event_espresso"
30
+	); ?>
31 31
 </h2>
32 32
 <form action='<?php echo esc_url_raw(
33
-    EE_Admin_Page::add_query_args_and_nonce(
34
-        ['action' => 'send_migration_crash_report'],
35
-        EE_MAINTENANCE_ADMIN_URL
36
-    )
33
+	EE_Admin_Page::add_query_args_and_nonce(
34
+		['action' => 'send_migration_crash_report'],
35
+		EE_MAINTENANCE_ADMIN_URL
36
+	)
37 37
 );
38 38
 ?>' method='post'
39 39
 >
@@ -59,9 +59,9 @@  discard block
 block discarded – undo
59 59
                        type='text'
60 60
                        style="width:200px"
61 61
                        value='<?php printf(
62
-                           esc_html__("Admin of %s", "event_espresso"),
63
-                           get_bloginfo('name', 'display')
64
-                       ); ?>'
62
+						   esc_html__("Admin of %s", "event_espresso"),
63
+						   get_bloginfo('name', 'display')
64
+					   ); ?>'
65 65
                 />
66 66
             </td>
67 67
         </tr>
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
             </td>
72 72
             <td>
73 73
                 <textarea name="body" id="body" class='system_status_info'><?php esc_textarea(__(
74
-                    "Enter any comments about why you think the error may have occurred",
75
-                    "event_espresso"
76
-                )); ?></textarea>
74
+					"Enter any comments about why you think the error may have occurred",
75
+					"event_espresso"
76
+				)); ?></textarea>
77 77
                 <p class='description'>
78 78
                     <?php esc_textarea(__(
79
-                        "Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.",
80
-                        "event_espresso"
81
-                    )); ?>
79
+						"Note: the System Information report will also be added to the email's body, which contains information about your Event Espresso, Wordpress, and PHP settings which can be helpful in debugging the problem.",
80
+						"event_espresso"
81
+					)); ?>
82 82
                 </p>
83 83
             </td>
84 84
         </tr>
@@ -94,24 +94,24 @@  discard block
 block discarded – undo
94 94
 <br>
95 95
 <p>
96 96
     <?php printf(
97
-        esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),
98
-        '<a href="mailto:' . EE_SUPPORT_EMAIL . '">',
99
-        EE_SUPPORT_EMAIL,
100
-        "</a>"
101
-    ); ?>
97
+		esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),
98
+		'<a href="mailto:' . EE_SUPPORT_EMAIL . '">',
99
+		EE_SUPPORT_EMAIL,
100
+		"</a>"
101
+	); ?>
102 102
 </p>
103 103
 <textarea class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati()) ?></textarea>
104 104
 <p>
105 105
     <?php printf(
106
-        esc_html__('%1$sNext Step%2$s', 'event_espresso'),
107
-        "<a href='$next_url'>",
108
-        "</a>"
109
-    ); ?>
106
+		esc_html__('%1$sNext Step%2$s', 'event_espresso'),
107
+		"<a href='$next_url'>",
108
+		"</a>"
109
+	); ?>
110 110
 </p>
111 111
 <p>
112 112
     <?php printf(
113
-        esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'),
114
-        "<a href='$next_url'>",
115
-        "</a>"
116
-    ); ?>
113
+		esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'),
114
+		"<a href='$next_url'>",
115
+		"</a>"
116
+	); ?>
117 117
 </p>
Please login to merge, or discard this patch.