Completed
Branch BUG/edit-answer-group-link-a11... (3f6b61)
by
unknown
17:42 queued 08:58
created
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/maintenance/templates/migration_options_from_ee3.template.php 1 patch
Indentation   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
         <?php esc_html_e("Migration Options", "event_espresso"); ?>
28 28
         <span class="tiny-text lt-grey-text"> &nbsp;
29 29
             <?php esc_html_e(
30
-                ' to migrate or not to migrate?',
31
-                "event_espresso"
32
-            ); ?></span>
30
+				' to migrate or not to migrate?',
31
+				"event_espresso"
32
+			); ?></span>
33 33
     </h2>
34 34
     <div class="ee-table-wrap">
35 35
         <table>
@@ -38,26 +38,26 @@  discard block
 block discarded – undo
38 38
                 <td><h3><?php esc_html_e('1', 'event_espresso'); ?></h3></td>
39 39
                 <td>
40 40
                     <?php
41
-                    echo apply_filters(
42
-                        'FHEE__ee_migration_page__option_1_main',
43
-                        sprintf(
44
-                            esc_html__(
45
-                                '%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.',
46
-                                "event_espresso"
47
-                            ),
48
-                            '<strong>',
49
-                            '</strong>',
50
-                            '<a id="migration-risks" class="" title="'
51
-                            . esc_attr__('click for more details', "event_espresso")
52
-                            . '">',
53
-                            '</a>',
54
-                            $current_db_state,
55
-                            $next_db_state
56
-                        ),
57
-                        $current_db_state,
58
-                        $next_db_state
59
-                    );
60
-                    ?>
41
+					echo apply_filters(
42
+						'FHEE__ee_migration_page__option_1_main',
43
+						sprintf(
44
+							esc_html__(
45
+								'%1$sYes. I have backed up my database%2$s, %3$sunderstand the risks involved%4$s, and am ready to migrate my existing %5$s data to %6$s.',
46
+								"event_espresso"
47
+							),
48
+							'<strong>',
49
+							'</strong>',
50
+							'<a id="migration-risks" class="" title="'
51
+							. esc_attr__('click for more details', "event_espresso")
52
+							. '">',
53
+							'</a>',
54
+							$current_db_state,
55
+							$next_db_state
56
+						),
57
+						$current_db_state,
58
+						$next_db_state
59
+					);
60
+					?>
61 61
                     <a id="display-migration-details"
62 62
                        class="display-the-hidden lt-grey-text smaller-text hide-if-no-js"
63 63
                        rel="migration-details"><?php esc_html_e('click for more details', "event_espresso"); ?>
@@ -67,26 +67,26 @@  discard block
 block discarded – undo
67 67
                        rel="migration-details"
68 68
                        style="display:none;">
69 69
                         <?php echo sprintf(
70
-                            esc_html__(
71
-                                'hide%1$sdetails%1$s-',
72
-                                'event_espresso'
73
-                            ),
74
-                            '&nbsp;'
75
-                        ); ?></a>
70
+							esc_html__(
71
+								'hide%1$sdetails%1$s-',
72
+								'event_espresso'
73
+							),
74
+							'&nbsp;'
75
+						); ?></a>
76 76
                 </td>
77 77
                 <td>
78 78
                     <a id="db-backed-up"
79 79
                        class="toggle-migration-monitor button-primary">
80 80
                         <?php echo apply_filters(
81
-                            'FHEE__ee_migration_page__option_1_button_text',
82
-                            sprintf(
83
-                                esc_html__("Migrate My %s Data to %s", "event_espresso"),
84
-                                $current_db_state,
85
-                                $next_db_state
86
-                            ),
87
-                            $current_db_state,
88
-                            $next_db_state
89
-                        ); ?></a>
81
+							'FHEE__ee_migration_page__option_1_button_text',
82
+							sprintf(
83
+								esc_html__("Migrate My %s Data to %s", "event_espresso"),
84
+								$current_db_state,
85
+								$next_db_state
86
+							),
87
+							$current_db_state,
88
+							$next_db_state
89
+						); ?></a>
90 90
                 </td>
91 91
             </tr>
92 92
             <tr>
@@ -94,34 +94,34 @@  discard block
 block discarded – undo
94 94
                     <div id="migration-details-dv" style="display: none; padding: 1em;">
95 95
 <span class="reminder-spn">
96 96
     <?php printf(
97
-        esc_html__(
98
-            "%s Important: %s Before migrating, please back up your database and files.",
99
-            "event_espresso"
100
-        ),
101
-        "<b>",
102
-        "</b>"
103
-    ); ?></span>
97
+		esc_html__(
98
+			"%s Important: %s Before migrating, please back up your database and files.",
99
+			"event_espresso"
100
+		),
101
+		"<b>",
102
+		"</b>"
103
+	); ?></span>
104 104
                         <p>
105 105
                             <?php
106
-                            printf(
107
-                                esc_html__(
108
-                                    '%1$sNot sure how to backup your existing data?%2$s Here is %3$sWordPress\'s explanation%7$s, and here\'s %6$sour explanation%7$s.%8$sYou can also search the WordPress plugin database for %4$s database backup plugins %7$s,%8$sor have one of our dedicated support technicians help you by purchasing a %5$sPriority Support Token%7$s.',
109
-                                    "event_espresso"
110
-                                ),
111
-                                '<b>',
112
-                                '</b>',
113
-                                "<a href='http://codex.wordpress.org/Backing_Up_Your_Database'>",
114
-                                "<a href='"
115
-                                . admin_url(
116
-                                    'plugin-install.php?tab=search&type=term&s=database+backup&plugin-search-input=Search+Plugins'
117
-                                )
118
-                                . "'>",
119
-                                "<a href='http://eventespresso.com/product/priority-support-tokens/'>",
120
-                                '<a href="http://eventespresso.com/wiki/how-to-back-up-your-site/">',
121
-                                "</a>",
122
-                                '<br/>'
123
-                            );
124
-                            ?>
106
+							printf(
107
+								esc_html__(
108
+									'%1$sNot sure how to backup your existing data?%2$s Here is %3$sWordPress\'s explanation%7$s, and here\'s %6$sour explanation%7$s.%8$sYou can also search the WordPress plugin database for %4$s database backup plugins %7$s,%8$sor have one of our dedicated support technicians help you by purchasing a %5$sPriority Support Token%7$s.',
109
+									"event_espresso"
110
+								),
111
+								'<b>',
112
+								'</b>',
113
+								"<a href='http://codex.wordpress.org/Backing_Up_Your_Database'>",
114
+								"<a href='"
115
+								. admin_url(
116
+									'plugin-install.php?tab=search&type=term&s=database+backup&plugin-search-input=Search+Plugins'
117
+								)
118
+								. "'>",
119
+								"<a href='http://eventespresso.com/product/priority-support-tokens/'>",
120
+								'<a href="http://eventespresso.com/wiki/how-to-back-up-your-site/">',
121
+								"</a>",
122
+								'<br/>'
123
+							);
124
+							?>
125 125
                         </p>
126 126
                         <?php do_action('AHEE__ee_migration_page__option_1_extra_details'); ?>
127 127
                     </div>
@@ -131,25 +131,25 @@  discard block
 block discarded – undo
131 131
                 <td><h3><?php esc_html_e('2', 'event_espresso'); ?></h3></td>
132 132
                 <td>
133 133
                     <?php echo apply_filters(
134
-                        'FHEE__ee_migration_page__option_2_main',
135
-                        sprintf(
136
-                            esc_html__(
137
-                                'I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.',
138
-                                "event_espresso"
139
-                            ),
140
-                            $current_db_state,
141
-                            $next_db_state,
142
-                            $ultimate_db_state
143
-                        ),
144
-                        $current_db_state,
145
-                        $next_db_state,
146
-                        $ultimate_db_state
147
-                    ); ?><br/>
134
+						'FHEE__ee_migration_page__option_2_main',
135
+						sprintf(
136
+							esc_html__(
137
+								'I do NOT want to migrate my %1$s data to %2$s at this time and just want to use %3$s without migrating data.',
138
+								"event_espresso"
139
+							),
140
+							$current_db_state,
141
+							$next_db_state,
142
+							$ultimate_db_state
143
+						),
144
+						$current_db_state,
145
+						$next_db_state,
146
+						$ultimate_db_state
147
+					); ?><br/>
148 148
                     <span class="reminder-spn">
149 149
                         <?php esc_html_e(
150
-                            'Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.',
151
-                            'event_espresso'
152
-                        ); ?></span>
150
+							'Please Note: In order to avoid errors, any existing Event Espresso data (events, ticket, registrations, etc) in your db will be erased! Regular WP data will NOT be affected.',
151
+							'event_espresso'
152
+						); ?></span>
153 153
                     <a id="display-no-migration-details"
154 154
                        class="display-the-hidden lt-grey-text smaller-text hide-if-no-js"
155 155
                        rel="no-migration-details"><?php esc_html_e('click for more details', "event_espresso"); ?>
@@ -159,24 +159,24 @@  discard block
 block discarded – undo
159 159
                        rel="no-migration-details"
160 160
                        style="display:none;">
161 161
                         <?php echo sprintf(
162
-                            esc_html__(
163
-                                'hide%1$sdetails%1$s-',
164
-                                'event_espresso'
165
-                            ),
166
-                            '&nbsp;'
167
-                        ); ?></a>
162
+							esc_html__(
163
+								'hide%1$sdetails%1$s-',
164
+								'event_espresso'
165
+							),
166
+							'&nbsp;'
167
+						); ?></a>
168 168
                 </td>
169 169
                 <td>
170 170
                     <a id="do-not-migrate" class="do-not-migrate button-primary"
171 171
                        href="<?php echo $reset_db_page_link; ?>">
172 172
                         <?php echo apply_filters(
173
-                            'FHEE__ee_migration_page__option_2_button_text',
174
-                            sprintf(
175
-                                esc_html__("Just Start %s and Delete Existing Data", "event_espresso"),
176
-                                $ultimate_db_state
177
-                            ),
178
-                            $ultimate_db_state
179
-                        ); ?></a>
173
+							'FHEE__ee_migration_page__option_2_button_text',
174
+							sprintf(
175
+								esc_html__("Just Start %s and Delete Existing Data", "event_espresso"),
176
+								$ultimate_db_state
177
+							),
178
+							$ultimate_db_state
179
+						); ?></a>
180 180
                 </td>
181 181
             </tr>
182 182
             <tr>
@@ -184,16 +184,16 @@  discard block
 block discarded – undo
184 184
                     <div id="no-migration-details-dv" style="display: none; padding: 1em;">
185 185
                         <p>
186 186
                             <?php echo apply_filters(
187
-                                'FHEE__ee_migration_page__option_2_details',
188
-                                sprintf(
189
-                                    esc_html__(
190
-                                        "If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.",
191
-                                        "event_espresso"
192
-                                    ),
193
-                                    $ultimate_db_state
194
-                                ),
195
-                                $ultimate_db_state
196
-                            ); ?>
187
+								'FHEE__ee_migration_page__option_2_details',
188
+								sprintf(
189
+									esc_html__(
190
+										"If your existing Event and Registration Data is no longer relevant nor required, you can just start up %s without performing a data migration.",
191
+										"event_espresso"
192
+									),
193
+									$ultimate_db_state
194
+								),
195
+								$ultimate_db_state
196
+							); ?>
197 197
                         </p>
198 198
                     </div>
199 199
                 </td>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_system_stati_page.template.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -12,19 +12,19 @@  discard block
 block discarded – undo
12 12
  */
13 13
 function ee_recurse_into_array_for_display($data)
14 14
 {
15
-    if (is_object($data)
16
-        || $data instanceof __PHP_Incomplete_Class
17
-    ) {// is_object($incomplete_class) actually returns false, hence why we check for it
18
-        $data = json_decode(json_encode($data), true);
19
-    }
20
-    if (is_array($data)) {
21
-        if (EEH_Array::is_associative_array($data)) {
22
-            ?>
15
+	if (is_object($data)
16
+		|| $data instanceof __PHP_Incomplete_Class
17
+	) {// is_object($incomplete_class) actually returns false, hence why we check for it
18
+		$data = json_decode(json_encode($data), true);
19
+	}
20
+	if (is_array($data)) {
21
+		if (EEH_Array::is_associative_array($data)) {
22
+			?>
23 23
             <table class="widefat">
24 24
                 <tbody>
25 25
                 <?php
26
-                foreach ($data as $data_key => $data_values) {
27
-                    ?>
26
+				foreach ($data as $data_key => $data_values) {
27
+					?>
28 28
                     <tr>
29 29
                         <td>
30 30
                             <?php echo $data_key; ?>
@@ -34,26 +34,26 @@  discard block
 block discarded – undo
34 34
                         </td>
35 35
                     </tr>
36 36
                     <?php
37
-                } ?>
37
+				} ?>
38 38
                 </tbody>
39 39
             </table>
40 40
             <?php
41
-        } else {
42
-            ?>
41
+		} else {
42
+			?>
43 43
             <ul>
44 44
                 <?php
45
-                foreach ($data as $datum) {
46
-                    echo "<li>";
47
-                    ee_recurse_into_array_for_display($datum);
48
-                    echo "</li>";
49
-                } ?>
45
+				foreach ($data as $datum) {
46
+					echo "<li>";
47
+					ee_recurse_into_array_for_display($datum);
48
+					echo "</li>";
49
+				} ?>
50 50
             </ul>
51 51
             <?php
52
-        }
53
-    } else {
54
-        // simple value
55
-        echo $data;
56
-    }
52
+		}
53
+	} else {
54
+		// simple value
55
+		echo $data;
56
+	}
57 57
 }
58 58
 
59 59
 ?>
@@ -61,19 +61,19 @@  discard block
 block discarded – undo
61 61
     <?php _e("System Information", "event_espresso"); ?> <a href="<?php echo $download_system_status_url; ?>"
62 62
                                                             class="button-secondary">
63 63
         <?php esc_html_e(
64
-            'Download to File',
65
-            'event_espresso'
66
-        ); ?></a>
64
+			'Download to File',
65
+			'event_espresso'
66
+		); ?></a>
67 67
 </h1>
68 68
 <div class="padding">
69 69
 
70 70
     <table class="widefat">
71 71
         <?php
72
-        foreach ($system_stati as $status_category_slug => $data) {
73
-            if (is_object($data)) {
74
-                $data = json_decode(json_encode($data), true);
75
-            }
76
-            ?>
72
+		foreach ($system_stati as $status_category_slug => $data) {
73
+			if (is_object($data)) {
74
+				$data = json_decode(json_encode($data), true);
75
+			}
76
+			?>
77 77
             <thead>
78 78
             <tr>
79 79
                 <th colspan=2>
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
             </thead>
84 84
             <tbody>
85 85
             <?php
86
-            if (is_array($data)) {
87
-                foreach ($data as $data_key => $data_values) {
88
-                    ?>
86
+			if (is_array($data)) {
87
+				foreach ($data as $data_key => $data_values) {
88
+					?>
89 89
                     <tr>
90 90
                         <td>
91 91
                             <?php echo $data_key ?>
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
                         </td>
96 96
                     </tr>
97 97
                     <?php
98
-                } ?>
98
+				} ?>
99 99
                 </tbody>
100 100
                 <?php
101
-            } else {
102
-                ?>
101
+			} else {
102
+				?>
103 103
                 <tbody>
104 104
                 <tr>
105 105
                     <td colspan=2>
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
                 </tr>
109 109
                 </tbody>
110 110
                 <?php
111
-            }
112
-        }
113
-        ?>
111
+			}
112
+		}
113
+		?>
114 114
     </table>
115 115
 
116 116
 </div>
117 117
\ 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.
help_tabs/transactions_overview_views_filters_search.help_tab.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 <li>
8 8
 <strong><?php _e('View All Transactions', 'event_espresso'); ?></strong><br />
9 9
 <?php
10
-    printf(
11
-        __('Shows transactions where the registrant has completed the full registration process. Transactions in this view will either have a status of: %1$s%2$s"Incomplete" meaning there are monies owing%3$s%2$s"Complete" meaning there are NO monies owing%3$s%2$s"Overpaid" meaning that monies should be refunded to the registrant.%3$s%4$s', 'event_espresso'),
12
-        '<ul>',
13
-        '<li>',
14
-        '</li>',
15
-        '</ul>'
16
-    );
10
+	printf(
11
+		__('Shows transactions where the registrant has completed the full registration process. Transactions in this view will either have a status of: %1$s%2$s"Incomplete" meaning there are monies owing%3$s%2$s"Complete" meaning there are NO monies owing%3$s%2$s"Overpaid" meaning that monies should be refunded to the registrant.%3$s%4$s', 'event_espresso'),
12
+		'<ul>',
13
+		'<li>',
14
+		'</li>',
15
+		'</ul>'
16
+	);
17 17
 ?>
18 18
 </li>
19 19
 <li>
Please login to merge, or discard this patch.
admin_pages/transactions/Transactions_Admin_Page_Init.core.php 2 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -13,58 +13,58 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    /**
17
-     * @Constructor
18
-     * @access public
19
-     * @return Transactions_Admin_Page_Init
20
-     */
21
-    public function __construct()
22
-    {
16
+	/**
17
+	 * @Constructor
18
+	 * @access public
19
+	 * @return Transactions_Admin_Page_Init
20
+	 */
21
+	public function __construct()
22
+	{
23 23
 
24
-        do_action('AHEE_log', __FILE__, __FUNCTION__, '');
25
-        if (! defined('TXN_PG_SLUG')) {
26
-            define('TXN_PG_SLUG', 'espresso_transactions');
27
-            define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG)));
28
-            define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions' . DS);
29
-            define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG));
30
-            define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets' . DS);
31
-            define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/assets' . DS));
32
-            define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates' . DS);
33
-            define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/templates' . DS));
34
-        }
35
-        parent::__construct();
36
-    }
24
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
25
+		if (! defined('TXN_PG_SLUG')) {
26
+			define('TXN_PG_SLUG', 'espresso_transactions');
27
+			define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG)));
28
+			define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions' . DS);
29
+			define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG));
30
+			define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets' . DS);
31
+			define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/assets' . DS));
32
+			define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates' . DS);
33
+			define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/templates' . DS));
34
+		}
35
+		parent::__construct();
36
+	}
37 37
 
38 38
 
39
-    /**
40
-     *    _set_init_properties
41
-     *
42
-     * @return void
43
-     */
44
-    protected function _set_init_properties()
45
-    {
46
-        $this->label = __('Transactions Overview', 'event_espresso');
47
-    }
39
+	/**
40
+	 *    _set_init_properties
41
+	 *
42
+	 * @return void
43
+	 */
44
+	protected function _set_init_properties()
45
+	{
46
+		$this->label = __('Transactions Overview', 'event_espresso');
47
+	}
48 48
 
49 49
 
50
-    /**
51
-     *    _set_menu_map
52
-     *
53
-     * @return void
54
-     */
55
-    protected function _set_menu_map()
56
-    {
57
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
58
-            array(
59
-                'menu_group'      => 'main',
60
-                'menu_order'      => 50,
61
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
62
-                'parent_slug'     => 'espresso_events',
63
-                'menu_slug'       => TXN_PG_SLUG,
64
-                'menu_label'      => __('Transactions', 'event_espresso'),
65
-                'capability'      => 'ee_read_transactions',
66
-                'admin_init_page' => $this,
67
-            )
68
-        );
69
-    }
50
+	/**
51
+	 *    _set_menu_map
52
+	 *
53
+	 * @return void
54
+	 */
55
+	protected function _set_menu_map()
56
+	{
57
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
58
+			array(
59
+				'menu_group'      => 'main',
60
+				'menu_order'      => 50,
61
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
62
+				'parent_slug'     => 'espresso_events',
63
+				'menu_slug'       => TXN_PG_SLUG,
64
+				'menu_label'      => __('Transactions', 'event_espresso'),
65
+				'capability'      => 'ee_read_transactions',
66
+				'admin_init_page' => $this,
67
+			)
68
+		);
69
+	}
70 70
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@
 block discarded – undo
22 22
     {
23 23
 
24 24
         do_action('AHEE_log', __FILE__, __FUNCTION__, '');
25
-        if (! defined('TXN_PG_SLUG')) {
25
+        if ( ! defined('TXN_PG_SLUG')) {
26 26
             define('TXN_PG_SLUG', 'espresso_transactions');
27 27
             define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG)));
28
-            define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions' . DS);
29
-            define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG));
30
-            define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets' . DS);
31
-            define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/assets' . DS));
32
-            define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates' . DS);
33
-            define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/templates' . DS));
28
+            define('TXN_ADMIN', EE_ADMIN_PAGES.'transactions'.DS);
29
+            define('TXN_ADMIN_URL', admin_url('admin.php?page='.TXN_PG_SLUG));
30
+            define('TXN_ASSETS_PATH', TXN_ADMIN.'assets'.DS);
31
+            define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL.'transactions/assets'.DS));
32
+            define('TXN_TEMPLATE_PATH', TXN_ADMIN.'templates'.DS);
33
+            define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL.'transactions/templates'.DS));
34 34
         }
35 35
         parent::__construct();
36 36
     }
Please login to merge, or discard this patch.
templates/txn_admin_details_side_meta_box_billing_info.template.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -4,46 +4,46 @@
 block discarded – undo
4 4
             <?php _e('There is no billing info for this transaction.', 'event_espresso'); ?><br/>
5 5
         </div>
6 6
     <?php else :
7
-    function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false)
8
-    {
9
-        foreach ($form_section->subsections() as $subsection) {
10
-            if ($subsection instanceof EE_Form_Input_Base) {
11
-                if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal
12
-                    || $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal
13
-                    || $subsection->get_display_strategy() instanceof EE_Hidden_Display_Strategy) {
14
-                    continue;
15
-                }
16
-                if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) {
17
-                    $found_cc_data = true;
18
-                }
19
-                ?>
7
+	function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false)
8
+	{
9
+		foreach ($form_section->subsections() as $subsection) {
10
+			if ($subsection instanceof EE_Form_Input_Base) {
11
+				if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal
12
+					|| $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal
13
+					|| $subsection->get_display_strategy() instanceof EE_Hidden_Display_Strategy) {
14
+					continue;
15
+				}
16
+				if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) {
17
+					$found_cc_data = true;
18
+				}
19
+				?>
20 20
                 <div class="clearfix">
21 21
                 <span class="admin-side-mbox-label-spn lt-grey-txt float-left">
22 22
                     <?php echo $subsection->get_html_for_label(); ?>
23 23
                 </span><?php echo $subsection->pretty_value(); ?>
24 24
                 </div><?php
25
-            } elseif ($subsection instanceof EE_Form_Section_Proper) {
26
-                $found_cc_data = ee_show_billing_info_cleaned($subsection, $found_cc_data);
27
-            }
28
-        }
29
-        return $found_cc_data;
30
-    }
25
+			} elseif ($subsection instanceof EE_Form_Section_Proper) {
26
+				$found_cc_data = ee_show_billing_info_cleaned($subsection, $found_cc_data);
27
+			}
28
+		}
29
+		return $found_cc_data;
30
+	}
31 31
 
32
-        $found_cc_data = ee_show_billing_info_cleaned($billing_form);
33
-    if (apply_filters(
34
-        'FHEE__txn_admin_details_side_meta_box_billing_info__show_default_note',
35
-        $found_cc_data,
36
-        $billing_form
37
-    )) { ?>
32
+		$found_cc_data = ee_show_billing_info_cleaned($billing_form);
33
+	if (apply_filters(
34
+		'FHEE__txn_admin_details_side_meta_box_billing_info__show_default_note',
35
+		$found_cc_data,
36
+		$billing_form
37
+	)) { ?>
38 38
             <p class="help">
39 39
                 <?php _e(
40
-                    'Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.',
41
-                    'event_espresso'
42
-                ); ?></p>
40
+					'Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.',
41
+					'event_espresso'
42
+				); ?></p>
43 43
         <?php
44
-    }
45
-        do_action('AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form);
46
-    endif; ?>
44
+	}
45
+		do_action('AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form);
46
+	endif; ?>
47 47
 
48 48
 </div>
49 49
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,8 @@  discard block
 block discarded – undo
3 3
         <div class="clearfix">
4 4
             <?php _e('There is no billing info for this transaction.', 'event_espresso'); ?><br/>
5 5
         </div>
6
-    <?php else :
6
+    <?php else {
7
+	:
7 8
     function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false)
8 9
     {
9 10
         foreach ($form_section->subsections() as $subsection) {
@@ -12,6 +13,7 @@  discard block
 block discarded – undo
12 13
                     || $subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal
13 14
                     || $subsection->get_display_strategy() instanceof EE_Hidden_Display_Strategy) {
14 15
                     continue;
16
+}
15 17
                 }
16 18
                 if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) {
17 19
                     $found_cc_data = true;
Please login to merge, or discard this patch.
templates/txn_admin_details_main_meta_box_txn_details.template.php 3 patches
Indentation   +187 added lines, -187 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
     <a id="display-additional-transaction-session-info" class="display-the-hidden smaller-text"
16 16
        rel="additional-transaction-session-info">
17 17
         <span class="dashicons dashicons-plus-alt"></span><?php esc_html_e(
18
-            'view additional transaction session details',
19
-            'event_espresso'
20
-        ); ?>
18
+			'view additional transaction session details',
19
+			'event_espresso'
20
+		); ?>
21 21
     </a>
22 22
 
23 23
     <div id="additional-transaction-session-info-dv" class="hidden">
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
         <a id="hide-additional-transaction-session-info" class="hide-the-displayed hidden smaller-text"
26 26
            rel="additional-transaction-session-info">
27 27
             <span class="dashicons dashicons-dismiss"></span><?php esc_html_e(
28
-                'hide additional transaction session details',
29
-                'event_espresso'
30
-            ); ?>
28
+				'hide additional transaction session details',
29
+				'event_espresso'
30
+			); ?>
31 31
         </a>
32 32
         <br class="clear"/>
33 33
 
@@ -52,16 +52,16 @@  discard block
 block discarded – undo
52 52
 
53 53
 
54 54
     <?php if ($attendee instanceof EE_Attendee && ($grand_raw_total > 0 || $TXN_status !== EEM_Transaction::complete_status_code || ! empty($payments))) :
55
-        $no_payment_text = $can_edit_payments
56
-            ? esc_html__(
57
-                'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.',
58
-                'event_espresso'
59
-            )
60
-            : esc_html__(
61
-                'No payments have been applied to this transaction yet.',
62
-                'event_espresso'
63
-            );
64
-        ?>
55
+		$no_payment_text = $can_edit_payments
56
+			? esc_html__(
57
+				'No payments have been applied to this transaction yet. Click "Apply Payment" below to make a payment.',
58
+				'event_espresso'
59
+			)
60
+			: esc_html__(
61
+				'No payments have been applied to this transaction yet.',
62
+				'event_espresso'
63
+			);
64
+		?>
65 65
 
66 66
         <h3 class="admin-primary-mbox-h4 hdr-has-icon">
67 67
             <span class="ee-icon ee-icon-cash"></span><?php esc_html_e('Payment Details', 'event_espresso'); ?>
@@ -89,10 +89,10 @@  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 ])
94
-                            : '{}';
95
-                        ?>
92
+						$existing_reg_payment_json = isset($existing_reg_payments[ $PAY_ID ])
93
+							? wp_json_encode($existing_reg_payments[ $PAY_ID ])
94
+							: '{}';
95
+						?>
96 96
                         <tr id="txn-admin-payment-tr-<?php echo $PAY_ID; ?>">
97 97
                             <td>
98 98
                                 <span id="payment-status-<?php echo $PAY_ID; ?>"
@@ -139,16 +139,16 @@  discard block
 block discarded – undo
139 139
                             <td class=" jst-left">
140 140
                                 <div id="payment-gateway-<?php echo $PAY_ID; ?>">
141 141
                                     <?php echo $payment->payment_method()
142
-                                        ? $payment->payment_method()->admin_name()
143
-                                        : esc_html__(
144
-                                            "Unknown",
145
-                                            'event_espresso'
146
-                                        ); ?>
142
+										? $payment->payment_method()->admin_name()
143
+										: esc_html__(
144
+											"Unknown",
145
+											'event_espresso'
146
+										); ?>
147 147
                                 </div>
148 148
                                 <div id="payment-gateway-id-<?php echo $PAY_ID; ?>"
149 149
                                      class="hidden"><?php echo $payment->payment_method()
150
-                                        ? $payment->payment_method()->ID()
151
-                                        : 0; ?></div>
150
+										? $payment->payment_method()->ID()
151
+										: 0; ?></div>
152 152
                             </td>
153 153
                             <td class=" jst-left">
154 154
                                 <div id="payment-response-<?php echo $PAY_ID; ?>"><?php echo $payment->gateway_response(); ?></div>
@@ -165,29 +165,29 @@  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()
169
-                                    : 'txn-admin-payment-status-PDC'; ?>
168
+									? 'txn-admin-payment-status-' . $payment->STS_ID()
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;">
172 172
                                 <?php echo EEH_Template::format_currency(
173
-                                    $payment->amount(),
174
-                                    false,
175
-                                    false
176
-                                ); ?></div>
173
+									$payment->amount(),
174
+									false,
175
+									false
176
+								); ?></div>
177 177
                             </span>
178 178
                             </td>
179 179
                         </tr>
180 180
                         <?php
181
-                        $payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0;
182
-                        ?>
181
+						$payment_total += $payment->STS_ID() == 'PAP' ? $payment->amount() : 0;
182
+						?>
183 183
                     <?php endforeach; // $payment?>
184 184
                     <?php
185
-                    $pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : '';
186
-                    $overpaid = $payment_total > $grand_raw_total
187
-                        ? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso')
188
-                          . '</span>'
189
-                        : '';
190
-                    ?>
185
+					$pay_totals_class = $payment_total > $grand_raw_total ? ' important-notice' : '';
186
+					$overpaid = $payment_total > $grand_raw_total
187
+						? '<span id="overpaid">' . esc_html__('This transaction has been overpaid ! ', 'event_espresso')
188
+						  . '</span>'
189
+						: '';
190
+					?>
191 191
                     <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr hidden">
192 192
                         <td class=" jst-rght" colspan="11">
193 193
                             <span class="important-notice"><?php echo $no_payment_text; ?></span>
@@ -198,20 +198,20 @@  discard block
 block discarded – undo
198 198
                         <th class=" jst-rght" colspan="10"><span
199 199
                                 id="payments-total-spn">
200 200
                                 <?php echo $overpaid
201
-                                           . sprintf(
202
-                                               esc_html__(
203
-                                                   'Payments Total %s',
204
-                                                   'event_espresso'
205
-                                               ),
206
-                                               '(' . EE_Registry::instance()->CFG->currency->code . ')'
207
-                                           ); ?></span></th>
201
+										   . sprintf(
202
+											   esc_html__(
203
+												   'Payments Total %s',
204
+												   'event_espresso'
205
+											   ),
206
+											   '(' . EE_Registry::instance()->CFG->currency->code . ')'
207
+										   ); ?></span></th>
208 208
                         <th class=" jst-rght"><span
209 209
                                 id="txn-admin-payment-total">
210 210
                                 <?php echo EEH_Template::format_currency(
211
-                                    $payment_total,
212
-                                    false,
213
-                                    false
214
-                                ); ?></span></th>
211
+									$payment_total,
212
+									false,
213
+									false
214
+								); ?></span></th>
215 215
                     </tr>
216 216
                 <?php else : ?>
217 217
                     <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr">
@@ -223,13 +223,13 @@  discard block
 block discarded – undo
223 223
                         <th class=" jst-rght" colspan="10"><span
224 224
                                 id="payments-total-spn">
225 225
                                 <?php echo esc_html__(
226
-                                    'Payments Total',
227
-                                    'event_espresso'
228
-                                ); ?></span></th>
226
+									'Payments Total',
227
+									'event_espresso'
228
+								); ?></span></th>
229 229
                         <th class=" jst-rght"><span id="txn-admin-payment-total"></span></th>
230 230
                     </tr>
231 231
                 <?php endif; // $payments
232
-                ?>
232
+				?>
233 233
 
234 234
                 <tr id="txn-admin-payment-empty-row-tr" class="hidden">
235 235
                     <td>
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
         <ul id="txn-admin-payment-options-ul">
296 296
             <?php if ($can_edit_payments) :
297
-                ?>
297
+				?>
298 298
                 <li>
299 299
                     <a id="display-txn-admin-apply-payment" class="button-primary no-icon no-hide"
300 300
                        rel="txn-admin-apply-payment"> <!--display-the-hidden -->
@@ -311,9 +311,9 @@  discard block
 block discarded – undo
311 311
                 <li>
312 312
                     <p>
313 313
                         <?php esc_html__(
314
-                            'You do not have access to apply payments or refunds.',
315
-                            'event_espresso'
316
-                        ); ?></p>
314
+							'You do not have access to apply payments or refunds.',
315
+							'event_espresso'
316
+						); ?></p>
317 317
                 </li>
318 318
             <?php endif; ?>
319 319
         </ul>
@@ -331,23 +331,23 @@  discard block
 block discarded – undo
331 331
                 style="display:none;">
332 332
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
333 333
                 <?php
334
-                echo sprintf(
335
-                    __('Edit Payment #%s for Transaction #%s', 'event_espresso'),
336
-                    '<span></span>',
337
-                    $txn_nmbr['value']
338
-                );
339
-                ?>
334
+				echo sprintf(
335
+					__('Edit Payment #%s for Transaction #%s', 'event_espresso'),
336
+					'<span></span>',
337
+					$txn_nmbr['value']
338
+				);
339
+				?>
340 340
             </h2>
341 341
 
342 342
             <h2 id="admin-modal-dialog-edit-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon" style="display:none;">
343 343
                 <div class="ee-icon ee-icon-cash-edit float-left"></div>
344 344
                 <?php
345
-                echo sprintf(
346
-                    __('Edit Refund #%s for Transaction #%s', 'event_espresso'),
347
-                    '<span></span>',
348
-                    $txn_nmbr['value']
349
-                );
350
-                ?>
345
+				echo sprintf(
346
+					__('Edit Refund #%s for Transaction #%s', 'event_espresso'),
347
+					'<span></span>',
348
+					$txn_nmbr['value']
349
+				);
350
+				?>
351 351
             </h2>
352 352
 
353 353
             <h2 id="admin-modal-dialog-apply-refund-h2" class="admin-modal-dialog-h2 hdr-has-icon"
@@ -381,55 +381,55 @@  discard block
 block discarded – undo
381 381
                         <div class="txn-admin-apply-payment-date-dv admin-modal-dialog-row">
382 382
                             <div class="validation-notice-dv">
383 383
                                 <?php esc_html_e(
384
-                                    'The following is  a required field',
385
-                                    'event_espresso'
386
-                                ); ?></div>
384
+									'The following is  a required field',
385
+									'event_espresso'
386
+								); ?></div>
387 387
                             <label for="txn-admin-payment-date-inp" class="">
388 388
                                 <?php esc_html_e(
389
-                                    'Payment Date',
390
-                                    'event_espresso'
391
-                                ); ?></label>
389
+									'Payment Date',
390
+									'event_espresso'
391
+								); ?></label>
392 392
                             <input name="txn_admin_payment[date]" id="txn-admin-payment-date-inp"
393 393
                                    class="txn-admin-apply-payment-inp required" type="text"
394 394
                                    value="<?php echo date('Y-m-d g:i a', current_time('timestamp')); ?>"/>
395 395
                             <p class="description">
396 396
                                 <?php esc_html_e(
397
-                                    'The date the payment was actually made on',
398
-                                    'event_espresso'
399
-                                ); ?></p>
397
+									'The date the payment was actually made on',
398
+									'event_espresso'
399
+								); ?></p>
400 400
                         </div>
401 401
 
402 402
                         <div class="txn-admin-apply-payment-amount-dv admin-modal-dialog-row">
403 403
                             <div class="validation-notice-dv">
404 404
                                 <?php esc_html_e(
405
-                                    'The following is  a required field',
406
-                                    'event_espresso'
407
-                                ); ?></div>
405
+									'The following is  a required field',
406
+									'event_espresso'
407
+								); ?></div>
408 408
                             <label for="txn-admin-payment-amount-inp" class="">
409 409
                                 <?php esc_html_e(
410
-                                    'Amount',
411
-                                    'event_espresso'
412
-                                ); ?></label>
410
+									'Amount',
411
+									'event_espresso'
412
+								); ?></label>
413 413
                             <input name="txn_admin_payment[amount]" id="txn-admin-payment-amount-inp"
414 414
                                    class="txn-admin-apply-payment-inp required" type="text" value=""/>
415 415
                             <p class="description">
416 416
                                 <?php esc_html_e(
417
-                                    'The amount of the payment',
418
-                                    'event_espresso'
419
-                                ); ?></p>
417
+									'The amount of the payment',
418
+									'event_espresso'
419
+								); ?></p>
420 420
                         </div>
421 421
 
422 422
                         <div class="txn-admin-apply-payment-method-dv admin-modal-dialog-row">
423 423
                             <div class="validation-notice-dv">
424 424
                                 <?php esc_html_e(
425
-                                    'The following is  a required field',
426
-                                    'event_espresso'
427
-                                ); ?></div>
425
+									'The following is  a required field',
426
+									'event_espresso'
427
+								); ?></div>
428 428
                             <label for="txn-admin-payment-method-inp" class="">
429 429
                                 <?php esc_html_e(
430
-                                    'Method of Payment',
431
-                                    'event_espresso'
432
-                                ); ?></label>
430
+									'Method of Payment',
431
+									'event_espresso'
432
+								); ?></label>
433 433
                             <select name="txn_admin_payment[PMD_ID]" id="txn-admin-payment-method-slct"
434 434
                                     class="txn-admin-apply-payment-slct required" type="text">
435 435
                                 <?php foreach ($payment_methods as $method) : ?>
@@ -437,39 +437,39 @@  discard block
 block discarded – undo
437 437
                                     <option id="payment-method-opt-<?php echo $method->slug(); ?>"
438 438
                                             value="<?php echo $method->ID(); ?>"<?php echo $selected; ?>>
439 439
                                         <?php echo sanitize_key(
440
-                                            $method->admin_desc()
441
-                                        )
442
-                                            ? substr(
443
-                                                $method->admin_desc(),
444
-                                                0,
445
-                                                128
446
-                                            )
447
-                                            : $method->admin_name(); ?>&nbsp;&nbsp;
440
+											$method->admin_desc()
441
+										)
442
+											? substr(
443
+												$method->admin_desc(),
444
+												0,
445
+												128
446
+											)
447
+											: $method->admin_name(); ?>&nbsp;&nbsp;
448 448
                                     </option>
449 449
                                 <?php endforeach; ?>
450 450
                             </select>
451 451
                             <p class="description">
452 452
                                 <?php esc_html_e(
453
-                                    'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
454
-                                    'event_espresso'
455
-                                ); ?></p>
453
+									'Whether the payment was made via PayPal, Credit Card, Cheque, or Cash',
454
+									'event_espresso'
455
+								); ?></p>
456 456
                         </div>
457 457
 
458 458
                         <div class="mop-PP mop-CC mop-CHQ mop">
459 459
                             <div class="txn-admin-apply-payment-gw-txn-id-dv admin-modal-dialog-row">
460 460
                                 <label for="txn-admin-payment-txn-id-inp" class="">
461 461
                                     <?php esc_html_e(
462
-                                        'TXN ID / CHQ #',
463
-                                        'event_espresso'
464
-                                    ); ?></label>
462
+										'TXN ID / CHQ #',
463
+										'event_espresso'
464
+									); ?></label>
465 465
                                 <input name="txn_admin_payment[txn_id_chq_nmbr]"
466 466
                                        id="txn-admin-payment-txn-id-chq-nmbr-inp" class="txn-admin-apply-payment-inp"
467 467
                                        type="text" maxlength="100"/>
468 468
                                 <p class="description">
469 469
                                     <?php esc_html_e(
470
-                                        'The Transaction ID sent back from the payment gateway, or the Cheque #',
471
-                                        'event_espresso'
472
-                                    ); ?></p>
470
+										'The Transaction ID sent back from the payment gateway, or the Cheque #',
471
+										'event_espresso'
472
+									); ?></p>
473 473
                             </div>
474 474
                         </div>
475 475
 
@@ -482,9 +482,9 @@  discard block
 block discarded – undo
482 482
                                        type="text"/>
483 483
                                 <p class="description">
484 484
                                     <?php esc_html_e(
485
-                                        'The gateway response string (optional)',
486
-                                        'event_espresso'
487
-                                    ); ?></p>
485
+										'The gateway response string (optional)',
486
+										'event_espresso'
487
+									); ?></p>
488 488
                             </div>
489 489
                         </div>
490 490
 
@@ -492,9 +492,9 @@  discard block
 block discarded – undo
492 492
                             <div class="txn-admin-apply-payment-status-dv admin-modal-dialog-row">
493 493
                                 <label for="txn-admin-payment-status-inp" class="">
494 494
                                     <?php esc_html_e(
495
-                                        'Payment Status',
496
-                                        'event_espresso'
497
-                                    ); ?></label>
495
+										'Payment Status',
496
+										'event_espresso'
497
+									); ?></label>
498 498
                                 <select name="txn_admin_payment[status]" id="txn-admin-payment-status-slct"
499 499
                                         class="txn-admin-apply-payment-slct" type="text">
500 500
                                     <?php foreach ($payment_status as $STS_ID => $STS_code) : ?>
@@ -507,52 +507,52 @@  discard block
 block discarded – undo
507 507
                                 </select>
508 508
                                 <p class="description">
509 509
                                     <?php esc_html_e(
510
-                                        'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
511
-                                        'event_espresso'
512
-                                    ); ?></p>
510
+										'Whether the payment was approved, cancelled, declined or failed after submission to the gateway',
511
+										'event_espresso'
512
+									); ?></p>
513 513
                             </div>
514 514
                         </div>
515 515
 
516 516
                         <div class="txn-admin-apply-payment-po-nmbr-dv admin-modal-dialog-row">
517 517
                             <label for="txn-admin-payment-po-nmbr-inp" class="">
518 518
                                 <?php esc_html_e(
519
-                                    'P.O. / S.O. #',
520
-                                    'event_espresso'
521
-                                ); ?></label>
519
+									'P.O. / S.O. #',
520
+									'event_espresso'
521
+								); ?></label>
522 522
                             <input name="txn_admin_payment[po_number]" id="txn-admin-payment-po-nmbr-inp"
523 523
                                    class="txn-admin-apply-payment-inp" type="text" maxlength="100"/>
524 524
                             <p class="description">
525 525
                                 <?php esc_html_e(
526
-                                    'The Purchase or Sales Order Number if any (optional)',
527
-                                    'event_espresso'
528
-                                ); ?></p>
526
+									'The Purchase or Sales Order Number if any (optional)',
527
+									'event_espresso'
528
+								); ?></p>
529 529
                         </div>
530 530
 
531 531
                         <div class="txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
532 532
                             <label for="txn-admin-payment-accounting-inp"
533 533
                                    class="last">
534 534
                                 <?php esc_html_e(
535
-                                    'Notes / Extra Accounting',
536
-                                    'event_espresso'
537
-                                ); ?></label>
535
+									'Notes / Extra Accounting',
536
+									'event_espresso'
537
+								); ?></label>
538 538
                             <input name="txn_admin_payment[accounting]" id="txn-admin-payment-accounting-inp"
539 539
                                    class="txn-admin-apply-payment-inp" type="text" value="<?php echo $REG_code; ?>"
540 540
                                    maxlength="100"/> <input type="hidden" id="txn-admin-reg-code-inp"
541 541
                                                             value="<?php echo $REG_code; ?>"/>
542 542
                             <p class="description">
543 543
                                 <?php esc_html_e(
544
-                                    'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
545
-                                    'event_espresso'
546
-                                ); ?></p>
544
+									'An extra field you may use for accounting purposes or simple notes. Defaults to the primary registrant\'s registration code.',
545
+									'event_espresso'
546
+								); ?></p>
547 547
                         </div>
548 548
 
549 549
                         <div class="txn-admin-apply-payment-registrations-dv admin-modal-dialog-row">
550 550
                             <label for="txn-admin-payment-registrations-inp"
551 551
                                    class="last">
552 552
                                 <?php esc_html_e(
553
-                                    'Registrations to Apply Payment to:',
554
-                                    'event_espresso'
555
-                                ); ?></label>
553
+									'Registrations to Apply Payment to:',
554
+									'event_espresso'
555
+								); ?></label>
556 556
                             <label class="txn-admin-apply-payment-to-registrations-lbl">
557 557
                                 <input type="radio" value="1" id="txn-admin-apply-payment-to-all-registrations-inp"
558 558
                                        name="txn_admin_payment[apply_to_all_registrations]" checked="checked"/>
@@ -570,15 +570,15 @@  discard block
 block discarded – undo
570 570
                             <label for="txn-admin-payment-reg-status-inp"
571 571
                                    class="last">
572 572
                                 <?php esc_html_e(
573
-                                    'Change Registration Status?',
574
-                                    'event_espresso'
575
-                                ); ?></label>
573
+									'Change Registration Status?',
574
+									'event_espresso'
575
+								); ?></label>
576 576
                             <?php echo $status_change_select; ?>
577 577
                             <p class="description">
578 578
                                 <?php esc_html_e(
579
-                                    'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
580
-                                    'event_espresso'
581
-                                ); ?></p>
579
+									'If you wish to change the status for the registrations selected above, then select which status from this dropdown.',
580
+									'event_espresso'
581
+								); ?></p>
582 582
                             <br/>
583 583
                         </div>
584 584
 
@@ -599,14 +599,14 @@  discard block
 block discarded – undo
599 599
                             <br class="clear-float"/>
600 600
                             <p class="description">
601 601
                                 <?php printf(
602
-                                    esc_html__(
603
-                                        '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.',
604
-                                        'event_espresso'
605
-                                    ),
606
-                                    '<strong>',
607
-                                    '</strong>',
608
-                                    '<br />'
609
-                                ); ?></p>
602
+									esc_html__(
603
+										'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.',
604
+										'event_espresso'
605
+									),
606
+									'<strong>',
607
+									'</strong>',
608
+									'<br />'
609
+								); ?></p>
610 610
                             <label></label>
611 611
                         </div>
612 612
                         <div class="clear"></div>
@@ -647,9 +647,9 @@  discard block
 block discarded – undo
647 647
                     <li>
648 648
                         <span id="ee-ajax-processing-text" style="display:none;">
649 649
                             <?php esc_html_e(
650
-                                'Processing...',
651
-                                'event_espresso'
652
-                            ); ?></span>
650
+								'Processing...',
651
+								'event_espresso'
652
+							); ?></span>
653 653
                     </li>
654 654
                 </ul>
655 655
 
@@ -664,9 +664,9 @@  discard block
 block discarded – undo
664 664
                 style="display:none;">
665 665
                 <span class="ee-icon ee-icon-cash-add"></span>
666 666
                 <?php echo esc_html__(
667
-                    'Delete Payment/Refund for Transaction #',
668
-                    'event_espresso'
669
-                ) . $txn_nmbr['value']; ?>
667
+					'Delete Payment/Refund for Transaction #',
668
+					'event_espresso'
669
+				) . $txn_nmbr['value']; ?>
670 670
             </h2>
671 671
 
672 672
             <form name="txn-admin-delete-payment-frm" id="txn-admin-delete-payment-frm"
@@ -688,19 +688,19 @@  discard block
 block discarded – undo
688 688
                             <label for="delete-txn-admin-payment-reg-status-inp"
689 689
                                    class="last">
690 690
                                 <?php esc_html_e(
691
-                                    'Change Registration Status?',
692
-                                    'event_espresso'
693
-                                ); ?></label>
691
+									'Change Registration Status?',
692
+									'event_espresso'
693
+								); ?></label>
694 694
                             <?php echo $delete_status_change_select; ?>
695 695
                             <p class="description">
696 696
                                 <?php printf(
697
-                                    esc_html__(
698
-                                        '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',
699
-                                        'event_espresso'
700
-                                    ),
701
-                                    '<strong>',
702
-                                    '</strong>'
703
-                                ); ?></p>
697
+									esc_html__(
698
+										'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',
699
+										'event_espresso'
700
+									),
701
+									'<strong>',
702
+									'</strong>'
703
+								); ?></p>
704 704
                         </div>
705 705
 
706 706
                         <div class="ee-attention txn-admin-apply-payment-accounting-dv admin-modal-dialog-row">
@@ -709,9 +709,9 @@  discard block
 block discarded – undo
709 709
                             <input type="checkbox" value="1" name="delete_txn_reg_status_change[send_notifications]">
710 710
                             <p class="description">
711 711
                                 <?php esc_html_e(
712
-                                    '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.',
713
-                                    'event_espresso'
714
-                                ); ?></p>
712
+									'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.',
713
+									'event_espresso'
714
+								); ?></p>
715 715
                         </div>
716 716
                         <div class="clear"></div>
717 717
 
@@ -743,16 +743,16 @@  discard block
 block discarded – undo
743 743
     <?php endif; // $grand_raw_total > 0?>
744 744
 
745 745
     <?php
746
-    if (WP_DEBUG) {
747
-        $delivered_messages = get_option('EED_Messages__payment', array());
748
-        if (isset($delivered_messages[ $TXN_ID ])) {
749
-            ?>
746
+	if (WP_DEBUG) {
747
+		$delivered_messages = get_option('EED_Messages__payment', array());
748
+		if (isset($delivered_messages[ $TXN_ID ])) {
749
+			?>
750 750
             <h4 class="admin-primary-mbox-h4 hdr-has-icon"><span
751 751
                     class="dashicons dashicons-email-alt"></span>
752 752
                 <?php esc_html_e(
753
-                    'Messages Sent to Primary Registrant',
754
-                    'event_espresso'
755
-                ); ?></h4>
753
+					'Messages Sent to Primary Registrant',
754
+					'event_espresso'
755
+				); ?></h4>
756 756
 
757 757
             <div class="admin-primary-mbox-tbl-wrap">
758 758
                 <table class="admin-primary-mbox-tbl">
@@ -766,26 +766,26 @@  discard block
 block discarded – undo
766 766
                     </thead>
767 767
                     <tbody>
768 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'),
774
-                                    ($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
775
-                                ); ?></td>
773
+									get_option('date_format') . ' ' . get_option('time_format'),
774
+									($timestamp + (get_option('gmt_offset') * HOUR_IN_SECONDS))
775
+								); ?></td>
776 776
                             <td class="jst-left"><?php echo isset($delivered_message['message_type'])
777
-                                    ? $delivered_message['message_type'] : ''; ?></td>
777
+									? $delivered_message['message_type'] : ''; ?></td>
778 778
                             <td class="jst-left"><?php echo isset($delivered_message['pay_status'])
779
-                                    ? $delivered_message['pay_status'] : ''; ?></td>
779
+									? $delivered_message['pay_status'] : ''; ?></td>
780 780
                             <td class="jst-left"><?php echo isset($delivered_message['txn_status'])
781
-                                    ? $delivered_message['txn_status'] : ''; ?></td>
781
+									? $delivered_message['txn_status'] : ''; ?></td>
782 782
                         </tr>
783 783
                     <?php endforeach; // $delivered_messages?>
784 784
                     </tbody>
785 785
                 </table>
786 786
             </div>
787 787
             <?php
788
-        }
789
-    }
790
-    ?>
788
+		}
789
+	}
790
+	?>
791 791
 </div>
Please login to merge, or discard this patch.
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
@@ -213,10 +213,13 @@  discard block
 block discarded – undo
213 213
                                     false
214 214
                                 ); ?></span></th>
215 215
                     </tr>
216
-                <?php else : ?>
216
+                <?php else {
217
+	: ?>
217 218
                     <tr id="txn-admin-no-payments-tr" class="admin-primary-mbox-total-tr">
218 219
                         <td class=" jst-rght" colspan="11">
219
-                            <span class="important-notice"><?php echo $no_payment_text; ?></span>
220
+                            <span class="important-notice"><?php echo $no_payment_text;
221
+}
222
+?></span>
220 223
                         </td>
221 224
                     </tr>
222 225
                     <tr id="txn-admin-payments-total-tr" class="admin-primary-mbox-total-tr hidden">
@@ -307,13 +310,16 @@  discard block
 block discarded – undo
307 310
                         <?php esc_html_e('Apply Refund', 'event_espresso'); ?>
308 311
                     </a>
309 312
                 </li>
310
-            <?php else : ?>
313
+            <?php else {
314
+	: ?>
311 315
                 <li>
312 316
                     <p>
313 317
                         <?php esc_html__(
314 318
                             'You do not have access to apply payments or refunds.',
315 319
                             'event_espresso'
316
-                        ); ?></p>
320
+                        );
321
+}
322
+?></p>
317 323
                 </li>
318 324
             <?php endif; ?>
319 325
         </ul>
Please login to merge, or discard this patch.