Completed
Branch models-cleanup/model-relations (db5ca7)
by
unknown
13:03 queued 08:35
created
registrations/templates/attendee_registrations_main_meta_box.template.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -17,62 +17,62 @@
 block discarded – undo
17 17
                 <tr>
18 18
                     <td class="jst-left">
19 19
                         <?php
20
-                        $event_url = add_query_arg(
21
-                            array('action' => 'edit', 'post' => $registration->event_ID()),
22
-                            admin_url('admin.php?page=espresso_events')
23
-                        );
24
-                        echo EE_Registry::instance()->CAP->current_user_can(
25
-                            'ee_edit_event',
26
-                            'espresso_events_edit',
27
-                            $registration->event_ID()
28
-                        ) ? '<a href="' . $event_url . '"  title="'
29
-                            . esc_attr__(
30
-                                'Edit Event',
31
-                                'event_espresso'
32
-                            ) . '">' . $registration->event_name() . '</a>' : $registration->event_name();
33
-                        ?>
20
+						$event_url = add_query_arg(
21
+							array('action' => 'edit', 'post' => $registration->event_ID()),
22
+							admin_url('admin.php?page=espresso_events')
23
+						);
24
+						echo EE_Registry::instance()->CAP->current_user_can(
25
+							'ee_edit_event',
26
+							'espresso_events_edit',
27
+							$registration->event_ID()
28
+						) ? '<a href="' . $event_url . '"  title="'
29
+							. esc_attr__(
30
+								'Edit Event',
31
+								'event_espresso'
32
+							) . '">' . $registration->event_name() . '</a>' : $registration->event_name();
33
+						?>
34 34
                     </td>
35 35
                     <td class="jst-left">
36 36
                         <?php
37
-                        $reg_url = EE_Admin_Page::add_query_args_and_nonce(
38
-                            array('action' => 'view_registration', '_REG_ID' => $registration->ID()),
39
-                            REG_ADMIN_URL
40
-                        );
41
-                        echo EE_Registry::instance()->CAP->current_user_can(
42
-                            'ee_read_registration',
43
-                            'espresso_registrations_view_registration',
44
-                            $registration->ID()
45
-                        ) ? '
37
+						$reg_url = EE_Admin_Page::add_query_args_and_nonce(
38
+							array('action' => 'view_registration', '_REG_ID' => $registration->ID()),
39
+							REG_ADMIN_URL
40
+						);
41
+						echo EE_Registry::instance()->CAP->current_user_can(
42
+							'ee_read_registration',
43
+							'espresso_registrations_view_registration',
44
+							$registration->ID()
45
+						) ? '
46 46
 							<a href="' . $reg_url . '" title="'
47
-                            . esc_attr__(
48
-                                'View Registration Details',
49
-                                'event_espresso'
50
-                            ) . '">' .
51
-                            esc_html__('View Registration', 'event_espresso') .
52
-                            '</a>' : $registration->ID();
53
-                        ?>
47
+							. esc_attr__(
48
+								'View Registration Details',
49
+								'event_espresso'
50
+							) . '">' .
51
+							esc_html__('View Registration', 'event_espresso') .
52
+							'</a>' : $registration->ID();
53
+						?>
54 54
                     </td>
55 55
                     <td class="jst-left">
56 56
                         <?php
57
-                        $txn_url = EE_Admin_Page::add_query_args_and_nonce(
58
-                            array('action' => 'view_transaction', 'TXN_ID' => $registration->transaction_ID()),
59
-                            TXN_ADMIN_URL
60
-                        );
61
-                        echo EE_Registry::instance()->CAP->current_user_can(
62
-                            'ee_read_transaction',
63
-                            'espresso_transactions_view_transaction'
64
-                        ) ? '
57
+						$txn_url = EE_Admin_Page::add_query_args_and_nonce(
58
+							array('action' => 'view_transaction', 'TXN_ID' => $registration->transaction_ID()),
59
+							TXN_ADMIN_URL
60
+						);
61
+						echo EE_Registry::instance()->CAP->current_user_can(
62
+							'ee_read_transaction',
63
+							'espresso_transactions_view_transaction'
64
+						) ? '
65 65
 						<a href="' . $txn_url . '" title="'
66
-                            . esc_attr__(
67
-                                'View Transaction Details',
68
-                                'event_espresso'
69
-                            ) . '">' .
70
-                            sprintf(
71
-                                esc_html__('View Transaction %d', 'event_espresso'),
72
-                                $registration->transaction_ID()
73
-                            ) .
74
-                            '</a>' : $registration->transaction_ID();
75
-                        ?>
66
+							. esc_attr__(
67
+								'View Transaction Details',
68
+								'event_espresso'
69
+							) . '">' .
70
+							sprintf(
71
+								esc_html__('View Transaction %d', 'event_espresso'),
72
+								$registration->transaction_ID()
73
+							) .
74
+							'</a>' : $registration->transaction_ID();
75
+						?>
76 76
                     </td>
77 77
                     <td class="jst-left"><?php echo $registration->reg_code(); ?></td>
78 78
                     <td class="jst-rght"><?php echo EEH_Template::format_currency($registration->final_price()); ?></td>
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
                             'ee_edit_event',
26 26
                             'espresso_events_edit',
27 27
                             $registration->event_ID()
28
-                        ) ? '<a href="' . $event_url . '"  title="'
28
+                        ) ? '<a href="'.$event_url.'"  title="'
29 29
                             . esc_attr__(
30 30
                                 'Edit Event',
31 31
                                 'event_espresso'
32
-                            ) . '">' . $registration->event_name() . '</a>' : $registration->event_name();
32
+                            ).'">'.$registration->event_name().'</a>' : $registration->event_name();
33 33
                         ?>
34 34
                     </td>
35 35
                     <td class="jst-left">
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
                             'espresso_registrations_view_registration',
44 44
                             $registration->ID()
45 45
                         ) ? '
46
-							<a href="' . $reg_url . '" title="'
46
+							<a href="' . $reg_url.'" title="'
47 47
                             . esc_attr__(
48 48
                                 'View Registration Details',
49 49
                                 'event_espresso'
50
-                            ) . '">' .
51
-                            esc_html__('View Registration', 'event_espresso') .
50
+                            ).'">'.
51
+                            esc_html__('View Registration', 'event_espresso').
52 52
                             '</a>' : $registration->ID();
53 53
                         ?>
54 54
                     </td>
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
                             'ee_read_transaction',
63 63
                             'espresso_transactions_view_transaction'
64 64
                         ) ? '
65
-						<a href="' . $txn_url . '" title="'
65
+						<a href="' . $txn_url.'" title="'
66 66
                             . esc_attr__(
67 67
                                 'View Transaction Details',
68 68
                                 'event_espresso'
69
-                            ) . '">' .
69
+                            ).'">'.
70 70
                             sprintf(
71 71
                                 esc_html__('View Transaction %d', 'event_espresso'),
72 72
                                 $registration->transaction_ID()
73
-                            ) .
73
+                            ).
74 74
                             '</a>' : $registration->transaction_ID();
75 75
                         ?>
76 76
                     </td>
Please login to merge, or discard this patch.
admin_pages/payments/templates/payment_log_details.template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                     <?php echo $payment_log->e(
66 66
                         'LOG_message',
67 67
                         'as_table'
68
-                    );// EEH_Template::layout_array_as_table($payment_log->content())?>
68
+                    ); // EEH_Template::layout_array_as_table($payment_log->content())?>
69 69
                 </td>
70 70
             </tr>
71 71
             </tbody>
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@  discard block
 block discarded – undo
36 36
                 </th>
37 37
                 <td>
38 38
                     <?php
39
-                    if ($payment_log->object() instanceof EE_Transaction) {
40
-                        esc_html_e('Unknown', 'event_espresso');
41
-                    } else {
42
-                        echo $payment_method
43
-                        ? $payment_method->admin_name()
44
-                        : esc_html__(
45
-                            "No Longer Exists",
46
-                            'event_espresso'
47
-                        );
48
-                    }
49
-                    ?>
39
+					if ($payment_log->object() instanceof EE_Transaction) {
40
+						esc_html_e('Unknown', 'event_espresso');
41
+					} else {
42
+						echo $payment_method
43
+						? $payment_method->admin_name()
44
+						: esc_html__(
45
+							"No Longer Exists",
46
+							'event_espresso'
47
+						);
48
+					}
49
+					?>
50 50
 
51 51
                 </td>
52 52
             </tr>
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
                 </th>
70 70
                 <td>
71 71
                     <?php echo $payment_log->e(
72
-                        'LOG_message',
73
-                        'as_table'
74
-                    );// EEH_Template::layout_array_as_table($payment_log->content())?>
72
+						'LOG_message',
73
+						'as_table'
74
+					);// EEH_Template::layout_array_as_table($payment_log->content())?>
75 75
                 </td>
76 76
             </tr>
77 77
             </tbody>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_data_reset_and_delete.template.php 1 patch
Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@  discard block
 block discarded – undo
14 14
 <div class="padding">
15 15
     <h4 class="espresso-header"><span class="dashicons dashicons-update ee-icon-size-22"></span>
16 16
         <?php esc_html_e(
17
-            'Reset Ticket and Datetime Reserved Counts',
18
-            'event_espresso'
19
-        ); ?></h4>
17
+			'Reset Ticket and Datetime Reserved Counts',
18
+			'event_espresso'
19
+		); ?></h4>
20 20
     <p><?php esc_html_e('Use this to reset the counts for ticket and datetime reservations.', 'event_espresso'); ?></p>
21 21
     <div class="float-right"><?php echo $reset_reservations_button; ?></div>
22 22
     <div class="clear"></div>
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
 <div class="padding">
29 29
     <h4 class="espresso-header"><span class="dashicons dashicons-update ee-icon-size-22"></span>
30 30
         <?php esc_html_e(
31
-            'Reset Event Espresso Capabilities',
32
-            'event_espresso'
33
-        ); ?></h4>
31
+			'Reset Event Espresso Capabilities',
32
+			'event_espresso'
33
+		); ?></h4>
34 34
     <p>
35 35
         <?php esc_html_e(
36
-            'Use this to reset the capabilities on WP roles to the defaults as defined via EE_Capabilities.  Note this reset does not REMOVE any existing capabilities, it just ensures that all the defaults are ADDED to the roles.',
37
-            'event_espresso'
38
-        ); ?></p>
36
+			'Use this to reset the capabilities on WP roles to the defaults as defined via EE_Capabilities.  Note this reset does not REMOVE any existing capabilities, it just ensures that all the defaults are ADDED to the roles.',
37
+			'event_espresso'
38
+		); ?></p>
39 39
     <div class="float-right"><?php echo $reset_capabilities_button; ?></div>
40 40
     <div class="clear"></div>
41 41
 </div>
@@ -45,25 +45,25 @@  discard block
 block discarded – undo
45 45
 <div class="padding">
46 46
     <h4 class="espresso-header"><span class="dashicons dashicons-update ee-icon-size-22"></span>
47 47
         <?php esc_html_e(
48
-            'Reset Event Espresso Data',
49
-            'event_espresso'
50
-        ); ?></h4>
48
+			'Reset Event Espresso Data',
49
+			'event_espresso'
50
+		); ?></h4>
51 51
     <p>
52 52
         <?php esc_html_e(
53
-            ' This will reset data for Event Espresso 4, and for all active add-ons. Inactive add-ons will not be affected.',
54
-            'event_espresso'
55
-        ); ?></p>
53
+			' This will reset data for Event Espresso 4, and for all active add-ons. Inactive add-ons will not be affected.',
54
+			'event_espresso'
55
+		); ?></p>
56 56
     <p>
57 57
         <?php esc_html_e(
58
-            'Your Event Espresso data will return to its default settings. The rest of your website will be unaffected.',
59
-            'event_espresso'
60
-        ); ?></p>
58
+			'Your Event Espresso data will return to its default settings. The rest of your website will be unaffected.',
59
+			'event_espresso'
60
+		); ?></p>
61 61
     <div class="float-right"><a class="button button-primary ee-confirm"
62 62
                                 href="<?php echo $reset_db_url; ?>">
63 63
             <?php esc_html_e(
64
-                'Reset Event Espresso Tables',
65
-                'event_espresso'
66
-            ); ?></a></div>
64
+				'Reset Event Espresso Tables',
65
+				'event_espresso'
66
+			); ?></a></div>
67 67
     <div class="clear"></div>
68 68
 </div>
69 69
 <br/>
@@ -72,71 +72,71 @@  discard block
 block discarded – undo
72 72
 <div class="padding">
73 73
     <h4 class="espresso-header"><span class="dashicons dashicons-post-trash ee-icon-size-22"></span>
74 74
         <?php esc_html_e(
75
-            'Permanently Delete ALL Event Espresso Data',
76
-            'event_espresso'
77
-        ); ?></h4>
75
+			'Permanently Delete ALL Event Espresso Data',
76
+			'event_espresso'
77
+		); ?></h4>
78 78
     <p>
79 79
         <?php esc_html_e(
80
-            ' This will delete data for Event Espresso 4, and all currently active add-ons. Event Espresso will then be deactivated. You may need to manually deactivate each add-on individually.',
81
-            'event_espresso'
82
-        ); ?></p>
80
+			' This will delete data for Event Espresso 4, and all currently active add-ons. Event Espresso will then be deactivated. You may need to manually deactivate each add-on individually.',
81
+			'event_espresso'
82
+		); ?></p>
83 83
     <p>
84 84
         <?php esc_html_e(
85
-            'If you know for certain that you will no longer be using Event Espresso and you wish to remove ALL traces of the plugin from your system, then perform the following steps.',
86
-            'event_espresso'
87
-        ); ?></p>
85
+			'If you know for certain that you will no longer be using Event Espresso and you wish to remove ALL traces of the plugin from your system, then perform the following steps.',
86
+			'event_espresso'
87
+		); ?></p>
88 88
     <p class="important-notice">
89 89
         <?php printf(
90
-            esc_html__('Please note: %sThis is permanent and can NOT be undone.%s', 'event_espresso'),
91
-            '<em>',
92
-            '</em>'
93
-        ); ?><br/></p>
90
+			esc_html__('Please note: %sThis is permanent and can NOT be undone.%s', 'event_espresso'),
91
+			'<em>',
92
+			'</em>'
93
+		); ?><br/></p>
94 94
     <ol>
95 95
         <li>
96 96
             <?php printf(
97
-                esc_html__(
98
-                    'First, click the button below to permanently delete all Event Espresso tables, records, and options from your WordPress database . If you receive a "500 Internal Server Error" or a blank white screen, it means the server has timed out due to the large number of records being updated. This is not a cause for concern. Simply %1$srefresh the page%2$s and the Database Update will continue where it left off.',
99
-                    'event_espresso'
100
-                ),
101
-                '<strong>',
102
-                '</strong>'
103
-            ); ?></li>
97
+				esc_html__(
98
+					'First, click the button below to permanently delete all Event Espresso tables, records, and options from your WordPress database . If you receive a "500 Internal Server Error" or a blank white screen, it means the server has timed out due to the large number of records being updated. This is not a cause for concern. Simply %1$srefresh the page%2$s and the Database Update will continue where it left off.',
99
+					'event_espresso'
100
+				),
101
+				'<strong>',
102
+				'</strong>'
103
+			); ?></li>
104 104
         <li>
105 105
             <?php printf(
106
-                esc_html__(
107
-                    'Then, locate Event Espresso on the WordPress Plugins page, and click on %sDelete%s',
108
-                    'event_espresso'
109
-                ),
110
-                '<strong>',
111
-                '</strong>'
112
-            ); ?></li>
106
+				esc_html__(
107
+					'Then, locate Event Espresso on the WordPress Plugins page, and click on %sDelete%s',
108
+					'event_espresso'
109
+				),
110
+				'<strong>',
111
+				'</strong>'
112
+			); ?></li>
113 113
         <li>
114 114
             <?php printf(
115
-                esc_html__(
116
-                    'Once you are on the Delete Plugin page, click on %sYes, Delete these files and data%s',
117
-                    'event_espresso'
118
-                ),
119
-                '<strong>',
120
-                '</strong>'
121
-            ); ?></li>
115
+				esc_html__(
116
+					'Once you are on the Delete Plugin page, click on %sYes, Delete these files and data%s',
117
+					'event_espresso'
118
+				),
119
+				'<strong>',
120
+				'</strong>'
121
+			); ?></li>
122 122
         <li>
123 123
             <?php printf(
124
-                esc_html__('Note: Event Espresso 4 categories are %snot%s deleted by this script', 'event_espresso'),
125
-                '<strong>',
126
-                '</strong>'
127
-            ); ?>
124
+				esc_html__('Note: Event Espresso 4 categories are %snot%s deleted by this script', 'event_espresso'),
125
+				'<strong>',
126
+				'</strong>'
127
+			); ?>
128 128
             <br><a href="<?php echo admin_url('edit-tags.php?taxonomy=espresso_event_categories'); ?>">
129 129
                 <?php esc_html_e(
130
-                    'You can go here to delete Event Espresso categories',
131
-                    'event_espresso'
132
-                ); ?></a></li>
130
+					'You can go here to delete Event Espresso categories',
131
+					'event_espresso'
132
+				); ?></a></li>
133 133
     </ol>
134 134
     <div class="float-right"><a href="<?php echo $delete_db_url; ?>" id="delete-all-data-btn"
135 135
                                 class="button-primary ee-confirm">
136 136
             <?php esc_html_e(
137
-                'Permanently Delete All Event Espresso Data',
138
-                'event_espresso'
139
-            ); ?></a></div>
137
+				'Permanently Delete All Event Espresso Data',
138
+				'event_espresso'
139
+			); ?></a></div>
140 140
     <div class="clear"></div>
141 141
 </div>
142 142
 <br/>
Please login to merge, or discard this patch.
maintenance/templates/ee_upgrade_addons_before_migrating.template.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -4,15 +4,15 @@
 block discarded – undo
4 4
 <h1><?php esc_html_e("You must upgrade your Event Espresso Add-ons before Migrating", "event_espresso"); ?></h1>
5 5
 <p>
6 6
     <?php printf(
7
-        esc_html__(
8
-            "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.",
9
-            "event_espresso"
10
-        ),
11
-        "<a href='" . admin_url('/plugins.php') . "'>",
12
-        "</a>"
13
-    ); ?></p>
7
+		esc_html__(
8
+			"Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.",
9
+			"event_espresso"
10
+		),
11
+		"<a href='" . admin_url('/plugins.php') . "'>",
12
+		"</a>"
13
+	); ?></p>
14 14
 <p>
15 15
     <?php esc_html_e(
16
-        "You can also deactivate the addons, but all of their data will be lost when your database is migrated",
17
-        "event_espresso"
18
-    ); ?></p>
19 16
\ No newline at end of file
17
+		"You can also deactivate the addons, but all of their data will be lost when your database is migrated",
18
+		"event_espresso"
19
+	); ?></p>
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
             "Please %s visit the plugins page%s and update all Event Espresso addon plugins before updating your database.",
9 9
             "event_espresso"
10 10
         ),
11
-        "<a href='" . admin_url('/plugins.php') . "'>",
11
+        "<a href='".admin_url('/plugins.php')."'>",
12 12
         "</a>"
13 13
     ); ?></p>
14 14
 <p>
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
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 <p>
68 68
     <?php printf(
69 69
         esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),
70
-        '<a href="mailto:' . EE_SUPPORT_EMAIL . '">',
70
+        '<a href="mailto:'.EE_SUPPORT_EMAIL.'">',
71 71
         EE_SUPPORT_EMAIL,
72 72
         "</a>"
73 73
     ); ?></p>
Please login to merge, or discard this patch.
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -3,19 +3,19 @@  discard block
 block discarded – undo
3 3
 ?>
4 4
 <h1><?php esc_html_e("Data Migration Error", "event_espresso"); ?></h1>
5 5
 <p class='error'><?php
6
-    printf(
7
-        esc_html__(
8
-            "Your last Database Update had a %s fatal error and was halted%s.",
9
-            "event_espresso"
10
-        ),
11
-        "<b>",
12
-        "</b>"
13
-    ); ?></p>
6
+	printf(
7
+		esc_html__(
8
+			"Your last Database Update had a %s fatal error and was halted%s.",
9
+			"event_espresso"
10
+		),
11
+		"<b>",
12
+		"</b>"
13
+	); ?></p>
14 14
 <a id="show-hide-migration-warnings" class="display-the-hidden"><?php
15
-    esc_html_e(
16
-        "Show Errors",
17
-        'event_espresso'
18
-    ); ?></a>
15
+	esc_html_e(
16
+		"Show Errors",
17
+		'event_espresso'
18
+	); ?></a>
19 19
 <ul class="migration-warnings" style="display:none">
20 20
     <?php foreach ($most_recent_migration->get_errors() as $error) { ?>
21 21
         <li style="overflow-y:auto;max-height:100px"><?php echo esc_html($error) ?></li>
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
 </ul>
24 24
 <h2>
25 25
     <?php esc_html_e(
26
-        "Fill out the below form to automatically Send Event Espresso a Crash Report",
27
-        "event_espresso"
28
-    ); ?></h2>
26
+		"Fill out the below form to automatically Send Event Espresso a Crash Report",
27
+		"event_espresso"
28
+	); ?></h2>
29 29
 <form action='<?php echo EE_Admin_Page::add_query_args_and_nonce(
30
-    array('action' => 'send_migration_crash_report'),
31
-    EE_MAINTENANCE_ADMIN_URL
30
+	array('action' => 'send_migration_crash_report'),
31
+	EE_MAINTENANCE_ADMIN_URL
32 32
 ); ?>' method='post'>
33 33
     <table class='widefat'>
34 34
         <tr>
@@ -39,46 +39,46 @@  discard block
 block discarded – undo
39 39
         <tr>
40 40
             <td><label for='from_name'><?php esc_html_e("Your Name", "event_espresso"); ?></label></td>
41 41
             <td><input name='from_name' id='from_name' type='text' style="width:200px" value='<?php
42
-                printf(
43
-                    esc_html__("Admin of %s", "event_espresso"),
44
-                    get_bloginfo('name', 'display')
45
-                ); ?>'></td>
42
+				printf(
43
+					esc_html__("Admin of %s", "event_espresso"),
44
+					get_bloginfo('name', 'display')
45
+				); ?>'></td>
46 46
         </tr>
47 47
         <tr>
48 48
             <td><label for='body'><?php esc_html_e("Comments", "event_espresso"); ?></label></td>
49 49
             <td><textarea name="body" id="body" class='system_status_info'>
50 50
                     <?php esc_html_e(
51
-                        "Enter any comments about why you think the error may have occurred",
52
-                        "event_espresso"
53
-                    ); ?></textarea>
51
+						"Enter any comments about why you think the error may have occurred",
52
+						"event_espresso"
53
+					); ?></textarea>
54 54
                 <p class='description'>
55 55
                     <?php esc_html_e(
56
-                        "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.",
57
-                        "event_espresso"
58
-                    ); ?></p></td>
56
+						"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.",
57
+						"event_espresso"
58
+					); ?></p></td>
59 59
         </tr>
60 60
         <tr>
61 61
             <td colspan="2"><input type="submit" value="<?php
62
-                esc_html_e(
63
-                    "Mail Crash Report to Event Espresso",
64
-                    "event_espresso"
65
-                ); ?>"/></td>
62
+				esc_html_e(
63
+					"Mail Crash Report to Event Espresso",
64
+					"event_espresso"
65
+				); ?>"/></td>
66 66
         </tr>
67 67
     </table>
68 68
 </form>
69 69
 <br>
70 70
 <p>
71 71
     <?php printf(
72
-        esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),
73
-        '<a href="mailto:' . EE_SUPPORT_EMAIL . '">',
74
-        EE_SUPPORT_EMAIL,
75
-        "</a>"
76
-    ); ?></p>
72
+		esc_html__('...or copy-and-paste the below information to %1$s %2$s %3$s', "event_espresso"),
73
+		'<a href="mailto:' . EE_SUPPORT_EMAIL . '">',
74
+		EE_SUPPORT_EMAIL,
75
+		"</a>"
76
+	); ?></p>
77 77
 <textarea class="system_status_info"><?php print_r(EEM_System_Status::instance()->get_system_stati()) ?></textarea>
78 78
 <p><?php printf(esc_html__('%1$sNext Step%2$s', 'event_espresso'), "<a href='$next_url'>", "</a>"); ?></p>
79 79
 <p>
80 80
     <?php printf(
81
-        esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'),
82
-        "<a href='$next_url'>",
83
-        "</a>"
84
-    ); ?></p>
81
+		esc_html__('...or %1$sDON\'T send crash report%2$s.', 'event_espresso'),
82
+		"<a href='$next_url'>",
83
+		"</a>"
84
+	); ?></p>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/migration_options_from_ee4.template.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -25,38 +25,38 @@  discard block
 block discarded – undo
25 25
             <tr>
26 26
                 <td>
27 27
                     <?php
28
-                    echo apply_filters(
29
-                        'FHEE__ee_migration_page__option_1_main',
30
-                        esc_html__(
31
-                            'Before updating your database, you should first create a database backup',
32
-                            "event_espresso"
33
-                        ),
34
-                        $current_db_state,
35
-                        $next_db_state
36
-                    );
37
-                    ?>
28
+					echo apply_filters(
29
+						'FHEE__ee_migration_page__option_1_main',
30
+						esc_html__(
31
+							'Before updating your database, you should first create a database backup',
32
+							"event_espresso"
33
+						),
34
+						$current_db_state,
35
+						$next_db_state
36
+					);
37
+					?>
38 38
                     <a id="display-migration-details"
39 39
                        class="display-the-hidden lt-grey-text smaller-text hide-if-no-js"
40 40
                        rel="migration-details">
41 41
                         <?php esc_html_e(
42
-                            'How Do I Make a Database Backup?',
43
-                            "event_espresso"
44
-                        ); ?>
42
+							'How Do I Make a Database Backup?',
43
+							"event_espresso"
44
+						); ?>
45 45
                         &nbsp;+</a>
46 46
                 </td>
47 47
                 <td>
48 48
                     <a id="db-backed-up"
49 49
                        class="toggle-migration-monitor button-primary">
50 50
                         <?php echo apply_filters(
51
-                            'FHEE__ee_migration_page__option_1_button_text',
52
-                            sprintf(
53
-                                esc_html__("My Database Is Backed Up, Continue", "event_espresso"),
54
-                                $current_db_state,
55
-                                $next_db_state
56
-                            ),
57
-                            $current_db_state,
58
-                            $next_db_state
59
-                        ); ?></a>
51
+							'FHEE__ee_migration_page__option_1_button_text',
52
+							sprintf(
53
+								esc_html__("My Database Is Backed Up, Continue", "event_espresso"),
54
+								$current_db_state,
55
+								$next_db_state
56
+							),
57
+							$current_db_state,
58
+							$next_db_state
59
+						); ?></a>
60 60
                 </td>
61 61
             </tr>
62 62
             <tr>
@@ -64,16 +64,16 @@  discard block
 block discarded – undo
64 64
                     <div id="migration-details-dv" style="display: none; padding: 1em;">
65 65
                         <p>
66 66
                             <?php
67
-                            printf(
68
-                                esc_html__(
69
-                                    '%1$sClick Here to Learn How To Backup your Database Yourself%2$s. Or have one of our dedicated support technicians help you by %3$spurchasing a Priority Support Token.%2$s',
70
-                                    "event_espresso"
71
-                                ),
72
-                                '<a target="_blank" href="http://eventespresso.com/wiki/how-to-back-up-your-site/">',
73
-                                "</a>",
74
-                                "<a target=\"_blank\" href='http://eventespresso.com/product/priority-support-tokens/'>"
75
-                            );
76
-                            ?>
67
+							printf(
68
+								esc_html__(
69
+									'%1$sClick Here to Learn How To Backup your Database Yourself%2$s. Or have one of our dedicated support technicians help you by %3$spurchasing a Priority Support Token.%2$s',
70
+									"event_espresso"
71
+								),
72
+								'<a target="_blank" href="http://eventespresso.com/wiki/how-to-back-up-your-site/">',
73
+								"</a>",
74
+								"<a target=\"_blank\" href='http://eventespresso.com/product/priority-support-tokens/'>"
75
+							);
76
+							?>
77 77
                         </p>
78 78
                         <?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?>
79 79
                     </div>
@@ -84,12 +84,12 @@  discard block
 block discarded – undo
84 84
     </div>
85 85
     <p>
86 86
         <?php esc_html_e(
87
-            'Don\'t want to keep your old Event Espresso data? Alternatively, you can delete it all and start fresh.',
88
-            'event_espresso'
89
-        ); ?> <a
87
+			'Don\'t want to keep your old Event Espresso data? Alternatively, you can delete it all and start fresh.',
88
+			'event_espresso'
89
+		); ?> <a
90 90
             href="<?php echo $data_reset_page; ?>"><?php esc_html_e(
91
-                'Visit the Maintenance Page and Reset Your Event Espresso Data',
92
-                'event_espresso'
93
-            ); ?></a></p>
91
+				'Visit the Maintenance Page and Reset Your Event Espresso Data',
92
+				'event_espresso'
93
+			); ?></a></p>
94 94
     <?php do_action('AHEE__ee_migration_page__after_migration_options_table'); ?>
95 95
 </div>
96 96
\ No newline at end of file
Please login to merge, or discard this patch.
admin_pages/transactions/qtips/Transaction_Details_Tips.lib.php 2 patches
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -15,80 +15,80 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    protected function _set_tips_array()
19
-    {
20
-        $this->_qtipsa = array(
21
-            0 => array(
22
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_approved,
23
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_approved,
24
-                'content'    => $this->_payment_status_legend(EEM_Payment::status_id_approved),
25
-                'options'    => array(
26
-                    'position' => array(
27
-                        'target' => 'mouse',
28
-                    ),
29
-                ),
30
-            ),
31
-            1 => array(
32
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_pending,
33
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_pending,
34
-                'content'    => $this->_payment_status_legend(EEM_Payment::status_id_pending),
35
-                'options'    => array(
36
-                    'position' => array(
37
-                        'target' => 'mouse',
38
-                    ),
39
-                ),
40
-            ),
41
-            2 => array(
42
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled,
43
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_cancelled,
44
-                'content'    => $this->_payment_status_legend(EEM_Payment::status_id_cancelled),
45
-                'options'    => array(
46
-                    'position' => array(
47
-                        'target' => 'mouse',
48
-                    ),
49
-                ),
50
-            ),
51
-            3 => array(
52
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_declined,
53
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_declined,
54
-                'content'    => $this->_payment_status_legend(EEM_Payment::status_id_declined),
55
-                'options'    => array(
56
-                    'position' => array(
57
-                        'target' => 'mouse',
58
-                    ),
59
-                ),
60
-            ),
61
-            4 => array(
62
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_failed,
63
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_failed,
64
-                'content'    => $this->_payment_status_legend(EEM_Payment::status_id_failed),
65
-                'options'    => array(
66
-                    'position' => array(
67
-                        'target' => 'mouse',
68
-                    ),
69
-                ),
70
-            ),
71
-        );
72
-    }
18
+	protected function _set_tips_array()
19
+	{
20
+		$this->_qtipsa = array(
21
+			0 => array(
22
+				'content_id' => 'payment-status-' . EEM_Payment::status_id_approved,
23
+				'target'     => '.pymt-status-' . EEM_Payment::status_id_approved,
24
+				'content'    => $this->_payment_status_legend(EEM_Payment::status_id_approved),
25
+				'options'    => array(
26
+					'position' => array(
27
+						'target' => 'mouse',
28
+					),
29
+				),
30
+			),
31
+			1 => array(
32
+				'content_id' => 'payment-status-' . EEM_Payment::status_id_pending,
33
+				'target'     => '.pymt-status-' . EEM_Payment::status_id_pending,
34
+				'content'    => $this->_payment_status_legend(EEM_Payment::status_id_pending),
35
+				'options'    => array(
36
+					'position' => array(
37
+						'target' => 'mouse',
38
+					),
39
+				),
40
+			),
41
+			2 => array(
42
+				'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled,
43
+				'target'     => '.pymt-status-' . EEM_Payment::status_id_cancelled,
44
+				'content'    => $this->_payment_status_legend(EEM_Payment::status_id_cancelled),
45
+				'options'    => array(
46
+					'position' => array(
47
+						'target' => 'mouse',
48
+					),
49
+				),
50
+			),
51
+			3 => array(
52
+				'content_id' => 'payment-status-' . EEM_Payment::status_id_declined,
53
+				'target'     => '.pymt-status-' . EEM_Payment::status_id_declined,
54
+				'content'    => $this->_payment_status_legend(EEM_Payment::status_id_declined),
55
+				'options'    => array(
56
+					'position' => array(
57
+						'target' => 'mouse',
58
+					),
59
+				),
60
+			),
61
+			4 => array(
62
+				'content_id' => 'payment-status-' . EEM_Payment::status_id_failed,
63
+				'target'     => '.pymt-status-' . EEM_Payment::status_id_failed,
64
+				'content'    => $this->_payment_status_legend(EEM_Payment::status_id_failed),
65
+				'options'    => array(
66
+					'position' => array(
67
+						'target' => 'mouse',
68
+					),
69
+				),
70
+			),
71
+		);
72
+	}
73 73
 
74 74
 
75
-    /**
76
-     * output the relevant ee-status-legend with the designated status highlighted.
77
-     *
78
-     * @param  EEM_Payment constant $status What status is set (by class)
79
-     * @return string         The status legend with the related status highlighted
80
-     */
81
-    private function _payment_status_legend($status)
82
-    {
75
+	/**
76
+	 * output the relevant ee-status-legend with the designated status highlighted.
77
+	 *
78
+	 * @param  EEM_Payment constant $status What status is set (by class)
79
+	 * @return string         The status legend with the related status highlighted
80
+	 */
81
+	private function _payment_status_legend($status)
82
+	{
83 83
 
84
-        $status_array = array(
85
-            'approved'  => EEM_Payment::status_id_approved,
86
-            'pending'   => EEM_Payment::status_id_pending,
87
-            'cancelled' => EEM_Payment::status_id_cancelled,
88
-            'declined'  => EEM_Payment::status_id_declined,
89
-            'failed'    => EEM_Payment::status_id_failed,
90
-        );
84
+		$status_array = array(
85
+			'approved'  => EEM_Payment::status_id_approved,
86
+			'pending'   => EEM_Payment::status_id_pending,
87
+			'cancelled' => EEM_Payment::status_id_cancelled,
88
+			'declined'  => EEM_Payment::status_id_declined,
89
+			'failed'    => EEM_Payment::status_id_failed,
90
+		);
91 91
 
92
-        return EEH_Template::status_legend($status_array, $status);
93
-    }
92
+		return EEH_Template::status_legend($status_array, $status);
93
+	}
94 94
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
     {
20 20
         $this->_qtipsa = array(
21 21
             0 => array(
22
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_approved,
23
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_approved,
22
+                'content_id' => 'payment-status-'.EEM_Payment::status_id_approved,
23
+                'target'     => '.pymt-status-'.EEM_Payment::status_id_approved,
24 24
                 'content'    => $this->_payment_status_legend(EEM_Payment::status_id_approved),
25 25
                 'options'    => array(
26 26
                     'position' => array(
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
                 ),
30 30
             ),
31 31
             1 => array(
32
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_pending,
33
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_pending,
32
+                'content_id' => 'payment-status-'.EEM_Payment::status_id_pending,
33
+                'target'     => '.pymt-status-'.EEM_Payment::status_id_pending,
34 34
                 'content'    => $this->_payment_status_legend(EEM_Payment::status_id_pending),
35 35
                 'options'    => array(
36 36
                     'position' => array(
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
                 ),
40 40
             ),
41 41
             2 => array(
42
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_cancelled,
43
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_cancelled,
42
+                'content_id' => 'payment-status-'.EEM_Payment::status_id_cancelled,
43
+                'target'     => '.pymt-status-'.EEM_Payment::status_id_cancelled,
44 44
                 'content'    => $this->_payment_status_legend(EEM_Payment::status_id_cancelled),
45 45
                 'options'    => array(
46 46
                     'position' => array(
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
                 ),
50 50
             ),
51 51
             3 => array(
52
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_declined,
53
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_declined,
52
+                'content_id' => 'payment-status-'.EEM_Payment::status_id_declined,
53
+                'target'     => '.pymt-status-'.EEM_Payment::status_id_declined,
54 54
                 'content'    => $this->_payment_status_legend(EEM_Payment::status_id_declined),
55 55
                 'options'    => array(
56 56
                     'position' => array(
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
                 ),
60 60
             ),
61 61
             4 => array(
62
-                'content_id' => 'payment-status-' . EEM_Payment::status_id_failed,
63
-                'target'     => '.pymt-status-' . EEM_Payment::status_id_failed,
62
+                'content_id' => 'payment-status-'.EEM_Payment::status_id_failed,
63
+                'target'     => '.pymt-status-'.EEM_Payment::status_id_failed,
64 64
                 'content'    => $this->_payment_status_legend(EEM_Payment::status_id_failed),
65 65
                 'options'    => array(
66 66
                     'position' => array(
Please login to merge, or discard this patch.
admin_pages/transactions/qtips/Transactions_List_Table_Tips.lib.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -15,69 +15,69 @@
 block discarded – undo
15 15
 {
16 16
 
17 17
 
18
-    protected function _set_tips_array()
19
-    {
20
-        $this->_qtipsa = array(
21
-            // 0 => array(
22
-            //     'content_id' => 'transaction-status-' . EEM_Transaction::overpaid_status_code,
23
-            //     'target'     => '.txn-status-' . EEM_Transaction::overpaid_status_code,
24
-            //     'content'    => $this->_transaction_status_legend(EEM_Transaction::overpaid_status_code),
25
-            //     'options'    => array(
26
-            //         'position' => array(
27
-            //             'target' => 'mouse',
28
-            //         ),
29
-            //     ),
30
-            // ),
31
-            // 1 => array(
32
-            //     'content_id' => 'transaction-status-' . EEM_Transaction::complete_status_code,
33
-            //     'target'     => '.txn-status-' . EEM_Transaction::complete_status_code,
34
-            //     'content'    => $this->_transaction_status_legend(EEM_Transaction::complete_status_code),
35
-            //     'options'    => array(
36
-            //         'position' => array(
37
-            //             'target' => 'mouse',
38
-            //         ),
39
-            //     ),
40
-            // ),
41
-            // 2 => array(
42
-            //     'content_id' => 'transaction-status-' . EEM_Transaction::incomplete_status_code,
43
-            //     'target'     => '.txn-status-' . EEM_Transaction::incomplete_status_code,
44
-            //     'content'    => $this->_transaction_status_legend(EEM_Transaction::incomplete_status_code),
45
-            //     'options'    => array(
46
-            //         'position' => array(
47
-            //             'target' => 'mouse',
48
-            //         ),
49
-            //     ),
50
-            // ),
51
-            // 3 => array(
52
-            //     'content_id' => 'transaction-status-' . EEM_Transaction::failed_status_code,
53
-            //     'target'     => '.txn-status-' . EEM_Transaction::failed_status_code,
54
-            //     'content'    => $this->_transaction_status_legend(EEM_Transaction::failed_status_code),
55
-            //     'options'    => array(
56
-            //         'position' => array(
57
-            //             'target' => 'mouse',
58
-            //         ),
59
-            //     ),
60
-            // )
61
-        );
62
-    }
18
+	protected function _set_tips_array()
19
+	{
20
+		$this->_qtipsa = array(
21
+			// 0 => array(
22
+			//     'content_id' => 'transaction-status-' . EEM_Transaction::overpaid_status_code,
23
+			//     'target'     => '.txn-status-' . EEM_Transaction::overpaid_status_code,
24
+			//     'content'    => $this->_transaction_status_legend(EEM_Transaction::overpaid_status_code),
25
+			//     'options'    => array(
26
+			//         'position' => array(
27
+			//             'target' => 'mouse',
28
+			//         ),
29
+			//     ),
30
+			// ),
31
+			// 1 => array(
32
+			//     'content_id' => 'transaction-status-' . EEM_Transaction::complete_status_code,
33
+			//     'target'     => '.txn-status-' . EEM_Transaction::complete_status_code,
34
+			//     'content'    => $this->_transaction_status_legend(EEM_Transaction::complete_status_code),
35
+			//     'options'    => array(
36
+			//         'position' => array(
37
+			//             'target' => 'mouse',
38
+			//         ),
39
+			//     ),
40
+			// ),
41
+			// 2 => array(
42
+			//     'content_id' => 'transaction-status-' . EEM_Transaction::incomplete_status_code,
43
+			//     'target'     => '.txn-status-' . EEM_Transaction::incomplete_status_code,
44
+			//     'content'    => $this->_transaction_status_legend(EEM_Transaction::incomplete_status_code),
45
+			//     'options'    => array(
46
+			//         'position' => array(
47
+			//             'target' => 'mouse',
48
+			//         ),
49
+			//     ),
50
+			// ),
51
+			// 3 => array(
52
+			//     'content_id' => 'transaction-status-' . EEM_Transaction::failed_status_code,
53
+			//     'target'     => '.txn-status-' . EEM_Transaction::failed_status_code,
54
+			//     'content'    => $this->_transaction_status_legend(EEM_Transaction::failed_status_code),
55
+			//     'options'    => array(
56
+			//         'position' => array(
57
+			//             'target' => 'mouse',
58
+			//         ),
59
+			//     ),
60
+			// )
61
+		);
62
+	}
63 63
 
64 64
 
65
-    /**
66
-     * output the relevant ee-status-legend with the designated status highlighted.
67
-     *
68
-     * @param  EEM_Transaction constant $status What status is set (by class)
69
-     * @return string         The status legend with the related status highlighted
70
-     */
71
-    private function _transaction_status_legend($status)
72
-    {
65
+	/**
66
+	 * output the relevant ee-status-legend with the designated status highlighted.
67
+	 *
68
+	 * @param  EEM_Transaction constant $status What status is set (by class)
69
+	 * @return string         The status legend with the related status highlighted
70
+	 */
71
+	private function _transaction_status_legend($status)
72
+	{
73 73
 
74
-        $status_array = array(
75
-            'overpaid'   => EEM_Transaction::overpaid_status_code,
76
-            'complete'   => EEM_Transaction::complete_status_code,
77
-            'incomplete' => EEM_Transaction::incomplete_status_code,
78
-            'failed'     => EEM_Transaction::failed_status_code,
79
-        );
74
+		$status_array = array(
75
+			'overpaid'   => EEM_Transaction::overpaid_status_code,
76
+			'complete'   => EEM_Transaction::complete_status_code,
77
+			'incomplete' => EEM_Transaction::incomplete_status_code,
78
+			'failed'     => EEM_Transaction::failed_status_code,
79
+		);
80 80
 
81
-        return EEH_Template::status_legend($status_array, $status);
82
-    }
81
+		return EEH_Template::status_legend($status_array, $status);
82
+	}
83 83
 }
Please login to merge, or discard this patch.
templates/txn_admin_details_main_meta_box_txn_details.template.php 3 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
                 <?php if ($payments) : ?>
90 90
                     <?php $payment_total = 0; ?>
91 91
                     <?php foreach ($payments as $PAY_ID => $payment) :
92
-                        $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ])
93
-                            ? wp_json_encode($existing_reg_payments[ $PAY_ID ])
92
+                        $existing_reg_payment_json = isset($existing_reg_payments[$PAY_ID])
93
+                            ? wp_json_encode($existing_reg_payments[$PAY_ID])
94 94
                             : '{}';
95 95
                         ?>
96 96
                         <tr id="txn-admin-payment-tr-<?php echo $PAY_ID; ?>">
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                             </td>
166 166
                             <td class=" jst-rght">
167 167
                                 <?php $payment_class = $payment->amount() > 0
168
-                                    ? 'txn-admin-payment-status-' . $payment->STS_ID()
168
+                                    ? 'txn-admin-payment-status-'.$payment->STS_ID()
169 169
                                     : 'txn-admin-payment-status-PDC'; ?>
170 170
                                 <span class="<?php echo $payment_class; ?>">
171 171
                                 <div id="payment-amount-<?php echo $PAY_ID; ?>" style="display:inline;">
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                     <?php
185 185
                     $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : '';
186 186
                     $overpaid = $payment_total > $grand_raw_total
187
-                        ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso')
187
+                        ? '<span id="overpaid">'.esc_html__('This transaction has been overpaid ! ', 'event_espresso')
188 188
                           . '</span>'
189 189
                         : '';
190 190
                     ?>
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                                                    'Payments Total %s',
204 204
                                                    'event_espresso'
205 205
                                                ),
206
-                                               '(' . EE_Registry::instance()->CFG->currency->code . ')'
206
+                                               '('.EE_Registry::instance()->CFG->currency->code.')'
207 207
                                            ); ?></span></th>
208 208
                         <th class=" jst-rght"><span
209 209
                                 id="txn-admin-payment-total">
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
             <h2 id="admin-modal-dialog-apply-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon"
325 325
                 style="display:none;">
326 326
                 <div class="ee-icon ee-icon-cash-add float-left"></div>
327
-                <?php echo esc_html__('Apply a Payment to Transaction #', 'event_espresso') . $txn_nmbr['value']; ?>
327
+                <?php echo esc_html__('Apply a Payment to Transaction #', 'event_espresso').$txn_nmbr['value']; ?>
328 328
             </h2>
329 329
 
330 330
             <h2 id="admin-modal-dialog-edit-payment-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon"
354 354
                 style="display:none;">
355 355
                 <div class="ee-icon ee-icon-cash-remove float-left"></div>
356
-                <?php echo esc_html__('Apply a Refund to Transaction #', 'event_espresso') . $txn_nmbr['value']; ?>
356
+                <?php echo esc_html__('Apply a Refund to Transaction #', 'event_espresso').$txn_nmbr['value']; ?>
357 357
             </h2>
358 358
 
359 359
             <form name="txn-admin-apply-payment-frm" id="txn-admin-apply-payment-frm"
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
                 <?php echo esc_html__(
667 667
                     'Delete Payment/Refund for Transaction #',
668 668
                     'event_espresso'
669
-                ) . $txn_nmbr['value']; ?>
669
+                ).$txn_nmbr['value']; ?>
670 670
             </h2>
671 671
 
672 672
             <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm"
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
     <?php
746 746
     if (WP_DEBUG) {
747 747
         $delivered_messages = get_option('EED_Messages__payment', array());
748
-        if (isset($delivered_messages[ $TXN_ID ])) {
748
+        if (isset($delivered_messages[$TXN_ID])) {
749 749
             ?>
750 750
             <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span
751 751
                     class="dashicons dashicons-email-alt"></span>
@@ -765,12 +765,12 @@  discard block
 block discarded – undo
765 765
                     </tr>
766 766
                     </thead>
767 767
                     <tbody>
768
-                    <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) :
768
+                    <?php foreach ($delivered_messages[$TXN_ID] as $timestamp => $delivered_message) :
769 769
                         ?>
770 770
                         <tr>
771 771
                             <td class="jst-left">
772 772
                                 <?php echo date(
773
-                                    get_option('date_format') . ' ' . get_option('time_format'),
773
+                                    get_option('date_format').' '.get_option('time_format'),
774 774
                                     ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
775 775
                                 ); ?></td>
776 776
                             <td class="jst-left"><?php echo isset($delivered_message['message_type'])
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -210,10 +210,13 @@  discard block
 block discarded – undo
210 210
                                     false
211 211
                                 ); ?></span></th>
212 212
                     </tr>
213
-                <?php else : ?>
213
+                <?php else {
214
+	: ?>
214 215
                     <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr">
215 216
                         <td class=" jst-rght" colspan="10">
216
-                            <span class="important-notice"><?php echo $no_payment_text; ?></span>
217
+                            <span class="important-notice"><?php echo $no_payment_text;
218
+}
219
+?></span>
217 220
                         </td>
218 221
                     </tr>
219 222
                     <tr id="txn-admin-payments-total-tr" class="admin-primary-mbox-total-tr hidden">
@@ -302,13 +305,16 @@  discard block
 block discarded – undo
302 305
                         <?php esc_html_e('Apply Refund', 'event_espresso'); ?>
303 306
                     </a>
304 307
                 </li>
305
-            <?php else : ?>
308
+            <?php else {
309
+	: ?>
306 310
                 <li>
307 311
                     <p>
308 312
                         <?php esc_html__(
309 313
                             'You do not have access to apply payments or refunds.',
310 314
                             'event_espresso'
311
-                        ); ?></p>
315
+                        );
316
+}
317
+?></p>
312 318
                 </li>
313 319
             <?php endif; ?>
314 320
             <?php
Please login to merge, or discard this patch.
Indentation   +193 added lines, -193 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
     <a id="display-additional-transaction-session-info" class="display-the-hidden smaller-text"
44 44
        rel="additional-transaction-session-info">
45 45
         <span class="dashicons dashicons-plus-alt"></span><?php esc_html_e(
46
-            'view additional transaction session details',
47
-            'event_espresso'
48
-        ); ?>
46
+			'view additional transaction session details',
47
+			'event_espresso'
48
+		); ?>
49 49
     </a>
50 50
 
51 51
     <div id="additional-transaction-session-info-dv" class="hidden">
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
         <a id="hide-additional-transaction-session-info" class="hide-the-displayed hidden smaller-text"
54 54
            rel="additional-transaction-session-info">
55 55
             <span class="dashicons dashicons-dismiss"></span><?php esc_html_e(
56
-                'hide additional transaction session details',
57
-                'event_espresso'
58
-            ); ?>
56
+				'hide additional transaction session details',
57
+				'event_espresso'
58
+			); ?>
59 59
         </a>
60 60
         <br class="clear"/>
61 61
 
@@ -80,16 +80,16 @@  discard block
 block discarded – undo
80 80
 
81 81
 
82 82
     <?php if ($attendee instanceof EE_Attendee && ($grand_raw_total > 0 || $TXN_status !== EEM_Transaction::complete_status_code || ! empty($payments))) :
83
-        $no_payment_text = $can_edit_payments
84
-            ? esc_html__(
85
-                'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.',
86
-                'event_espresso'
87
-            )
88
-            : esc_html__(
89
-                'No payments have been applied to this transaction yet.',
90
-                'event_espresso'
91
-            );
92
-        ?>
83
+		$no_payment_text = $can_edit_payments
84
+			? esc_html__(
85
+				'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.',
86
+				'event_espresso'
87
+			)
88
+			: esc_html__(
89
+				'No payments have been applied to this transaction yet.',
90
+				'event_espresso'
91
+			);
92
+		?>
93 93
 
94 94
         <h3 class="admin-primary-mbox-h4 hdr-has-icon">
95 95
             <span class="ee-icon ee-icon-cash"></span><?php esc_html_e('Payment Details', 'event_espresso'); ?>
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
                 <?php if ($payments) : ?>
117 117
                     <?php $payment_total = 0; ?>
118 118
                     <?php foreach ($payments as $PAY_ID => $payment) :
119
-                        $existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ])
120
-                            ? wp_json_encode($existing_reg_payments[ $PAY_ID ])
121
-                            : '{}';
122
-                        ?>
119
+						$existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ])
120
+							? wp_json_encode($existing_reg_payments[ $PAY_ID ])
121
+							: '{}';
122
+						?>
123 123
                         <tr id="txn-admin-payment-tr-<?php echo $PAY_ID; ?>">
124 124
                             <td>
125 125
                                 <span id="payment-status-<?php echo $PAY_ID; ?>"
@@ -164,16 +164,16 @@  discard block
 block discarded – undo
164 164
                                 </div>
165 165
                                 <div id="payment-gateway-<?php echo $PAY_ID; ?>">
166 166
                                     <?php echo $payment->payment_method()
167
-                                        ? $payment->payment_method()->admin_name()
168
-                                        : esc_html__(
169
-                                            "Unknown",
170
-                                            'event_espresso'
171
-                                        ); ?>
167
+										? $payment->payment_method()->admin_name()
168
+										: esc_html__(
169
+											"Unknown",
170
+											'event_espresso'
171
+										); ?>
172 172
                                 </div>
173 173
                                 <div id="payment-gateway-id-<?php echo $PAY_ID; ?>"
174 174
                                      class="hidden"><?php echo $payment->payment_method()
175
-                                        ? $payment->payment_method()->ID()
176
-                                        : 0; ?></div>
175
+										? $payment->payment_method()->ID()
176
+										: 0; ?></div>
177 177
                             </td>
178 178
                             <td class=" jst-left">
179 179
                                 <div id="payment-response-<?php echo $PAY_ID; ?>"><?php echo $payment->gateway_response(); ?></div>
@@ -190,29 +190,29 @@  discard block
 block discarded – undo
190 190
                             </td>
191 191
                             <td class=" jst-rght">
192 192
                                 <?php $payment_class = $payment->amount() > 0
193
-                                    ? 'txn-admin-payment-status-' . $payment->STS_ID()
194
-                                    : 'txn-admin-payment-status-PDC'; ?>
193
+									? 'txn-admin-payment-status-' . $payment->STS_ID()
194
+									: 'txn-admin-payment-status-PDC'; ?>
195 195
                                 <span class="<?php echo $payment_class; ?>">
196 196
                                 <div id="payment-amount-<?php echo $PAY_ID; ?>" style="display:inline;">
197 197
                                 <?php echo EEH_Template::format_currency(
198
-                                    $payment->amount(),
199
-                                    false,
200
-                                    false
201
-                                ); ?></div>
198
+									$payment->amount(),
199
+									false,
200
+									false
201
+								); ?></div>
202 202
                             </span>
203 203
                             </td>
204 204
                         </tr>
205 205
                         <?php
206
-                        $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0;
207
-                        ?>
206
+						$payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0;
207
+						?>
208 208
                     <?php endforeach; // $payment?>
209 209
                     <?php
210
-                    $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : '';
211
-                    $overpaid = $payment_total > $grand_raw_total
212
-                        ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso')
213
-                          . '</span>'
214
-                        : '';
215
-                    ?>
210
+					$pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : '';
211
+					$overpaid = $payment_total > $grand_raw_total
212
+						? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso')
213
+						  . '</span>'
214
+						: '';
215
+					?>
216 216
                     <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr hidden">
217 217
                         <td class=" jst-rght" colspan="10">
218 218
                             <span class="important-notice"><?php echo $no_payment_text; ?></span>
@@ -223,20 +223,20 @@  discard block
 block discarded – undo
223 223
                         <th class=" jst-rght" colspan="9"><span
224 224
                                 id="payments-total-spn">
225 225
                                 <?php echo $overpaid
226
-                                           . sprintf(
227
-                                               esc_html__(
228
-                                                   'Payments Total %s',
229
-                                                   'event_espresso'
230
-                                               ),
231
-                                               '(' . EE_Registry::instance()->CFG->currency->code . ')'
232
-                                           ); ?></span></th>
226
+										   . sprintf(
227
+											   esc_html__(
228
+												   'Payments Total %s',
229
+												   'event_espresso'
230
+											   ),
231
+											   '(' . EE_Registry::instance()->CFG->currency->code . ')'
232
+										   ); ?></span></th>
233 233
                         <th class=" jst-rght"><span
234 234
                                 id="txn-admin-payment-total">
235 235
                                 <?php echo EEH_Template::format_currency(
236
-                                    $payment_total,
237
-                                    false,
238
-                                    false
239
-                                ); ?></span></th>
236
+									$payment_total,
237
+									false,
238
+									false
239
+								); ?></span></th>
240 240
                     </tr>
241 241
                 <?php else : ?>
242 242
                     <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr">
@@ -248,13 +248,13 @@  discard block
 block discarded – undo
248 248
                         <th class=" jst-rght" colspan="9"><span
249 249
                                 id="payments-total-spn">
250 250
                                 <?php echo esc_html__(
251
-                                    'Payments Total',
252
-                                    'event_espresso'
253
-                                ); ?></span></th>
251
+									'Payments Total',
252
+									'event_espresso'
253
+								); ?></span></th>
254 254
                         <th class=" jst-rght"><span id="txn-admin-payment-total"></span></th>
255 255
                     </tr>
256 256
                 <?php endif; // $payments
257
-                ?>
257
+				?>
258 258
 
259 259
                 <tr id="txn-admin-payment-empty-row-tr" class="hidden">
260 260
                     <td>
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
         <ul id="txn-admin-payment-options-ul">
319 319
             <?php if ($can_edit_payments) :
320
-                ?>
320
+				?>
321 321
                 <li>
322 322
                     <a id="display-txn-admin-apply-payment" class="button-primary no-icon no-hide"
323 323
                        rel="txn-admin-apply-payment"> <!--display-the-hidden -->
@@ -334,18 +334,18 @@  discard block
 block discarded – undo
334 334
                 <li>
335 335
                     <p>
336 336
                         <?php esc_html__(
337
-                            'You do not have access to apply payments or refunds.',
338
-                            'event_espresso'
339
-                        ); ?></p>
337
+							'You do not have access to apply payments or refunds.',
338
+							'event_espresso'
339
+						); ?></p>
340 340
                 </li>
341 341
             <?php endif; ?>
342 342
             <?php
343
-                // Allows extend the fields at actions area.
344
-                do_action(
345
-                    'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons',
346
-                    $can_edit_payments
347
-                );
348
-            ?>
343
+				// Allows extend the fields at actions area.
344
+				do_action(
345
+					'AHEE__txn_admin_details_main_meta_box_txn_details__after_actions_buttons',
346
+					$can_edit_payments
347
+				);
348
+			?>
349 349
         </ul>
350 350
         <br class="clear"/>
351 351
 
@@ -361,23 +361,23 @@  discard block
 block discarded – undo
361 361
                 style="display:none;">
362 362
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
363 363
                 <?php
364
-                echo sprintf(
365
-                    __('Edit Payment #%s for Transaction #%s', 'event_espresso'),
366
-                    '<span></span>',
367
-                    $txn_nmbr['value']
368
-                );
369
-                ?>
364
+				echo sprintf(
365
+					__('Edit Payment #%s for Transaction #%s', 'event_espresso'),
366
+					'<span></span>',
367
+					$txn_nmbr['value']
368
+				);
369
+				?>
370 370
             </h2>
371 371
 
372 372
             <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;">
373 373
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
374 374
                 <?php
375
-                echo sprintf(
376
-                    __('Edit Refund #%s for Transaction #%s', 'event_espresso'),
377
-                    '<span></span>',
378
-                    $txn_nmbr['value']
379
-                );
380
-                ?>
375
+				echo sprintf(
376
+					__('Edit Refund #%s for Transaction #%s', 'event_espresso'),
377
+					'<span></span>',
378
+					$txn_nmbr['value']
379
+				);
380
+				?>
381 381
             </h2>
382 382
 
383 383
             <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -411,55 +411,55 @@  discard block
 block discarded – undo
411 411
                         <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row">
412 412
                             <div class="validation-notice-dv">
413 413
                                 <?php esc_html_e(
414
-                                    'The following is  a required field',
415
-                                    'event_espresso'
416
-                                ); ?></div>
414
+									'The following is  a required field',
415
+									'event_espresso'
416
+								); ?></div>
417 417
                             <label for="txn-admin-payment-date-inp" class="">
418 418
                                 <?php esc_html_e(
419
-                                    'Payment Date',
420
-                                    'event_espresso'
421
-                                ); ?></label>
419
+									'Payment Date',
420
+									'event_espresso'
421
+								); ?></label>
422 422
                             <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp"
423 423
                                    class="txn-admin-apply-payment-inp required" type="text"
424 424
                                    value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/>
425 425
                             <p class="description">
426 426
                                 <?php esc_html_e(
427
-                                    'The date the payment was actually made on',
428
-                                    'event_espresso'
429
-                                ); ?></p>
427
+									'The date the payment was actually made on',
428
+									'event_espresso'
429
+								); ?></p>
430 430
                         </div>
431 431
 
432 432
                         <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row">
433 433
                             <div class="validation-notice-dv">
434 434
                                 <?php esc_html_e(
435
-                                    'The following is  a required field',
436
-                                    'event_espresso'
437
-                                ); ?></div>
435
+									'The following is  a required field',
436
+									'event_espresso'
437
+								); ?></div>
438 438
                             <label for="txn-admin-payment-amount-inp" class="">
439 439
                                 <?php esc_html_e(
440
-                                    'Amount',
441
-                                    'event_espresso'
442
-                                ); ?></label>
440
+									'Amount',
441
+									'event_espresso'
442
+								); ?></label>
443 443
                             <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp"
444 444
                                    class="txn-admin-apply-payment-inp required" type="text" value=""/>
445 445
                             <p class="description">
446 446
                                 <?php esc_html_e(
447
-                                    'The amount of the payment',
448
-                                    'event_espresso'
449
-                                ); ?></p>
447
+									'The amount of the payment',
448
+									'event_espresso'
449
+								); ?></p>
450 450
                         </div>
451 451
 
452 452
                         <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row">
453 453
                             <div class="validation-notice-dv">
454 454
                                 <?php esc_html_e(
455
-                                    'The following is  a required field',
456
-                                    'event_espresso'
457
-                                ); ?></div>
455
+									'The following is  a required field',
456
+									'event_espresso'
457
+								); ?></div>
458 458
                             <label for="txn-admin-payment-method-inp" class="">
459 459
                                 <?php esc_html_e(
460
-                                    'Method of Payment',
461
-                                    'event_espresso'
462
-                                ); ?></label>
460
+									'Method of Payment',
461
+									'event_espresso'
462
+								); ?></label>
463 463
                             <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct"
464 464
                                     class="txn-admin-apply-payment-slct required" type="text">
465 465
                                 <?php foreach ($payment_methods as $method) : ?>
@@ -467,39 +467,39 @@  discard block
 block discarded – undo
467 467
                                     <option id="payment-method-opt-<?php echo $method->slug(); ?>"
468 468
                                             value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>>
469 469
                                         <?php echo sanitize_key(
470
-                                            $method->admin_desc()
471
-                                        )
472
-                                            ? substr(
473
-                                                $method->admin_desc(),
474
-                                                0,
475
-                                                128
476
-                                            )
477
-                                            : $method->admin_name(); ?>&nbsp;&nbsp;
470
+											$method->admin_desc()
471
+										)
472
+											? substr(
473
+												$method->admin_desc(),
474
+												0,
475
+												128
476
+											)
477
+											: $method->admin_name(); ?>&nbsp;&nbsp;
478 478
                                     </option>
479 479
                                 <?php endforeach; ?>
480 480
                             </select>
481 481
                             <p class="description">
482 482
                                 <?php esc_html_e(
483
-                                    'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
484
-                                    'event_espresso'
485
-                                ); ?></p>
483
+									'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
484
+									'event_espresso'
485
+								); ?></p>
486 486
                         </div>
487 487
 
488 488
                         <div class="mop-PP mop-CC mop-CHQ mop">
489 489
                             <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row">
490 490
                                 <label for="txn-admin-payment-txn-id-inp" class="">
491 491
                                     <?php esc_html_e(
492
-                                        'TXN ID / CHQ #',
493
-                                        'event_espresso'
494
-                                    ); ?></label>
492
+										'TXN ID / CHQ #',
493
+										'event_espresso'
494
+									); ?></label>
495 495
                                 <input name="txn_admin_payment[txn_id_chq_nmbr]"
496 496
                                        id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp"
497 497
                                        type="text" maxlength="100"/>
498 498
                                 <p class="description">
499 499
                                     <?php esc_html_e(
500
-                                        'The Transaction ID sent back from the payment gateway, or the Cheque #',
501
-                                        'event_espresso'
502
-                                    ); ?></p>
500
+										'The Transaction ID sent back from the payment gateway, or the Cheque #',
501
+										'event_espresso'
502
+									); ?></p>
503 503
                             </div>
504 504
                         </div>
505 505
 
@@ -512,9 +512,9 @@  discard block
 block discarded – undo
512 512
                                        type="text"/>
513 513
                                 <p class="description">
514 514
                                     <?php esc_html_e(
515
-                                        'The gateway response string (optional)',
516
-                                        'event_espresso'
517
-                                    ); ?></p>
515
+										'The gateway response string (optional)',
516
+										'event_espresso'
517
+									); ?></p>
518 518
                             </div>
519 519
                         </div>
520 520
 
@@ -522,9 +522,9 @@  discard block
 block discarded – undo
522 522
                             <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row">
523 523
                                 <label for="txn-admin-payment-status-inp" class="">
524 524
                                     <?php esc_html_e(
525
-                                        'Payment Status',
526
-                                        'event_espresso'
527
-                                    ); ?></label>
525
+										'Payment Status',
526
+										'event_espresso'
527
+									); ?></label>
528 528
                                 <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct"
529 529
                                         class="txn-admin-apply-payment-slct" type="text">
530 530
                                     <?php foreach ($payment_status as $STS_ID => $STS_code) : ?>
@@ -537,52 +537,52 @@  discard block
 block discarded – undo
537 537
                                 </select>
538 538
                                 <p class="description">
539 539
                                     <?php esc_html_e(
540
-                                        'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
541
-                                        'event_espresso'
542
-                                    ); ?></p>
540
+										'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
541
+										'event_espresso'
542
+									); ?></p>
543 543
                             </div>
544 544
                         </div>
545 545
 
546 546
                         <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row">
547 547
                             <label for="txn-admin-payment-po-nmbr-inp" class="">
548 548
                                 <?php esc_html_e(
549
-                                    'P.O. / S.O. #',
550
-                                    'event_espresso'
551
-                                ); ?></label>
549
+									'P.O. / S.O. #',
550
+									'event_espresso'
551
+								); ?></label>
552 552
                             <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp"
553 553
                                    class="txn-admin-apply-payment-inp" type="text" maxlength="100"/>
554 554
                             <p class="description">
555 555
                                 <?php esc_html_e(
556
-                                    'The Purchase or Sales Order Number if any (optional)',
557
-                                    'event_espresso'
558
-                                ); ?></p>
556
+									'The Purchase or Sales Order Number if any (optional)',
557
+									'event_espresso'
558
+								); ?></p>
559 559
                         </div>
560 560
 
561 561
                         <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
562 562
                             <label for="txn-admin-payment-accounting-inp"
563 563
                                    class="last">
564 564
                                 <?php esc_html_e(
565
-                                    'Notes / Extra Accounting',
566
-                                    'event_espresso'
567
-                                ); ?></label>
565
+									'Notes / Extra Accounting',
566
+									'event_espresso'
567
+								); ?></label>
568 568
                             <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp"
569 569
                                    class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>"
570 570
                                    maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp"
571 571
                                                             value="<?php echo $REG_code; ?>"/>
572 572
                             <p class="description">
573 573
                                 <?php esc_html_e(
574
-                                    'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
575
-                                    'event_espresso'
576
-                                ); ?></p>
574
+									'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
575
+									'event_espresso'
576
+								); ?></p>
577 577
                         </div>
578 578
 
579 579
                         <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row">
580 580
                             <label for="txn-admin-payment-registrations-inp"
581 581
                                    class="last">
582 582
                                 <?php esc_html_e(
583
-                                    'Registrations to Apply Payment to:',
584
-                                    'event_espresso'
585
-                                ); ?></label>
583
+									'Registrations to Apply Payment to:',
584
+									'event_espresso'
585
+								); ?></label>
586 586
                             <label class="txn-admin-apply-payment-to-registrations-lbl">
587 587
                                 <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp"
588 588
                                        name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/>
@@ -600,15 +600,15 @@  discard block
 block discarded – undo
600 600
                             <label for="txn-admin-payment-reg-status-inp"
601 601
                                    class="last">
602 602
                                 <?php esc_html_e(
603
-                                    'Change Registration Status?',
604
-                                    'event_espresso'
605
-                                ); ?></label>
603
+									'Change Registration Status?',
604
+									'event_espresso'
605
+								); ?></label>
606 606
                             <?php echo $status_change_select; ?>
607 607
                             <p class="description">
608 608
                                 <?php esc_html_e(
609
-                                    'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
610
-                                    'event_espresso'
611
-                                ); ?></p>
609
+									'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
610
+									'event_espresso'
611
+								); ?></p>
612 612
                             <br/>
613 613
                         </div>
614 614
 
@@ -629,14 +629,14 @@  discard block
 block discarded – undo
629 629
                             <br class="clear-float"/>
630 630
                             <p class="description">
631 631
                                 <?php printf(
632
-                                    esc_html__(
633
-                                        'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.',
634
-                                        'event_espresso'
635
-                                    ),
636
-                                    '<strong>',
637
-                                    '</strong>',
638
-                                    '<br />'
639
-                                ); ?></p>
632
+									esc_html__(
633
+										'By default %1$sa payment message is sent to the primary registrant%2$s after submitting this form.%3$sHowever, if you check the "Registration Messages" box, the system will also send any related messages matching the status of the registrations to %1$seach registration for this transaction%2$s.',
634
+										'event_espresso'
635
+									),
636
+									'<strong>',
637
+									'</strong>',
638
+									'<br />'
639
+								); ?></p>
640 640
                             <label></label>
641 641
                         </div>
642 642
                         <div class="clear"></div>
@@ -677,9 +677,9 @@  discard block
 block discarded – undo
677 677
                     <li>
678 678
                         <span id="ee-ajax-processing-text" style="display:none;">
679 679
                             <?php esc_html_e(
680
-                                'Processing...',
681
-                                'event_espresso'
682
-                            ); ?></span>
680
+								'Processing...',
681
+								'event_espresso'
682
+							); ?></span>
683 683
                     </li>
684 684
                 </ul>
685 685
 
@@ -694,9 +694,9 @@  discard block
 block discarded – undo
694 694
                 style="display:none;">
695 695
                 <span class="ee-icon ee-icon-cash-add"></span>
696 696
                 <?php echo esc_html__(
697
-                    'Delete Payment/Refund for Transaction #',
698
-                    'event_espresso'
699
-                ) . $txn_nmbr['value']; ?>
697
+					'Delete Payment/Refund for Transaction #',
698
+					'event_espresso'
699
+				) . $txn_nmbr['value']; ?>
700 700
             </h2>
701 701
 
702 702
             <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm"
@@ -718,19 +718,19 @@  discard block
 block discarded – undo
718 718
                             <label for="delete-txn-admin-payment-reg-status-inp"
719 719
                                    class="last">
720 720
                                 <?php esc_html_e(
721
-                                    'Change Registration Status?',
722
-                                    'event_espresso'
723
-                                ); ?></label>
721
+									'Change Registration Status?',
722
+									'event_espresso'
723
+								); ?></label>
724 724
                             <?php echo $delete_status_change_select; ?>
725 725
                             <p class="description">
726 726
                                 <?php printf(
727
-                                    esc_html__(
728
-                                        'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s',
729
-                                        'event_espresso'
730
-                                    ),
731
-                                    '<strong>',
732
-                                    '</strong>'
733
-                                ); ?></p>
727
+									esc_html__(
728
+										'If you wish to change the status of all the registrations associated with this transaction after deleting this payment/refund, then select which status from this dropdown. %sNote: ALL registrations associated with this transaction will be updated to this new status.%s',
729
+										'event_espresso'
730
+									),
731
+									'<strong>',
732
+									'</strong>'
733
+								); ?></p>
734 734
                         </div>
735 735
 
736 736
                         <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
@@ -739,9 +739,9 @@  discard block
 block discarded – undo
739 739
                             <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]">
740 740
                             <p class="description">
741 741
                                 <?php esc_html_e(
742
-                                    'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.',
743
-                                    'event_espresso'
744
-                                ); ?></p>
742
+									'If you check this box, the system will send any related registration messages matching the status of the registrations to each registration for this transaction. No Payment notifications are sent when deleting a payment.',
743
+									'event_espresso'
744
+								); ?></p>
745 745
                         </div>
746 746
                         <div class="clear"></div>
747 747
 
@@ -773,16 +773,16 @@  discard block
 block discarded – undo
773 773
     <?php endif; // $grand_raw_total > 0?>
774 774
 
775 775
     <?php
776
-    if (WP_DEBUG) {
777
-        $delivered_messages = get_option('EED_Messages__payment', array());
778
-        if (isset($delivered_messages[ $TXN_ID ])) {
779
-            ?>
776
+	if (WP_DEBUG) {
777
+		$delivered_messages = get_option('EED_Messages__payment', array());
778
+		if (isset($delivered_messages[ $TXN_ID ])) {
779
+			?>
780 780
             <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span
781 781
                     class="dashicons dashicons-email-alt"></span>
782 782
                 <?php esc_html_e(
783
-                    'Messages Sent to Primary Registrant',
784
-                    'event_espresso'
785
-                ); ?></h4>
783
+					'Messages Sent to Primary Registrant',
784
+					'event_espresso'
785
+				); ?></h4>
786 786
 
787 787
             <div class="admin-primary-mbox-tbl-wrap">
788 788
                 <table class="admin-primary-mbox-tbl">
@@ -796,26 +796,26 @@  discard block
 block discarded – undo
796 796
                     </thead>
797 797
                     <tbody>
798 798
                     <?php foreach ($delivered_messages[ $TXN_ID ] as $timestamp => $delivered_message) :
799
-                        ?>
799
+						?>
800 800
                         <tr>
801 801
                             <td class="jst-left">
802 802
                                 <?php echo date(
803
-                                    get_option('date_format') . ' ' . get_option('time_format'),
804
-                                    ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
805
-                                ); ?></td>
803
+									get_option('date_format') . ' ' . get_option('time_format'),
804
+									($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
805
+								); ?></td>
806 806
                             <td class="jst-left"><?php echo isset($delivered_message['message_type'])
807
-                                    ? $delivered_message['message_type'] : ''; ?></td>
807
+									? $delivered_message['message_type'] : ''; ?></td>
808 808
                             <td class="jst-left"><?php echo isset($delivered_message['pay_status'])
809
-                                    ? $delivered_message['pay_status'] : ''; ?></td>
809
+									? $delivered_message['pay_status'] : ''; ?></td>
810 810
                             <td class="jst-left"><?php echo isset($delivered_message['txn_status'])
811
-                                    ? $delivered_message['txn_status'] : ''; ?></td>
811
+									? $delivered_message['txn_status'] : ''; ?></td>
812 812
                         </tr>
813 813
                     <?php endforeach; // $delivered_messages?>
814 814
                     </tbody>
815 815
                 </table>
816 816
             </div>
817 817
             <?php
818
-        }
819
-    }
820
-    ?>
818
+		}
819
+	}
820
+	?>
821 821
 </div>
Please login to merge, or discard this patch.