Completed
Branch fix/escaping-2 (862633)
by
unknown
16:22 queued 14:36
created
modules/ticket_selector/templates/ticket_details.template.php 2 patches
Indentation   +122 added lines, -122 removed lines patch added patch discarded remove patch
@@ -20,28 +20,28 @@  discard block
 block discarded – undo
20 20
 use EventEspresso\modules\ticket_selector\TicketDetails;
21 21
 
22 22
 $event_date_label = apply_filters(
23
-    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date',
24
-    esc_html__('Event Date ', 'event_espresso')
23
+	'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date',
24
+	esc_html__('Event Date ', 'event_espresso')
25 25
 );
26 26
 
27 27
 $sold_label = apply_filters(
28
-    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold',
29
-    esc_html__('Sold', 'event_espresso')
28
+	'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold',
29
+	esc_html__('Sold', 'event_espresso')
30 30
 );
31 31
 
32 32
 $remaining_label = apply_filters(
33
-    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left',
34
-    esc_html__('Remaining', 'event_espresso')
33
+	'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left',
34
+	esc_html__('Remaining', 'event_espresso')
35 35
 );
36 36
 
37 37
 $total_sold_label = apply_filters(
38
-    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold',
39
-    esc_html__('Total Sold', 'event_espresso')
38
+	'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold',
39
+	esc_html__('Total Sold', 'event_espresso')
40 40
 );
41 41
 
42 42
 $spaces_left_label = apply_filters(
43
-    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left',
44
-    esc_html__('Total Spaces Left', 'event_espresso')
43
+	'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left',
44
+	esc_html__('Total Spaces Left', 'event_espresso')
45 45
 );
46 46
 
47 47
 ?>
@@ -55,32 +55,32 @@  discard block
 block discarded – undo
55 55
                     <p><?php echo $ticket->description(); // already escaped ?></p>
56 56
 
57 57
                     <?php
58
-                    do_action(
59
-                        'AHEE__ticket_selector_chart_template__ticket_details__after_description',
60
-                        $ticket,
61
-                        $ticket_price,
62
-                        $display_ticket_price
63
-                    );
64
-                    ?>
58
+					do_action(
59
+						'AHEE__ticket_selector_chart_template__ticket_details__after_description',
60
+						$ticket,
61
+						$ticket_price,
62
+						$display_ticket_price
63
+					);
64
+					?>
65 65
                     <section class="tckt-slctr-tkt-sale-dates-sctn">
66 66
                         <h5>
67 67
                             <?php echo apply_filters(
68
-                                'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading',
69
-                                esc_html__('Sale Dates', 'event_espresso')
70
-                            ); ?>
68
+								'FHEE__ticket_selector_chart_template__ticket_details_sales_date_heading',
69
+								esc_html__('Sale Dates', 'event_espresso')
70
+							); ?>
71 71
                         </h5>
72 72
                         <span class="drk-grey-text small-text no-bold"> -
73 73
                             <?php echo apply_filters(
74
-                                'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message',
75
-                                esc_html__('The dates when this option is available for purchase.', 'event_espresso')
76
-                            ); ?>
74
+								'FHEE__ticket_selector_chart_template__ticket_details_dates_available_message',
75
+								esc_html__('The dates when this option is available for purchase.', 'event_espresso')
76
+							); ?>
77 77
                         </span>
78 78
                         <br />
79 79
                         <span class="ticket-details-label-spn drk-grey-text">
80 80
                             <?php echo apply_filters(
81
-                                'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale',
82
-                                esc_html__('Goes On Sale:', 'event_espresso')
83
-                            ); ?>
81
+								'FHEE__ticket_selector_chart_template__ticket_details_goes_on_sale',
82
+								esc_html__('Goes On Sale:', 'event_espresso')
83
+							); ?>
84 84
                         </span>
85 85
                         <span class="dashicons dashicons-calendar"></span>
86 86
                         <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format) . ' &nbsp; '; ?>
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
                         <br />
90 90
                         <span class="ticket-details-label-spn drk-grey-text">
91 91
                             <?php echo apply_filters(
92
-                                'FHEE__ticket_selector_chart_template__ticket_details_sales_end',
93
-                                esc_html__('Sales End:', 'event_espresso')
94
-                            ); ?>
92
+								'FHEE__ticket_selector_chart_template__ticket_details_sales_end',
93
+								esc_html__('Sales End:', 'event_espresso')
94
+							); ?>
95 95
                         </span>
96 96
                         <span class="dashicons dashicons-calendar"></span>
97 97
                         <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format) . ' &nbsp; '; ?>
@@ -107,53 +107,53 @@  discard block
 block discarded – undo
107 107
                         <section class="tckt-slctr-tkt-quantities-sctn">
108 108
                             <h5>
109 109
                                 <?php echo apply_filters(
110
-                                    'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading',
111
-                                    esc_html__('Purchasable Quantities', 'event_espresso')
112
-                                ); ?>
110
+									'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_heading',
111
+									esc_html__('Purchasable Quantities', 'event_espresso')
112
+								); ?>
113 113
                             </h5>
114 114
                             <span class="drk-grey-text small-text no-bold"> -
115 115
                                 <?php echo apply_filters(
116
-                                    'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message',
117
-                                    esc_html__(
118
-                                        'The number of tickets that can be purchased per transaction (if available).',
119
-                                        'event_espresso'
120
-                                    )
121
-                                ); ?>
116
+									'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_message',
117
+									esc_html__(
118
+										'The number of tickets that can be purchased per transaction (if available).',
119
+										'event_espresso'
120
+									)
121
+								); ?>
122 122
                             </span>
123 123
                             <br />
124 124
                             <span class="ticket-details-label-spn drk-grey-text">
125 125
                                 <?php echo apply_filters(
126
-                                    'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty',
127
-                                    esc_html__('Minimum Qty:', 'event_espresso')
128
-                                ); ?>
126
+									'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty',
127
+									esc_html__('Minimum Qty:', 'event_espresso')
128
+								); ?>
129 129
                             </span>
130 130
                             <?php
131
-                            echo $ticket->min() > 0 ? $ticket->min() : 0;
131
+							echo $ticket->min() > 0 ? $ticket->min() : 0;
132 132
 
133
-                            if ($ticket->min() > $remaining) {
134
-                                ?> &nbsp;
133
+							if ($ticket->min() > $remaining) {
134
+								?> &nbsp;
135 135
                                 <span class="important-notice small-text">
136 136
                                 <?php echo apply_filters(
137
-                                    'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message',
138
-                                    esc_html__(
139
-                                        'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining',
140
-                                        'event_espresso'
141
-                                    )
142
-                                ); ?>
137
+									'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_min_qty_message',
138
+									esc_html__(
139
+										'The Minimum Quantity purchasable for this ticket exceeds the number of spaces remaining',
140
+										'event_espresso'
141
+									)
142
+								); ?>
143 143
                                 </span>
144 144
                             <?php } ?>
145 145
                             <br />
146 146
                             <?php // $max = min( $max, $max_atndz );?>
147 147
                             <span class="ticket-details-label-spn drk-grey-text">
148 148
                                 <?php echo apply_filters(
149
-                                    'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty',
150
-                                    esc_html__('Maximum Qty:', 'event_espresso')
151
-                                ); ?>
149
+									'FHEE__ticket_selector_chart_template__ticket_details_purchasable_quantities_max_qty',
150
+									esc_html__('Maximum Qty:', 'event_espresso')
151
+								); ?>
152 152
                             </span>
153 153
                             <?php echo $ticket->max() === EE_INF
154
-                                ? esc_html__('no limit', 'event_espresso')
155
-                                : max($ticket->max(), 1);
156
-                            ?>
154
+								? esc_html__('no limit', 'event_espresso')
155
+								: max($ticket->max(), 1);
156
+							?>
157 157
                             <br />
158 158
                         </section>
159 159
                         <br />
@@ -163,31 +163,31 @@  discard block
 block discarded – undo
163 163
                         <section class="tckt-slctr-tkt-uses-sctn">
164 164
                             <h5>
165 165
                                 <?php echo apply_filters(
166
-                                    'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading',
167
-                                    esc_html__('Event Date Ticket Uses', 'event_espresso')
168
-                                ); ?>
166
+									'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_heading',
167
+									esc_html__('Event Date Ticket Uses', 'event_espresso')
168
+								); ?>
169 169
                             </h5>
170 170
                             <span class="drk-grey-text small-text no-bold"> -
171 171
                                 <?php echo apply_filters(
172
-                                    'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message',
173
-                                    sprintf(
174
-                                        esc_html__(
175
-                                            'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s',
176
-                                            'event_espresso'
177
-                                        ),
178
-                                        '<br/>',
179
-                                        '<strong>',
180
-                                        '</strong>'
181
-                                    )
182
-                                );
183
-                                ?>
172
+									'FHEE__ticket_selector_chart_template__ticket_details_event_date_ticket_uses_message',
173
+									sprintf(
174
+										esc_html__(
175
+											'The number of separate event datetimes (see table below) that this ticket can be used to gain admittance to.%1$s%2$sAdmission is always one person per ticket.%3$s',
176
+											'event_espresso'
177
+										),
178
+										'<br/>',
179
+										'<strong>',
180
+										'</strong>'
181
+									)
182
+								);
183
+								?>
184 184
                             </span>
185 185
                             <br />
186 186
                             <span class="ticket-details-label-spn drk-grey-text">
187 187
                                 <?php echo apply_filters(
188
-                                    'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes',
189
-                                    esc_html__('# Datetimes:', 'event_espresso')
190
-                                ); ?>
188
+									'FHEE__ticket_selector_chart_template__ticket_details_event_date_number_datetimes',
189
+									esc_html__('# Datetimes:', 'event_espresso')
190
+								); ?>
191 191
                             </span>
192 192
                             <?php echo $ticket->uses(); ?>
193 193
                             <br />
@@ -195,24 +195,24 @@  discard block
 block discarded – undo
195 195
                     <?php } ?>
196 196
 
197 197
                     <?php
198
-                    $datetimes          = $ticket->datetimes_ordered($event_is_expired, false);
199
-                    $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width';
200
-                    if (! empty($datetimes)) { ?>
198
+					$datetimes          = $ticket->datetimes_ordered($event_is_expired, false);
199
+					$chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width';
200
+					if (! empty($datetimes)) { ?>
201 201
                         <section class="tckt-slctr-tkt-datetimes-sctn">
202 202
                             <h5>
203 203
                                 <?php echo apply_filters(
204
-                                    'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading',
205
-                                    esc_html__('Access', 'event_espresso')
206
-                                ); ?>
204
+									'FHEE__ticket_selector_chart_template__ticket_details_event_access_heading',
205
+									esc_html__('Access', 'event_espresso')
206
+								); ?>
207 207
                             </h5>
208 208
                             <span class="drk-grey-text small-text no-bold"> -
209 209
                                 <?php echo apply_filters(
210
-                                    'FHEE__ticket_selector_chart_template__ticket_details_event_access_message',
211
-                                    esc_html__(
212
-                                        'This option allows access to the following dates and times.',
213
-                                        'event_espresso'
214
-                                    )
215
-                                ); ?>
210
+									'FHEE__ticket_selector_chart_template__ticket_details_event_access_message',
211
+									esc_html__(
212
+										'This option allows access to the following dates and times.',
213
+										'event_espresso'
214
+									)
215
+								); ?>
216 216
                             </span>
217 217
                         <div class="tckt-slctr-tkt-details-tbl-wrap-dv">
218 218
                             <table class="tckt-slctr-tkt-details-tbl">
@@ -222,9 +222,9 @@  discard block
 block discarded – undo
222 222
                                             <span class="dashicons dashicons-calendar"></span>
223 223
                                             <span class="small-text">
224 224
                                             <?php echo apply_filters(
225
-                                                'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date',
226
-                                                esc_html__('Date ', 'event_espresso')
227
-                                            ); ?>
225
+												'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_event_date',
226
+												esc_html__('Date ', 'event_espresso')
227
+											); ?>
228 228
                                         </span>
229 229
                                         </th>
230 230
                                         <th class="tckt-slctr-tkt-details-time-th <?php echo esc_attr($chart_column_width); ?>">
@@ -237,33 +237,33 @@  discard block
 block discarded – undo
237 237
                                         <th class="tckt-slctr-tkt-details-this-ticket-sold-th ee-fourth-width cntr">
238 238
                                             <span class="smaller-text">
239 239
                                                 <?php echo apply_filters(
240
-                                                    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold',
241
-                                                    sprintf(esc_html__('Sold', 'event_espresso'), '<br/>')
242
-                                                ); ?>
240
+													'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_sold',
241
+													sprintf(esc_html__('Sold', 'event_espresso'), '<br/>')
242
+												); ?>
243 243
                                             </span>
244 244
                                         </th>
245 245
                                         <th class="tckt-slctr-tkt-details-this-ticket-left-th ee-fourth-width cntr">
246 246
                                             <span class="smaller-text">
247 247
                                                 <?php echo apply_filters(
248
-                                                    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left',
249
-                                                    sprintf(esc_html__('Remaining', 'event_espresso'), '<br/>')
250
-                                                ); ?>
248
+													'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_this_ticket_left',
249
+													sprintf(esc_html__('Remaining', 'event_espresso'), '<br/>')
250
+												); ?>
251 251
                                             </span>
252 252
                                         </th>
253 253
                                         <th class="tckt-slctr-tkt-details-total-tickets-sold-th ee-fourth-width cntr">
254 254
                                             <span class="smaller-text">
255 255
                                                 <?php echo apply_filters(
256
-                                                    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold',
257
-                                                    sprintf(esc_html__('Total%sSold', 'event_espresso'), '<br/>')
258
-                                                ); ?>
256
+													'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_sold',
257
+													sprintf(esc_html__('Total%sSold', 'event_espresso'), '<br/>')
258
+												); ?>
259 259
                                             </span>
260 260
                                         </th>
261 261
                                         <th class="tckt-slctr-tkt-details-total-tickets-left-th ee-fourth-width cntr">
262 262
                                             <span class="smaller-text">
263 263
                                                 <?php echo apply_filters(
264
-                                                    'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left',
265
-                                                    sprintf(esc_html__('Total Spaces%sLeft', 'event_espresso'), '<br/>')
266
-                                                ); ?>
264
+													'FHEE__ticket_selector_chart_template__ticket_details_event_access_table_total_ticket_left',
265
+													sprintf(esc_html__('Total Spaces%sLeft', 'event_espresso'), '<br/>')
266
+												); ?>
267 267
                                             </span>
268 268
                                         </th>
269 269
                                         <?php endif; // end $show_ticket_sale_columns conditional ?>
@@ -271,25 +271,25 @@  discard block
 block discarded – undo
271 271
                                 </thead>
272 272
                                 <tbody>
273 273
                                 <?php foreach ($datetimes as $datetime) {
274
-                                    if ($datetime instanceof EE_Datetime) { ?>
274
+									if ($datetime instanceof EE_Datetime) { ?>
275 275
                                     <tr>
276 276
                                         <td data-th="<?php echo esc_attr($event_date_label); ?>" class="small-text">
277 277
                                             <?php $datetime_name = $datetime->name(); ?>
278 278
                                             <?php echo ! empty($datetime_name)
279
-                                            ? '<b>' . esc_html($datetime_name) . '</b><br/>'
280
-                                            : ''; ?>
279
+											? '<b>' . esc_html($datetime_name) . '</b><br/>'
280
+											: ''; ?>
281 281
                                             <?php echo $datetime->date_range(
282
-                                                $date_format,
283
-                                                esc_html__(' to  ', 'event_espresso')
284
-                                            ); ?>
282
+												$date_format,
283
+												esc_html__(' to  ', 'event_espresso')
284
+											); ?>
285 285
                                         </td>
286 286
                                         <td data-th="<?php esc_html_e('Time ', 'event_espresso'); ?>"
287 287
                                             class="cntr small-text"
288 288
                                         >
289 289
                                             <?php echo $datetime->time_range(
290
-                                                $time_format,
291
-                                                esc_html__(' to  ', 'event_espresso')
292
-                                            ); ?>
290
+												$time_format,
291
+												esc_html__(' to  ', 'event_espresso')
292
+											); ?>
293 293
                                         </td>
294 294
                                         <?php if ($show_ticket_sale_columns) : ?>
295 295
                                         <td data-th="<?php echo esc_attr($sold_label); ?>" class="cntr small-text">
@@ -297,25 +297,25 @@  discard block
 block discarded – undo
297 297
                                         </td>
298 298
                                         <td data-th="<?php echo esc_attr($remaining_label); ?>" class="cntr small-text">
299 299
                                             <?php echo $remaining === EE_INF
300
-                                                ? '<span class="smaller-text">'
301
-                                                  . esc_html__('unlimited ', 'event_espresso')
302
-                                                  . '</span>'
303
-                                                : $remaining; ?>
300
+												? '<span class="smaller-text">'
301
+												  . esc_html__('unlimited ', 'event_espresso')
302
+												  . '</span>'
303
+												: $remaining; ?>
304 304
                                         </td>
305 305
                                         <td data-th="<?php echo esc_attr($total_sold_label); ?>" class="cntr small-text">
306 306
                                             <?php echo $datetime->sold(); ?>
307 307
                                         </td>
308 308
                                             <?php $tkts_left = $datetime->sold_out()
309
-                                                ? '<span class="sold-out smaller-text">'
310
-                                                  . esc_html__('Sold&nbsp;Out', 'event_espresso')
311
-                                                  . '</span>'
312
-                                                : $datetime->spaces_remaining(); ?>
309
+												? '<span class="sold-out smaller-text">'
310
+												  . esc_html__('Sold&nbsp;Out', 'event_espresso')
311
+												  . '</span>'
312
+												: $datetime->spaces_remaining(); ?>
313 313
                                         <td data-th="<?php echo esc_attr($spaces_left_label); ?>" class="cntr small-text">
314 314
                                             <?php echo $tkts_left === EE_INF
315
-                                                ? '<span class="smaller-text">'
316
-                                                  . esc_html__('unlimited ', 'event_espresso')
317
-                                                  . '</span>'
318
-                                                : $tkts_left; ?>
315
+												? '<span class="smaller-text">'
316
+												  . esc_html__('unlimited ', 'event_espresso')
317
+												  . '</span>'
318
+												: $tkts_left; ?>
319 319
                                         </td>
320 320
                                         <?php endif; // end $show_ticket_sale_columns conditional ?>
321 321
                                     </tr>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                             ); ?>
84 84
                         </span>
85 85
                         <span class="dashicons dashicons-calendar"></span>
86
-                        <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format) . ' &nbsp; '; ?>
86
+                        <?php echo $ticket->get_i18n_datetime('TKT_start_date', $date_format).' &nbsp; '; ?>
87 87
                         <span class="dashicons dashicons-clock"></span>
88 88
                         <?php echo $ticket->get_i18n_datetime('TKT_start_date', $time_format); ?>
89 89
                         <br />
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                             ); ?>
95 95
                         </span>
96 96
                         <span class="dashicons dashicons-calendar"></span>
97
-                        <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format) . ' &nbsp; '; ?>
97
+                        <?php echo $ticket->get_i18n_datetime('TKT_end_date', $date_format).' &nbsp; '; ?>
98 98
                         <span class="dashicons dashicons-clock"></span>
99 99
                         <?php echo $ticket->get_i18n_datetime('TKT_end_date', $time_format); ?>
100 100
                         <br />
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
                         <br />
160 160
                     <?php } ?>
161 161
 
162
-                    <?php if ((! defined('EE_DECAF') || EE_DECAF !== true) && $ticket->uses() !== EE_INF) { ?>
162
+                    <?php if (( ! defined('EE_DECAF') || EE_DECAF !== true) && $ticket->uses() !== EE_INF) { ?>
163 163
                         <section class="tckt-slctr-tkt-uses-sctn">
164 164
                             <h5>
165 165
                                 <?php echo apply_filters(
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
                     <?php
198 198
                     $datetimes          = $ticket->datetimes_ordered($event_is_expired, false);
199 199
                     $chart_column_width = $show_ticket_sale_columns ? ' ee-fourth-width' : ' ee-half-width';
200
-                    if (! empty($datetimes)) { ?>
200
+                    if ( ! empty($datetimes)) { ?>
201 201
                         <section class="tckt-slctr-tkt-datetimes-sctn">
202 202
                             <h5>
203 203
                                 <?php echo apply_filters(
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
                                         <td data-th="<?php echo esc_attr($event_date_label); ?>" class="small-text">
277 277
                                             <?php $datetime_name = $datetime->name(); ?>
278 278
                                             <?php echo ! empty($datetime_name)
279
-                                            ? '<b>' . esc_html($datetime_name) . '</b><br/>'
279
+                                            ? '<b>'.esc_html($datetime_name).'</b><br/>'
280 280
                                             : ''; ?>
281 281
                                             <?php echo $datetime->date_range(
282 282
                                                 $date_format,
@@ -333,4 +333,4 @@  discard block
 block discarded – undo
333 333
             </div>
334 334
         </td>
335 335
     </tr>
336
-<?php endif;  // end template_settings->show_ticket_details check
336
+<?php endif; // end template_settings->show_ticket_details check
Please login to merge, or discard this patch.
reg_steps/attendee_information/attendee_info_single.template.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@  discard block
 block discarded – undo
10 10
 <?php if (! is_admin()) : ?>
11 11
     <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
12 12
         <?php echo apply_filters(
13
-            'FHEE__registration_page_attendee_information__attendee_information_pg',
14
-            sprintf(
15
-                esc_html__(
16
-                    'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.',
17
-                    'event_espresso'
18
-                ),
19
-                '<br />',
20
-                '<span class="asterisk">*</span>'
21
-            )
22
-        ); ?>
13
+			'FHEE__registration_page_attendee_information__attendee_information_pg',
14
+			sprintf(
15
+				esc_html__(
16
+					'In order to process your registration, we ask you to provide the following information.%1$sPlease note that all fields marked with an asterisk (%2$s) are required.',
17
+					'event_espresso'
18
+				),
19
+				'<br />',
20
+				'<span class="asterisk">*</span>'
21
+			)
22
+		); ?>
23 23
     </p>
24 24
 <?php endif; ?>
25 25
 
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 $prev_ticket = 0;
30 30
 
31 31
 if (count($registrations) > 0) {
32
-    $ticketID = esc_attr(key($template_args['ticket_count']));
33
-    ?>
32
+	$ticketID = esc_attr(key($template_args['ticket_count']));
33
+	?>
34 34
 
35 35
     <div id="spco-attendee-panel-dv-<?php echo esc_attr($ticketID); ?>"
36 36
          class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo sanitize_html_class($ticketID); ?>"
@@ -58,37 +58,37 @@  discard block
 block discarded – undo
58 58
                 </thead>
59 59
                 <tbody>
60 60
                     <?php
61
-                    // Store previous values to avoid duplicated rows.
62
-                    $prev_ticket = 0;
63
-                    // Display all tickets inside.
64
-                    foreach ($registrations as $registration) {
65
-                        if ($registration instanceof EE_Registration) {
66
-                            if ($registration->ticket()->ID() !== $prev_ticket) {
67
-                                echo $ticket_line_item[ $registration->ticket()->ID() ]; // already escaped
68
-                            }
61
+					// Store previous values to avoid duplicated rows.
62
+					$prev_ticket = 0;
63
+					// Display all tickets inside.
64
+					foreach ($registrations as $registration) {
65
+						if ($registration instanceof EE_Registration) {
66
+							if ($registration->ticket()->ID() !== $prev_ticket) {
67
+								echo $ticket_line_item[ $registration->ticket()->ID() ]; // already escaped
68
+							}
69 69
 
70
-                            $prev_ticket = $registration->ticket()->ID();
71
-                        }
72
-                    }
73
-                    ?>
70
+							$prev_ticket = $registration->ticket()->ID();
71
+						}
72
+					}
73
+					?>
74 74
                 </tbody>
75 75
             </table>
76 76
         </div><!-- close spco-ticket-info-dv -->
77 77
 
78 78
         <?php
79
-        // Display the forms below the table.
80
-        foreach ($registrations as $registration) {
81
-            if ($registration instanceof EE_Registration) {
82
-                // Attendee Questions.
83
-                $reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link());
84
-                echo ${$reg_form}; // already escaped
85
-            } // if ( $registration instanceof EE_Registration )
86
-        } // end foreach ( $registrations as $registration )
79
+		// Display the forms below the table.
80
+		foreach ($registrations as $registration) {
81
+			if ($registration instanceof EE_Registration) {
82
+				// Attendee Questions.
83
+				$reg_form = EE_Template_Layout::get_subform_name($registration->reg_url_link());
84
+				echo ${$reg_form}; // already escaped
85
+			} // if ( $registration instanceof EE_Registration )
86
+		} // end foreach ( $registrations as $registration )
87 87
 
88
-        ?>
88
+		?>
89 89
     </div><!-- close spco-attendee-panel-dv -->
90 90
     <?php
91
-    echo $default_hidden_inputs; // already escaped
91
+	echo $default_hidden_inputs; // already escaped
92 92
 } // end if ( count( $registrations ) > 0 )
93 93
 
94 94
 ?>
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
  * @var EE_Registration[] $registrations
8 8
  */
9 9
 ?>
10
-<?php if (! is_admin()) : ?>
10
+<?php if ( ! is_admin()) : ?>
11 11
     <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
12 12
         <?php echo apply_filters(
13 13
             'FHEE__registration_page_attendee_information__attendee_information_pg',
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
          class="spco-attendee-panel-dv spco-attendee-ticket-<?php echo sanitize_html_class($ticketID); ?>"
37 37
     >
38 38
         <div class="spco-ticket-info-dv small-text">
39
-            <?php if (! is_admin()) : ?>
39
+            <?php if ( ! is_admin()) : ?>
40 40
                 <h5><?php esc_html_e('Details', 'event_espresso'); ?></h5>
41 41
             <?php endif; ?>
42 42
             <table class="spco-ticket-details">
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     foreach ($registrations as $registration) {
65 65
                         if ($registration instanceof EE_Registration) {
66 66
                             if ($registration->ticket()->ID() !== $prev_ticket) {
67
-                                echo $ticket_line_item[ $registration->ticket()->ID() ]; // already escaped
67
+                                echo $ticket_line_item[$registration->ticket()->ID()]; // already escaped
68 68
                             }
69 69
 
70 70
                             $prev_ticket = $registration->ticket()->ID();
Please login to merge, or discard this patch.
admin/extend/registrations/templates/newsletter-send-form.template.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
             <input type="hidden" name="batch_message[id_type]" value="<?php echo esc_attr($id_type); ?>">
36 36
             <input id="newsletter-batch-ids" type="hidden" name="batch_message[ids]" value="">
37 37
             <h3 class="newsletter-send-form-title"><?php
38
-                printf(
39
-                    esc_html__('Sending batch message to %s people...', 'event_espresso'),
40
-                    '[NUMPEOPLE]'
41
-                ); ?></h3>
38
+				printf(
39
+					esc_html__('Sending batch message to %s people...', 'event_espresso'),
40
+					'[NUMPEOPLE]'
41
+				); ?></h3>
42 42
             <label for="batch-message-template-selector"><?php esc_html_e('Select Template:', 'event_espresso'); ?></label>
43 43
             <?php echo $template_selector; ?>
44 44
             <div class="batch-message-edit-fields" style="display:none;">
@@ -60,10 +60,10 @@  discard block
 block discarded – undo
60 60
                     <div id="shortcode-container-subject"
61 61
                          class="shortcodes-info-container ee_shortcode_chooser_container" style="display:none">
62 62
                         <p><?php
63
-                            esc_html_e(
64
-                                'The following shortcodes can be used in the subject field:',
65
-                                'event_espresso'
66
-                            ); ?></p>
63
+							esc_html_e(
64
+								'The following shortcodes can be used in the subject field:',
65
+								'event_espresso'
66
+							); ?></p>
67 67
                         <p><?php echo $shortcodes['Subject']; ?></p>
68 68
                     </div>
69 69
                     <input type="text" name="batch_message[subject]" id="batch-message-subject"
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
                     <div id="shortcode-container-content"
77 77
                          class="shortcodes-info-container ee_shortcode_chooser_container" style="display:none">
78 78
                         <p><?php
79
-                            esc_html_e(
80
-                                'The following shortcodes can be used in the content area:',
81
-                                'event_espresso'
82
-                            ); ?></p>
79
+							esc_html_e(
80
+								'The following shortcodes can be used in the content area:',
81
+								'event_espresso'
82
+							); ?></p>
83 83
                         <p><?php echo $shortcodes['[NEWSLETTER_CONTENT]']; ?></p>
84 84
                     </div>
85 85
                     <textarea name="batch_message[content]" id="batch-message-content"
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
                 <input type="submit" class="batch-message-submit button button-primary alignright"
89 89
                        name="batch-message-submit" value="<?php esc_html_e('Send', 'event_espresso'); ?>">
90 90
                 <button class="batch-message-cancel button button-secondary alignright"><?php
91
-                    esc_html_e(
92
-                        'Cancel',
93
-                        'event_espresso'
94
-                    ); ?></button>
91
+					esc_html_e(
92
+						'Cancel',
93
+						'event_espresso'
94
+					); ?></button>
95 95
                 <div style="clear:both"></div>
96 96
             </div>
97 97
         </form>
Please login to merge, or discard this patch.
caffeinated/admin/extend/events/templates/import_page.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <div class="import-area">
2 2
     <div class="important-notice">
3 3
         <?php esc_html_e(
4
-            'The import feature has been disabled because of bugs. It is expected to be put back in place soon.',
5
-            'event_espresso'
6
-        ); ?>
4
+			'The import feature has been disabled because of bugs. It is expected to be put back in place soon.',
5
+			'event_espresso'
6
+		); ?>
7 7
     </div>
8 8
     <?php // echo $form; ?>
9 9
 </div>
Please login to merge, or discard this patch.
caffeinated/admin/extend/about/templates/whats_new.template.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@  discard block
 block discarded – undo
3 3
 $is_major_release = true;
4 4
 $type             = $is_major_release ? 'major' : 'minor';
5 5
 $heading          = $is_major_release
6
-    ? _n('Major Release Information', 'Major Releases', 1, 'event_espresso')
7
-    : _n('Minor Release Information', 'Minor Releases', 1, 'event_espresso');
6
+	? _n('Major Release Information', 'Major Releases', 1, 'event_espresso')
7
+	: _n('Minor Release Information', 'Minor Releases', 1, 'event_espresso');
8 8
 
9 9
 $version = explode('.', EVENT_ESPRESSO_VERSION);
10 10
 array_pop($version);
@@ -14,48 +14,48 @@  discard block
 block discarded – undo
14 14
 <div class="changelog point-releases">
15 15
     <h3><?php echo esc_html($heading); ?></h3>
16 16
     <p><?php
17
-        printf(
18
-            esc_html__('%1$sVersion %2$s%3$s is a %4$s release.', 'event_espresso'),
19
-            '<strong>',
20
-            EVENT_ESPRESSO_VERSION,
21
-            '</strong>',
22
-            $type
23
-        ); ?>
17
+		printf(
18
+			esc_html__('%1$sVersion %2$s%3$s is a %4$s release.', 'event_espresso'),
19
+			'<strong>',
20
+			EVENT_ESPRESSO_VERSION,
21
+			'</strong>',
22
+			$type
23
+		); ?>
24 24
         <?php printf(
25
-            esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'),
26
-            '<a href="https://eventespresso.com/wiki/ee4-changelog/#'
27
-            . $version
28
-            . '" target="_blank" rel="noopener noreferrer">',
29
-            '</a>'
30
-        ); ?>
25
+			esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'),
26
+			'<a href="https://eventespresso.com/wiki/ee4-changelog/#'
27
+			. $version
28
+			. '" target="_blank" rel="noopener noreferrer">',
29
+			'</a>'
30
+		); ?>
31 31
     </p>
32 32
 </div><!-- end .changelog .point-releases -->
33 33
 
34 34
 <div class="changelog">
35 35
     <?php
36
-    // maintenance mode on?
37
-    if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
38
-        ?>
36
+	// maintenance mode on?
37
+	if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
38
+		?>
39 39
         <div class="ee-attention">
40 40
             <h2 class="ee-maintenance-mode-callout">
41 41
                 <?php esc_html_e('Event Espresso is in full maintenance mode.', 'event_espresso'); ?>
42 42
             </h2>
43 43
             <p>
44 44
                 <?php
45
-                printf(
46
-                    esc_html__(
47
-                        'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %1$sEvent Espresso Maintenance%2$s page.',
48
-                        'event_espresso'
49
-                    ),
50
-                    '<a href="admin.php?page=espresso_maintenance_settings">',
51
-                    '</a>'
52
-                );
53
-                ?>
45
+				printf(
46
+					esc_html__(
47
+						'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %1$sEvent Espresso Maintenance%2$s page.',
48
+						'event_espresso'
49
+					),
50
+					'<a href="admin.php?page=espresso_maintenance_settings">',
51
+					'</a>'
52
+				);
53
+				?>
54 54
             </p>
55 55
         </div>
56 56
         <?php
57
-    }
58
-    ?>
57
+	}
58
+	?>
59 59
 
60 60
     <h2 class="about-headline-callout">Updates &amp; Fixes in EE 4.10</h2>
61 61
     <p class="ee-highlight ee-highlight--info">This release brought many background updates and improvements to
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     <div class='ee-new-features ee-card-grid ee-card-grid-3-cols'>
68 68
 
69 69
     <?php
70
-    /*
70
+	/*
71 71
         WANT TO ADD A FEW FEATURE?
72 72
         COPY THE FOLLOWING:
73 73
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         ADD "ee-grid-row-span-3" TO THE "ee-card ee-new-feature-card" ex:
100 100
         <div class='ee-card ee-new-feature-card ee-grid-row-span-3'>
101 101
     */
102
-    ?>
102
+	?>
103 103
 
104 104
         <div class='ee-card ee-new-feature-card'>
105 105
             <h4>Attendee Block for WordPress 5 Gutenberg</h4>
Please login to merge, or discard this patch.
registration_form/templates/question_groups_main_meta_box.template.php 2 patches
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
 /* @var EE_Question[] $all_questions */
14 14
 assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions
15 15
 foreach ($all_questions as $unused_question) {
16
-    assert($unused_question);
17
-    assert($unused_question instanceof EE_Question);
16
+	assert($unused_question);
17
+	assert($unused_question instanceof EE_Question);
18 18
 }
19 19
 /* @var array $values . Array of arrays, where each sub-array contains 2 keys: 'id' (internal value) and 'name' (label for displaying) */
20 20
 assert(is_array($values));
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
             <th>
34 34
                 <label for="QSG_name">
35 35
                     <?php esc_html_e('Group Name', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
36
-                        'group_name_info'
37
-                    ); ?>
36
+						'group_name_info'
37
+					); ?>
38 38
                 </label>
39 39
             </th>
40 40
             <td>
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
             <th>
49 49
                 <label for="QSG_identifier">
50 50
                     <?php esc_html_e('Group Identifier', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
51
-                        'group_identifier_info'
52
-                    ); ?>
51
+						'group_identifier_info'
52
+					); ?>
53 53
                 </label>
54 54
             </th>
55 55
             <td>
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
             <th>
69 69
                 <label for="QSG_desc">
70 70
                     <?php esc_html_e('Description', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
71
-                        'group_description_info'
72
-                    ); ?>
71
+						'group_description_info'
72
+					); ?>
73 73
                 </label>
74 74
             </th>
75 75
             <td>
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
             <th>
83 83
                 <label for="QSG_order">
84 84
                     <?php esc_html_e('Question Group Order', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
85
-                        'group_order_info'
86
-                    ); ?>
85
+						'group_order_info'
86
+					); ?>
87 87
                 </label>
88 88
             </th>
89 89
             <td>
@@ -96,17 +96,17 @@  discard block
 block discarded – undo
96 96
             <th>
97 97
                 <label>
98 98
                     <?php esc_html_e('Show Name', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
99
-                        'show_group_name_info'
100
-                    ); ?>
99
+						'show_group_name_info'
100
+					); ?>
101 101
                 </label>
102 102
             </th>
103 103
             <td>
104 104
                 <label for="QSG_show_group_name">
105 105
                     <?php echo EEH_Form_Fields::select_input(
106
-                        'QSG_show_group_name',
107
-                        $values,
108
-                        $question_group->show_group_name()
109
-                    ); ?>
106
+						'QSG_show_group_name',
107
+						$values,
108
+						$question_group->show_group_name()
109
+					); ?>
110 110
                     <p class="description"><?php esc_html_e('Show Group Name on Registration Page?', 'event_espresso'); ?></p>
111 111
                 </label>
112 112
             </td>
@@ -116,20 +116,20 @@  discard block
 block discarded – undo
116 116
             <th>
117 117
                 <label>
118 118
                     <?php esc_html_e(' Show Description', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
119
-                        'show_group_description_info'
120
-                    ); ?>
119
+						'show_group_description_info'
120
+					); ?>
121 121
                 </label>
122 122
             </th>
123 123
             <td>
124 124
                 <label for="QSG_show_group_order">
125 125
                     <?php echo EEH_Form_Fields::select_input(
126
-                        'QSG_show_group_desc',
127
-                        $values,
128
-                        $question_group->show_group_desc()
129
-                    ); ?>
126
+						'QSG_show_group_desc',
127
+						$values,
128
+						$question_group->show_group_desc()
129
+					); ?>
130 130
                     <p class="description"><?php
131
-                        esc_html_e(' Show Group Description on Registration Page?', 'event_espresso');
132
-                    ?></p>
131
+						esc_html_e(' Show Group Description on Registration Page?', 'event_espresso');
132
+					?></p>
133 133
                 </label>
134 134
                 <input type="hidden" name="QSG_system" value="<?php echo esc_attr($question_group->system_group()); ?>">
135 135
             </td>
@@ -145,85 +145,85 @@  discard block
 block discarded – undo
145 145
     <div class="form-table question-group-questions inside">
146 146
         <div class="padding">
147 147
             <p><span class="description"><?php
148
-                    esc_html_e(
149
-                        'Select which questions should be shown in this group by checking or unchecking boxes. You can drag and drop questions to reorder them. Your changes will be updated when you save.',
150
-                        'event_espresso'
151
-                    ); ?></span></p>
148
+					esc_html_e(
149
+						'Select which questions should be shown in this group by checking or unchecking boxes. You can drag and drop questions to reorder them. Your changes will be updated when you save.',
150
+						'event_espresso'
151
+					); ?></span></p>
152 152
             <div>
153 153
                 <ul class="question-list-sortable">
154 154
                     <?php
155
-                    $question_order = 0;
156
-                    $question_group_questions = $question_group->questions();
157
-                    foreach ($all_questions as $question_ID => $question) {
158
-                        if ($question instanceof EE_Question) {
159
-                            /*@var $question EE_Question*/
160
-                            $checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : '';
161
-                            // disable questions from the personal information question group
162
-                            // is it required in the current question group? if so don't allow admins to remove it
163
-                            $disabled = in_array(
164
-                                $question->system_ID(),
165
-                                EEM_Question::instance()->required_system_questions_in_system_question_group(
166
-                                    $QSG_system
167
-                                )
168
-                            ) ? 'disabled="disabled"' : '';
169
-                            // limit where system questions can appear
170
-                            if (
171
-                                $question->system_ID() &&
172
-                                ! in_array(
173
-                                    $question->system_ID(),
174
-                                    EEM_Question::instance()->allowed_system_questions_in_system_question_group(
175
-                                        $QSG_system
176
-                                    )
177
-                                )
178
-                            ) {
179
-                                continue; // skip over system question not assigned to this group except for the address system group cause we want the address questions to display even if they aren't selected (but still not show the personal system questions).  The third condition checks if we're displaying a non system question group and the question is a system question, then we skip because for non-system question groups we only want to show non-system questions.
180
-                            }
181
-                            ?>
155
+					$question_order = 0;
156
+					$question_group_questions = $question_group->questions();
157
+					foreach ($all_questions as $question_ID => $question) {
158
+						if ($question instanceof EE_Question) {
159
+							/*@var $question EE_Question*/
160
+							$checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : '';
161
+							// disable questions from the personal information question group
162
+							// is it required in the current question group? if so don't allow admins to remove it
163
+							$disabled = in_array(
164
+								$question->system_ID(),
165
+								EEM_Question::instance()->required_system_questions_in_system_question_group(
166
+									$QSG_system
167
+								)
168
+							) ? 'disabled="disabled"' : '';
169
+							// limit where system questions can appear
170
+							if (
171
+								$question->system_ID() &&
172
+								! in_array(
173
+									$question->system_ID(),
174
+									EEM_Question::instance()->allowed_system_questions_in_system_question_group(
175
+										$QSG_system
176
+									)
177
+								)
178
+							) {
179
+								continue; // skip over system question not assigned to this group except for the address system group cause we want the address questions to display even if they aren't selected (but still not show the personal system questions).  The third condition checks if we're displaying a non system question group and the question is a system question, then we skip because for non-system question groups we only want to show non-system questions.
180
+							}
181
+							?>
182 182
                             <li class="ee-question-sortable">
183 183
                                 <label for="question-<?php echo esc_attr($question_ID); ?>">
184 184
                                     <input type="checkbox" name="questions[<?php echo esc_attr($question_ID); ?>]"
185 185
                                            id="question-<?php echo esc_attr($question_ID); ?>"
186 186
                                            value="<?php echo esc_attr($question_ID); ?>"<?php echo $disabled; ?><?php echo $checked; ?>/>
187 187
                                     <span class="question-text"><?php
188
-                                        echo trim($question->display_text())
189
-                                             . (95 <= strlen(trim($question->display_text()))
190
-                                                ? "&hellip;"
191
-                                                : '');
192
-                                                                ?>
188
+										echo trim($question->display_text())
189
+											 . (95 <= strlen(trim($question->display_text()))
190
+												? "&hellip;"
191
+												: '');
192
+																?>
193 193
                                     </span>
194 194
                                     <input class="question-group-QGQ_order" type="hidden"
195 195
                                            name="question_orders[<?php echo esc_attr($question_ID); ?>]"
196 196
                                            value="<?php echo esc_attr($question_order); ?>">
197 197
                                 </label>
198 198
                                 <?php
199
-                                if (
200
-                                    EE_Registry::instance()->CAP->current_user_can(
201
-                                        'ee_edit_question',
202
-                                        'espresso_registration_form_edit_question',
203
-                                        $question->ID()
204
-                                    )
205
-                                ) {
206
-                                    $edit_query_args = array(
207
-                                        'action' => 'edit_question',
208
-                                        'QST_ID' => $question->ID(),
209
-                                    );
210
-                                    $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
199
+								if (
200
+									EE_Registry::instance()->CAP->current_user_can(
201
+										'ee_edit_question',
202
+										'espresso_registration_form_edit_question',
203
+										$question->ID()
204
+									)
205
+								) {
206
+									$edit_query_args = array(
207
+										'action' => 'edit_question',
208
+										'QST_ID' => $question->ID(),
209
+									);
210
+									$edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
211 211
 
212
-                                    echo '<a href="' . $edit_link . '" target="_blank" title="' .
213
-                                        sprintf(
214
-                                            esc_attr__('Edit %s', 'event_espresso'),
215
-                                            $question->admin_label()
216
-                                        )
217
-                                        . '"><span class="dashicons dashicons-edit"></span>
212
+									echo '<a href="' . $edit_link . '" target="_blank" title="' .
213
+										sprintf(
214
+											esc_attr__('Edit %s', 'event_espresso'),
215
+											$question->admin_label()
216
+										)
217
+										. '"><span class="dashicons dashicons-edit"></span>
218 218
                                         </a>';
219
-                                }
220
-                                ?>
219
+								}
220
+								?>
221 221
                             </li>
222 222
                             <?php
223
-                            $question_order++;
224
-                        }
225
-                    }
226
-                    ?>
223
+							$question_order++;
224
+						}
225
+					}
226
+					?>
227 227
                 </ul>
228 228
             </div>
229 229
         </div>
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 assert($question_group);
12 12
 assert($question_group instanceof EE_Question_Group);
13 13
 /* @var EE_Question[] $all_questions */
14
-assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions
14
+assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions))); // list of unused questions
15 15
 foreach ($all_questions as $unused_question) {
16 16
     assert($unused_question);
17 17
     assert($unused_question instanceof EE_Question);
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 <input id="QSG_identifier" name="QSG_identifier<?php echo esc_attr($id); ?>"
57 57
                        value="<?php echo esc_attr($question_group->get_f('QSG_identifier')); ?>" type="text"
58 58
                        class="regular-text"<?php echo $disabled; ?>>
59
-                <?php if (! empty($QSG_system)) { ?>
59
+                <?php if ( ! empty($QSG_system)) { ?>
60 60
                     <p><span class="description" style="color:#D54E21;">
61 61
                             <?php esc_html_e('System question group! This field cannot be changed.', 'event_espresso') ?>
62 62
                     </span><br/></p>
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                     foreach ($all_questions as $question_ID => $question) {
158 158
                         if ($question instanceof EE_Question) {
159 159
                             /*@var $question EE_Question*/
160
-                            $checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : '';
160
+                            $checked = isset($question_group_questions[$question_ID]) ? ' checked="checked"' : '';
161 161
                             // disable questions from the personal information question group
162 162
                             // is it required in the current question group? if so don't allow admins to remove it
163 163
                             $disabled = in_array(
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                                     );
210 210
                                     $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
211 211
 
212
-                                    echo '<a href="' . $edit_link . '" target="_blank" title="' .
212
+                                    echo '<a href="'.$edit_link.'" target="_blank" title="'.
213 213
                                         sprintf(
214 214
                                             esc_attr__('Edit %s', 'event_espresso'),
215 215
                                             $question->admin_label()
Please login to merge, or discard this patch.
extend/registration_form/templates/questions_in_group_meta_box.template.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,17 +3,17 @@
 block discarded – undo
3 3
 assert($question_group instanceof EE_Question_Group);
4 4
 assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions
5 5
 foreach ($all_questions as $question_option) {
6
-    assert($question_option);
7
-    assert($question_option instanceof EE_Question);
6
+	assert($question_option);
7
+	assert($question_option instanceof EE_Question);
8 8
 }
9 9
 ?>
10 10
 <h4><?php esc_html_e('Check off all questions that you wish to appear in this group.', 'event_espresso'); ?></h4>
11 11
 <ul>
12 12
     <?php
13
-    foreach ($all_questions as $question_ID => $question) {
14
-        /*@var $question EE_Question*/
15
-        $checked = array_key_exists($question_ID, $question_group->questions()) ? ' checked="checked"' : '';
16
-        ?>
13
+	foreach ($all_questions as $question_ID => $question) {
14
+		/*@var $question EE_Question*/
15
+		$checked = array_key_exists($question_ID, $question_group->questions()) ? ' checked="checked"' : '';
16
+		?>
17 17
         <li>
18 18
             <label for="question-<?php echo esc_attr($question_ID); ?>">
19 19
                 <input type="checkbox" name="questions[<?php echo esc_attr($question_ID); ?>]"
Please login to merge, or discard this patch.
admin/new/pricing/templates/pricing_details_main_meta_box.template.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -4,40 +4,40 @@  discard block
 block discarded – undo
4 4
         <tbody>
5 5
         <tr valign="top">
6 6
             <th><label for="PRT_ID"><?php
7
-                    esc_html_e(
8
-                        'Type',
9
-                        'event_espresso'
10
-                    ); ?></label> <?php echo EEH_Template::get_help_tab_link('type_field_info'); ?></th>
7
+					esc_html_e(
8
+						'Type',
9
+						'event_espresso'
10
+					); ?></label> <?php echo EEH_Template::get_help_tab_link('type_field_info'); ?></th>
11 11
             <td>
12 12
                 <?php if ($price->type_obj() && $price->type_obj()->base_type() === 1) : ?>
13 13
                     <input type="hidden" name="PRT_ID" id="PRT_ID" value="<?php echo esc_attr($price->type()); ?>"/>
14 14
                     <p><strong><?php esc_html_e('Price', 'event_espresso'); ?></strong></p>
15 15
                     <p class="description">
16 16
                         <?php
17
-                        esc_html_e(
18
-                            'This is the default base price. Every new ticket created will start off with this base price.',
19
-                            'event_espresso'
20
-                        );
21
-                        ?>
17
+						esc_html_e(
18
+							'This is the default base price. Every new ticket created will start off with this base price.',
19
+							'event_espresso'
20
+						);
21
+						?>
22 22
                     </p>
23 23
                 <?php else : ?>
24 24
                     <?php echo EEH_Form_Fields::select_input('PRT_ID', $price_types, $price->type(), 'id="PRT_ID"'); ?>
25 25
                     <p class="description">
26 26
                         <?php
27
-                            esc_html_e(
28
-                                'Price Modifier. Default items will apply to ALL new events you create.',
29
-                                'event_espresso'
30
-                            );
31
-                        ?></p>
27
+							esc_html_e(
28
+								'Price Modifier. Default items will apply to ALL new events you create.',
29
+								'event_espresso'
30
+							);
31
+						?></p>
32 32
                 <?php endif; ?>
33 33
             </td>
34 34
         </tr>
35 35
         <tr valign="top">
36 36
             <th><label for="PRC_name"><?php
37
-                    esc_html_e(
38
-                        'Name',
39
-                        'event_espresso'
40
-                    ); ?></label> <?php echo EEH_Template::get_help_tab_link('name_field_info'); ?></th>
37
+					esc_html_e(
38
+						'Name',
39
+						'event_espresso'
40
+					); ?></label> <?php echo EEH_Template::get_help_tab_link('name_field_info'); ?></th>
41 41
             <td>
42 42
                 <input class="regular-text" type="text" id="PRC_name" name="PRC_name"
43 43
                        value="<?php $price->f('PRC_name'); ?>"/>
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
         </tr>
46 46
         <tr valign="top">
47 47
             <th><label for="PRC_desc"><?php
48
-                    esc_html_e(
49
-                        'Description',
50
-                        'event_espresso'
51
-                    ); ?></label> <?php echo EEH_Template::get_help_tab_link('description_field_info'); ?></th>
48
+					esc_html_e(
49
+						'Description',
50
+						'event_espresso'
51
+					); ?></label> <?php echo EEH_Template::get_help_tab_link('description_field_info'); ?></th>
52 52
             <td>
53 53
                     <textarea class="regular-text" id="PRC_desc" name="PRC_desc" rows="5"><?php
54
-                        $price->f('PRC_desc');
55
-                    ?></textarea><br/>
54
+						$price->f('PRC_desc');
55
+					?></textarea><br/>
56 56
             </td>
57 57
         </tr>
58 58
         <tr valign="top">
59 59
             <th><label for="PRC_amount"><?php
60
-                    esc_html_e(
61
-                        'Amount',
62
-                        'event_espresso'
63
-                    ); ?><?php echo EEH_Template::get_help_tab_link('amount_field_info'); ?></label></th>
60
+					esc_html_e(
61
+						'Amount',
62
+						'event_espresso'
63
+					); ?><?php echo EEH_Template::get_help_tab_link('amount_field_info'); ?></label></th>
64 64
             <td>
65 65
                 <input class="small-text ee-numeric" type="text" id="PRC_amount" name="PRC_amount"
66 66
                        value="<?php echo esc_attr($price->amount()); ?>"/>
Please login to merge, or discard this patch.
new/pricing/templates/event_tickets_datetime_dtt_tickets_list.template.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 
15 15
 <li data-datetime-row="<?php echo esc_attr($dtt_row); ?>" data-context="datetime-ticket" data-ticket-row="<?php echo esc_attr($tkt_row); ?>"
16 16
     class="datetime-ticket clickable<?php echo $ticket_selected;
17
-    echo $tkt_status_class; ?>">
17
+	echo $tkt_status_class; ?>">
18 18
     <input type="checkbox" name="datetime_ticket[<?php echo esc_attr($dtt_row); ?>][<?php echo esc_attr($tkt_row); ?>]"
19 19
            class="datetime-ticket-checkbox" value="1"<?php echo $datetime_ticket_checked; ?>>
20 20
     <span class="ee-icon ee-icon-tickets ticket-list-ticket-name"><?php echo $TKT_name; ?></span>
Please login to merge, or discard this patch.