Completed
Branch updates-from-cafe (8a480a)
by
unknown
25:05 queued 17:14
created
registration_form/templates/questions_main_meta_box.template.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         EEH_HTML::h4(
48 48
             '<span class="dashicons dashicons-info"></span>'
49 49
             . esc_html__('Did you know...', 'event_espresso')
50
-        ) .
50
+        ).
51 51
         EEH_HTML::p(
52 52
             esc_html__(
53 53
                 'If you add a State/Province Select input immediately after this Country Select input when building your registration form, then the State/Province Select input options will change to correspond with the choice made in this input. So for example, choosing "United States" in this Country Select input will populate the State/Province Select input with just the state options for the United States.',
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
                                type="hidden"
109 109
                                value="<?php echo esc_attr($question->get('QST_order')); ?>"
110 110
                         />
111
-                        <?php if (! empty($QST_system)) { ?>
111
+                        <?php if ( ! empty($QST_system)) { ?>
112 112
                             <input id='QST_admin_label'
113 113
                                    name="QST_admin_label"
114 114
                                    type="hidden"
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                         <?php } ?>
118 118
                         <br />
119 119
                         <p class="description">
120
-                            <?php if (! empty($QST_system)) { ?>
120
+                            <?php if ( ! empty($QST_system)) { ?>
121 121
                                 <span class="description" style="color:#D54E21;">
122 122
                                 <?php esc_html_e('System question! This field cannot be changed.', 'event_espresso') ?>
123 123
                         </span>
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                         <br />
155 155
                         <p class="description">
156 156
                             <?php
157
-                            if (! empty($QST_system)) { ?>
157
+                            if ( ! empty($QST_system)) { ?>
158 158
                                 <span class="description" style="color:#D54E21;">
159 159
                                     <?php esc_html_e(
160 160
                                         'System question! This field cannot be changed.',
@@ -186,15 +186,15 @@  discard block
 block discarded – undo
186 186
 
187 187
                         // Only display Confirm email for
188 188
                         if (empty($QST_system) || $QST_system !== EEM_Attendee::system_question_email_confirm) {
189
-                            unset($question_types[ EEM_Question::QST_type_email_confirm ]);
189
+                            unset($question_types[EEM_Question::QST_type_email_confirm]);
190 190
                         }
191 191
 
192 192
                         echo wp_kses(
193 193
                             EEH_Form_Fields::select_input(
194
-                                'QST_type' . $id,
194
+                                'QST_type'.$id,
195 195
                                 $question_types,
196 196
                                 $question->type(),
197
-                                'id="QST_type' . $id . '"' . $disabled_attr
197
+                                'id="QST_type'.$id.'"'.$disabled_attr
198 198
                             ),
199 199
                             AllowedTags::getWithFormTags()
200 200
                         );
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
                     <td>
237 237
                         <input id="QST_max"
238 238
                             class="ee-input-width--small"
239
-                        <?php if($max_max !== EE_INF) :?>
240
-                            max="<?php echo esc_attr($max_max);?>"
239
+                        <?php if ($max_max !== EE_INF) :?>
240
+                            max="<?php echo esc_attr($max_max); ?>"
241 241
                         <?php  endif; ?>
242 242
                             min="1"
243 243
                             name="QST_max"
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
                                 <?php
323 323
                                 $count            = 0;
324 324
                                 $question_options = $question->options();
325
-                                if (! empty($question_options)) {
325
+                                if ( ! empty($question_options)) {
326 326
                                     foreach ($question_options as $option_id => $option) {
327 327
                                         $disabled_attr = $has_answers || $option->get('QSO_system')
328 328
                                             ? 'disabled'
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
                                                 />
357 357
                                             </td>
358 358
                                             <td>
359
-                                                <?php if (! $option->system()) { ?>
359
+                                                <?php if ( ! $option->system()) { ?>
360 360
                                                     <span class="dashicons clickable dashicons-post-trash ee-icon-size-18 remove-option remove-item">
361 361
                                         </span>
362 362
                                                 <?php } ?>
@@ -478,10 +478,10 @@  discard block
 block discarded – undo
478 478
                         ];
479 479
                         echo wp_kses(
480 480
                             EEH_Form_Fields::select_input(
481
-                                'QST_required' . $id,
481
+                                'QST_required'.$id,
482 482
                                 $requiredOptions,
483 483
                                 $question->required(),
484
-                                'id="QST_required' . $id . '"' . $disabled_attr
484
+                                'id="QST_required'.$id.'"'.$disabled_attr
485 485
                             ),
486 486
                             AllowedTags::getWithFormTags()
487 487
                         );
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
                                 ) ?>
505 505
                             </span>
506 506
                         </p>
507
-                        <?php if (! empty($disabled_attr) && in_array($QST_system, $system_required)) { ?>
507
+                        <?php if ( ! empty($disabled_attr) && in_array($QST_system, $system_required)) { ?>
508 508
                             <input type="hidden" id="QST_required" name="QST_required" value="1" />
509 509
                             <p>
510 510
                             <span class="description" style="color:#D54E21;">
Please login to merge, or discard this patch.
messages/templates/ee_msg_editor_active_context_element.template.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -15,22 +15,22 @@  discard block
 block discarded – undo
15 15
 use EventEspresso\core\services\request\sanitizers\AllowedTags;
16 16
 
17 17
 $active_message   = sprintf(
18
-    esc_html__(
19
-        'The template for %1$s is currently %2$sactive%3$s.',
20
-        'event_espresso'
21
-    ),
22
-    $context_label,
23
-    '<strong>',
24
-    '</strong>'
18
+	esc_html__(
19
+		'The template for %1$s is currently %2$sactive%3$s.',
20
+		'event_espresso'
21
+	),
22
+	$context_label,
23
+	'<strong>',
24
+	'</strong>'
25 25
 );
26 26
 $inactive_message = sprintf(
27
-    esc_html__(
28
-        'The template for %1$s is currently %2$sinactive%3$s.',
29
-        'event_espresso'
30
-    ),
31
-    $context_label,
32
-    '<strong>',
33
-    '</strong>'
27
+	esc_html__(
28
+		'The template for %1$s is currently %2$sinactive%3$s.',
29
+		'event_espresso'
30
+	),
31
+	$context_label,
32
+	'<strong>',
33
+	'</strong>'
34 34
 );
35 35
 
36 36
 $context = esc_attr($context);
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
         </span>
45 45
         <span class="ee-on-off-toggle-label">
46 46
             <?php
47
-            echo wp_kses(
48
-                $is_active
49
-                    ? $active_message
50
-                    : $inactive_message,
51
-                AllowedTags::getAllowedTags()
52
-            );
53
-            ?>
47
+			echo wp_kses(
48
+				$is_active
49
+					? $active_message
50
+					: $inactive_message,
51
+				AllowedTags::getAllowedTags()
52
+			);
53
+			?>
54 54
         </span>
55 55
         <div class="hidden js-data">
56 56
             <span class="ee-active-message"><?php echo wp_kses($active_message, AllowedTags::getAllowedTags()); ?></span>
Please login to merge, or discard this patch.
templates/registration_page_registration_questions.template.php 2 patches
Indentation   +89 added lines, -89 removed lines patch added patch discarded remove patch
@@ -14,62 +14,62 @@  discard block
 block discarded – undo
14 14
 
15 15
 <div id="single-page-checkout" class="ui-widget">
16 16
     <?php do_action(
17
-        'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header'
18
-    ) ?>
17
+		'AHEE__registration_page_registration_questions__template__after_spco_attendee_information_header'
18
+	) ?>
19 19
     <div id="spco-attendee_information-dv" class="spco-step-dv">
20 20
 
21 21
         <p id="spco-attendee_information-pg" class="spco-steps-pg small-text drk-grey-text">
22 22
             <?php printf(
23
-                esc_html__(
24
-                    '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.',
25
-                    'event_espresso'
26
-                ),
27
-                '<br />',
28
-                '<span class="asterisk">*</span>'
29
-            ); ?>
23
+				esc_html__(
24
+					'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.',
25
+					'event_espresso'
26
+				),
27
+				'<br />',
28
+				'<span class="asterisk">*</span>'
29
+			); ?>
30 30
         </p>
31 31
 
32 32
         <?php
33
-        global $css_class;
34
-        $att_nmbr   = 0;
35
-        $prev_event = '';
36
-
37
-        if ($event_queue['total_items'] > 0) {
38
-            foreach ($event_queue['items'] as $line_item => $item) {
39
-                $att_nmbr++;
40
-                if ($item['attendee_questions'] != '') { ?>
33
+		global $css_class;
34
+		$att_nmbr   = 0;
35
+		$prev_event = '';
36
+
37
+		if ($event_queue['total_items'] > 0) {
38
+			foreach ($event_queue['items'] as $line_item => $item) {
39
+				$att_nmbr++;
40
+				if ($item['attendee_questions'] != '') { ?>
41 41
                     <div id="spco-attendee-panel-dv-<?php echo esc_attr($line_item); ?>" class="spco-attendee-panel-dv">
42 42
                         <?php
43
-                        if ($item['ticket']->name() != $prev_event) { ?>
43
+						if ($item['ticket']->name() != $prev_event) { ?>
44 44
                             <p class="spco-ticket-info-pg">
45 45
                                 <?php
46
-                                echo esc_html($item['ticket']->name()) . ':  ';
47
-                                echo esc_html(
48
-                                    EEH_Template::format_currency($item['ticket']->price(), false, false)
49
-                                );
50
-                                $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ];
51
-                                echo wp_kses(
52
-                                    $item['ticket']->qty()
53
-                                        ? ' &nbsp; x &nbsp; '
54
-                                            . sprintf(
55
-                                                /* translators: %s: ticket count */
56
-                                                __('%1$s tickets', 'event_espresso'),
57
-                                                absint($ticket_count[ $item['ticket']->ID() ])
58
-                                            )
59
-                                            . ' &nbsp; = &nbsp; '
60
-                                            . EEH_Template::format_currency($qty_price)
61
-                                        : '',
62
-                                    AllowedTags::getAllowedTags()
63
-                                );
64
-                                echo wp_kses(
65
-                                    $item['ticket']->description()
66
-                                        ? '<br/>'
67
-                                            . __('Ticket Details: ', 'event_espresso')
68
-                                            . $item['ticket']->description()
69
-                                        : '',
70
-                                    AllowedTags::getAllowedTags()
71
-                                );
72
-                                ?>
46
+								echo esc_html($item['ticket']->name()) . ':  ';
47
+								echo esc_html(
48
+									EEH_Template::format_currency($item['ticket']->price(), false, false)
49
+								);
50
+								$qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ];
51
+								echo wp_kses(
52
+									$item['ticket']->qty()
53
+										? ' &nbsp; x &nbsp; '
54
+											. sprintf(
55
+												/* translators: %s: ticket count */
56
+												__('%1$s tickets', 'event_espresso'),
57
+												absint($ticket_count[ $item['ticket']->ID() ])
58
+											)
59
+											. ' &nbsp; = &nbsp; '
60
+											. EEH_Template::format_currency($qty_price)
61
+										: '',
62
+									AllowedTags::getAllowedTags()
63
+								);
64
+								echo wp_kses(
65
+									$item['ticket']->description()
66
+										? '<br/>'
67
+											. __('Ticket Details: ', 'event_espresso')
68
+											. $item['ticket']->description()
69
+										: '',
70
+									AllowedTags::getAllowedTags()
71
+								);
72
+								?>
73 73
                             </p>
74 74
                         <?php } ?>
75 75
 
@@ -81,16 +81,16 @@  discard block
 block discarded – undo
81 81
                             </legend>
82 82
 
83 83
                             <?php
84
-                            // do an action before the questions output, including the item and count
85
-                            do_action(
86
-                                'AHEE__registration_page_registration_questions__template___before_questions',
87
-                                $item,
88
-                                $att_nmbr
89
-                            );
84
+							// do an action before the questions output, including the item and count
85
+							do_action(
86
+								'AHEE__registration_page_registration_questions__template___before_questions',
87
+								$item,
88
+								$att_nmbr
89
+							);
90 90
 
91
-                            echo esc_html($item['attendee_questions']);
91
+							echo esc_html($item['attendee_questions']);
92 92
 
93
-                            if ($att_nmbr == 1 && $print_copy_info) { ?>
93
+							if ($att_nmbr == 1 && $print_copy_info) { ?>
94 94
                                 <input id='primary-attendee'
95 95
                                        name="qstn[primary_attendee]"
96 96
                                        type="hidden"
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
                                     <p class="spco-copy-all-attendee-pg">
103 103
                                         <label class="wide">
104 104
                                             <?php esc_html_e(
105
-                                                'Use Registrant #1\'s information for ALL registrants',
106
-                                                'event_espresso'
107
-                                            ); ?>
105
+												'Use Registrant #1\'s information for ALL registrants',
106
+												'event_espresso'
107
+											); ?>
108 108
                                             <input class='spco-copy-all-attendee-chk ui-widget-content ui-corner-all'
109 109
                                                    id="spco-copy-all-attendee-chk"
110 110
                                                    type="checkbox"
@@ -115,9 +115,9 @@  discard block
 block discarded – undo
115 115
 
116 116
                                     <p class="spco-copy-attendee-pg">
117 117
                                         <?php esc_html_e(
118
-                                            'This option allows you to use the above information for all additional registrant question fields. <span>(&nbsp;Please note that some events may have additional questions that you may still be required to answer in order to complete your registration.&nbsp;)</span>',
119
-                                            'event_espresso'
120
-                                        ); ?>
118
+											'This option allows you to use the above information for all additional registrant question fields. <span>(&nbsp;Please note that some events may have additional questions that you may still be required to answer in order to complete your registration.&nbsp;)</span>',
119
+											'event_espresso'
120
+										); ?>
121 121
                                     </p>
122 122
 
123 123
                                     <a id="display-more-attendee-copy-options"
@@ -136,15 +136,15 @@  discard block
 block discarded – undo
136 136
                                         </a>
137 137
                                         <p class="spco-copy-attendee-pg">
138 138
                                             <?php esc_html_e(
139
-                                                'The following checkboxes allow you to use the above information for only the selected additional event registrants.',
140
-                                                'event_espresso'
141
-                                            ); ?>
139
+												'The following checkboxes allow you to use the above information for only the selected additional event registrants.',
140
+												'event_espresso'
141
+											); ?>
142 142
                                         </p>
143 143
 
144 144
                                         <?php
145
-                                        foreach ($additional_event_attendees as $event_attendees) {
146
-                                            foreach ($event_attendees as $attendee) {
147
-                                                if ($attendee['event_hdr']) { ?>
145
+										foreach ($additional_event_attendees as $event_attendees) {
146
+											foreach ($event_attendees as $attendee) {
147
+												if ($attendee['event_hdr']) { ?>
148 148
                                                     <h6 class="spco-copy-attendee-event-hdr">
149 149
                                                         <?php echo esc_html($attendee['event_hdr']); ?>
150 150
                                                     </h6>
@@ -153,9 +153,9 @@  discard block
 block discarded – undo
153 153
                                                 <p class="event_form_field spco-copy-attendee-chk-pg">
154 154
                                                     <label>
155 155
                                                         <?php
156
-                                                        echo esc_html__('Attendee #', 'event_espresso')
157
-                                                             . esc_html($attendee['att_nmbr']);
158
-                                                        ?>
156
+														echo esc_html__('Attendee #', 'event_espresso')
157
+															 . esc_html($attendee['att_nmbr']);
158
+														?>
159 159
                                                         <input class="spco-copy-attendee-chk <?php echo esc_attr($css_class); ?>"
160 160
                                                                id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']);?>"
161 161
                                                                type="checkbox"
@@ -173,25 +173,25 @@  discard block
 block discarded – undo
173 173
                                     <div class="clear-float"></div>
174 174
                                 </div>
175 175
                                 <?php
176
-                                $print_copy_info = false;
177
-                            } elseif ($att_nmbr == 1) {
178
-                                ?>
176
+								$print_copy_info = false;
177
+							} elseif ($att_nmbr == 1) {
178
+								?>
179 179
                                 <p id="spco-auto-copy-attendee-pg" class="smaller-text lt-grey-text">
180 180
                                     <?php esc_html_e(
181
-                                        'The above information will be used for any additional tickets/registrants.',
182
-                                        'event_espresso'
183
-                                    ); ?>
181
+										'The above information will be used for any additional tickets/registrants.',
182
+										'event_espresso'
183
+									); ?>
184 184
                                 </p>
185 185
                                 <?php
186
-                            }
187
-                            ?>
186
+							}
187
+							?>
188 188
                         </fieldset>
189 189
 
190 190
                     </div>
191 191
                     <?php
192
-                } else {
193
-                    if ($att_nmbr == 1) {
194
-                        ?>
192
+				} else {
193
+					if ($att_nmbr == 1) {
194
+						?>
195 195
                         <div class='spco-attendee-panel-dv'
196 196
                              id="spco-attendee-panel-dv-<?php echo esc_attr($line_item); ?>"
197 197
                         >
@@ -205,21 +205,21 @@  discard block
 block discarded – undo
205 205
                             >
206 206
                                 <h6>
207 207
                                     <?php esc_html_e(
208
-                                        'No information is required to attend this event. Please proceed to the next Step',
209
-                                        'event_espresso'
210
-                                    ); ?>
208
+										'No information is required to attend this event. Please proceed to the next Step',
209
+										'event_espresso'
210
+									); ?>
211 211
                                 </h6>
212 212
                                 <input type="hidden" id="no-questions" name="qstn[]" value="0" />
213 213
                             </fieldset>
214 214
                         </div>
215 215
                         <?php
216
-                    }
217
-                }
218
-                echo esc_html($item['additional_attendee_reg_info']);
219
-                $prev_event = $item['ticket']->name();
220
-            } // $event_queue['items'] as $line_item
221
-        } // $event_queue['total_items']
222
-        ?>
216
+					}
217
+				}
218
+				echo esc_html($item['additional_attendee_reg_info']);
219
+				$prev_event = $item['ticket']->name();
220
+			} // $event_queue['items'] as $line_item
221
+		} // $event_queue['total_items']
222
+		?>
223 223
         <div>
224 224
             <a id="spco-display-event-questions-lnk"
225 225
                class="act-like-link smaller-text hidden hide-if-no-js float-right"
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,18 +43,18 @@  discard block
 block discarded – undo
43 43
                         if ($item['ticket']->name() != $prev_event) { ?>
44 44
                             <p class="spco-ticket-info-pg">
45 45
                                 <?php
46
-                                echo esc_html($item['ticket']->name()) . ':  ';
46
+                                echo esc_html($item['ticket']->name()).':  ';
47 47
                                 echo esc_html(
48 48
                                     EEH_Template::format_currency($item['ticket']->price(), false, false)
49 49
                                 );
50
-                                $qty_price = $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ];
50
+                                $qty_price = $item['ticket']->price() * $ticket_count[$item['ticket']->ID()];
51 51
                                 echo wp_kses(
52 52
                                     $item['ticket']->qty()
53 53
                                         ? ' &nbsp; x &nbsp; '
54 54
                                             . sprintf(
55 55
                                                 /* translators: %s: ticket count */
56 56
                                                 __('%1$s tickets', 'event_espresso'),
57
-                                                absint($ticket_count[ $item['ticket']->ID() ])
57
+                                                absint($ticket_count[$item['ticket']->ID()])
58 58
                                             )
59 59
                                             . ' &nbsp; = &nbsp; '
60 60
                                             . EEH_Template::format_currency($qty_price)
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                                   id="spco-attendee-wrap-<?php echo esc_attr($line_item); ?>"
78 78
                         >
79 79
                             <legend class="spco-attendee-lgnd smaller-text lt-grey-text">
80
-                                <?php echo esc_html__('Registrant #', 'event_espresso') . $att_nmbr; ?>
80
+                                <?php echo esc_html__('Registrant #', 'event_espresso').$att_nmbr; ?>
81 81
                             </legend>
82 82
 
83 83
                             <?php
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                                                              . esc_html($attendee['att_nmbr']);
158 158
                                                         ?>
159 159
                                                         <input class="spco-copy-attendee-chk <?php echo esc_attr($css_class); ?>"
160
-                                                               id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']);?>"
160
+                                                               id="spco-copy-attendee-chk-<?php echo esc_attr($attendee['input_id']); ?>"
161 161
                                                                type="checkbox"
162 162
                                                                value="<?php echo esc_attr($attendee['input_id']); ?>"
163 163
                                                         />
Please login to merge, or discard this patch.
admin_pages/payments/templates/payment_log_details.template.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -35,16 +35,16 @@  discard block
 block discarded – undo
35 35
                 </th>
36 36
                 <td>
37 37
                     <?php
38
-                    if ($payment_log->object() instanceof EE_Transaction) {
39
-                        esc_html_e('Unknown', 'event_espresso');
40
-                    } else {
41
-                        echo esc_html(
42
-                            $payment_method
43
-                                ? $payment_method->admin_name()
44
-                                : __("No Longer Exists", 'event_espresso')
45
-                        );
46
-                    }
47
-                    ?>
38
+					if ($payment_log->object() instanceof EE_Transaction) {
39
+						esc_html_e('Unknown', 'event_espresso');
40
+					} else {
41
+						echo esc_html(
42
+							$payment_method
43
+								? $payment_method->admin_name()
44
+								: __("No Longer Exists", 'event_espresso')
45
+						);
46
+					}
47
+					?>
48 48
                 </td>
49 49
             </tr>
50 50
             <tr>
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
                 </th>
56 56
                 <td>
57 57
                     <?php echo esc_html(
58
-                        $transaction
59
-                            ? absint($transaction->ID())
60
-                            : __('Could not be determined', 'event_espresso')
61
-                    ); ?>
58
+						$transaction
59
+							? absint($transaction->ID())
60
+							: __('Could not be determined', 'event_espresso')
61
+					); ?>
62 62
                 </td>
63 63
             </tr>
64 64
             <tr>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_system_stati_page.template.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -19,38 +19,38 @@  discard block
 block discarded – undo
19 19
  */
20 20
 function ee_recurse_into_array_for_display($data, $depth = 0, $td = true)
21 21
 {
22
-    if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {
23
-        // is_object($incomplete_class) actually returns false, hence why we check for it
24
-        $data = json_decode(json_encode($data), true);
25
-    }
26
-    if (empty($data)) {
27
-        return;
28
-    }
29
-    if (is_array($data)) {
30
-        $depth++;
31
-        ksort($data, SORT_NATURAL | SORT_FLAG_CASE);
32
-        if (EEH_Array::is_associative_array($data)) { ?>
22
+	if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {
23
+		// is_object($incomplete_class) actually returns false, hence why we check for it
24
+		$data = json_decode(json_encode($data), true);
25
+	}
26
+	if (empty($data)) {
27
+		return;
28
+	}
29
+	if (is_array($data)) {
30
+		$depth++;
31
+		ksort($data, SORT_NATURAL | SORT_FLAG_CASE);
32
+		if (EEH_Array::is_associative_array($data)) { ?>
33 33
             <table class='ee-system-stati ee-system-stati-<?php echo absint($depth); ?>'>
34 34
                 <tbody>
35 35
                     <?php foreach ($data as $data_key => $data_value) {
36
-                        // if the value is a single element array with no key,
37
-                        // and the value is a primitive (not an array, object, etc.)
38
-                        if (
39
-                            is_array($data_value)
40
-                            && count($data_value) === 1
41
-                            && empty(key($data_value))
42
-                            && is_scalar(reset($data_value))
43
-                        ) {
44
-                            ?>
36
+						// if the value is a single element array with no key,
37
+						// and the value is a primitive (not an array, object, etc.)
38
+						if (
39
+							is_array($data_value)
40
+							&& count($data_value) === 1
41
+							&& empty(key($data_value))
42
+							&& is_scalar(reset($data_value))
43
+						) {
44
+							?>
45 45
                             <tr>
46 46
                                 <td class="ee-system-stati-value" colspan="2">
47 47
                                     <?php echo esc_html(reset($data_value)); ?>
48 48
                                 </td>
49 49
                             </tr>
50 50
                             <?php
51
-                            continue;
52
-                        }
53
-                        ?>
51
+							continue;
52
+						}
53
+						?>
54 54
                         <tr>
55 55
                             <td class='ee-system-stati-key'>
56 56
                                 <span class="ee-system-stati-label">
@@ -65,31 +65,31 @@  discard block
 block discarded – undo
65 65
                             <?php if (is_scalar($data_value)) { ?>
66 66
                                 <?php ee_recurse_into_array_for_display($data_value, $depth); ?>
67 67
                             <?php } else {
68
-                                if (is_array($data_value) && count($data_value) === 1) {
69
-                                    // verify that values have been set
70
-                                    $keys_only = empty(
71
-                                        array_filter(
72
-                                            array_values($data_value),
73
-                                            function ($v) {
74
-                                                return $v !== null && (is_array($v) || trim($v) !== '');
75
-                                            }
76
-                                        )
77
-                                    );
78
-                                    // if the array only consists of keys (no values)
79
-                                    if ($keys_only) {
80
-                                        // then use keys for values
81
-                                        $data_value = array_keys($data_value);
82
-                                        // but if there is only one value now
83
-                                        if (count($data_value) === 1) {
84
-                                            // then pass that single value back into this function
85
-                                            // this prevents extra empty layers of nothing being added to the output
86
-                                            ee_recurse_into_array_for_display(reset($data_value), $depth);
87
-                                            // need to finish the row off though
88
-                                            echo '</tr>';
89
-                                            continue;
90
-                                        }
91
-                                    }
92
-                                } ?>
68
+								if (is_array($data_value) && count($data_value) === 1) {
69
+									// verify that values have been set
70
+									$keys_only = empty(
71
+										array_filter(
72
+											array_values($data_value),
73
+											function ($v) {
74
+												return $v !== null && (is_array($v) || trim($v) !== '');
75
+											}
76
+										)
77
+									);
78
+									// if the array only consists of keys (no values)
79
+									if ($keys_only) {
80
+										// then use keys for values
81
+										$data_value = array_keys($data_value);
82
+										// but if there is only one value now
83
+										if (count($data_value) === 1) {
84
+											// then pass that single value back into this function
85
+											// this prevents extra empty layers of nothing being added to the output
86
+											ee_recurse_into_array_for_display(reset($data_value), $depth);
87
+											// need to finish the row off though
88
+											echo '</tr>';
89
+											continue;
90
+										}
91
+									}
92
+								} ?>
93 93
                                 <td class="ee-system-stati-sub-values">
94 94
                                     <?php ee_recurse_into_array_for_display($data_value, $depth); ?>
95 95
                                 </td>
@@ -107,19 +107,19 @@  discard block
 block discarded – undo
107 107
                 <?php } ?>
108 108
             </ul>
109 109
         <?php } else {
110
-            // there's no key (label) and there's only one value,
111
-            // so let's just pass that value back into this function,
112
-            // but reset the depth back to where it was.
113
-            // this prevents extra empty layers of nothing being added to the output
114
-            $depth--;
115
-            ee_recurse_into_array_for_display(reset($data), $depth, false);
116
-        }
117
-    } else {
118
-        echo wp_kses($td ? '<td class="ee-system-stati-value">' : '', AllowedTags::getAllowedTags());
119
-        // simple value
120
-        echo wp_kses($data, AllowedTags::getAllowedTags());
121
-        echo wp_kses($td ? '</td>' : '', AllowedTags::getAllowedTags());
122
-    }
110
+			// there's no key (label) and there's only one value,
111
+			// so let's just pass that value back into this function,
112
+			// but reset the depth back to where it was.
113
+			// this prevents extra empty layers of nothing being added to the output
114
+			$depth--;
115
+			ee_recurse_into_array_for_display(reset($data), $depth, false);
116
+		}
117
+	} else {
118
+		echo wp_kses($td ? '<td class="ee-system-stati-value">' : '', AllowedTags::getAllowedTags());
119
+		// simple value
120
+		echo wp_kses($data, AllowedTags::getAllowedTags());
121
+		echo wp_kses($td ? '</td>' : '', AllowedTags::getAllowedTags());
122
+	}
123 123
 }
124 124
 
125 125
 ?>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_migration_page.template.php 1 patch
Indentation   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -37,55 +37,55 @@  discard block
 block discarded – undo
37 37
             <h3 class="espresso-header">
38 38
                 <span class="dashicons dashicons-flag ee-icon-size-22"></span>
39 39
                 <?php
40
-                echo esc_html(
41
-                    apply_filters(
42
-                        'FHEE__ee_migration_page__header',
43
-                        sprintf(
44
-                            __("Your Event Espresso data needs to be updated.", "event_espresso"),
45
-                            $current_db_state,
46
-                            $next_db_state
47
-                        ),
48
-                        $current_db_state,
49
-                        $next_db_state
50
-                    )
51
-                );
52
-                ?>
40
+				echo esc_html(
41
+					apply_filters(
42
+						'FHEE__ee_migration_page__header',
43
+						sprintf(
44
+							__("Your Event Espresso data needs to be updated.", "event_espresso"),
45
+							$current_db_state,
46
+							$next_db_state
47
+						),
48
+						$current_db_state,
49
+						$next_db_state
50
+					)
51
+				);
52
+				?>
53 53
             </h3>
54 54
         <?php } elseif ($show_most_recent_migration) { ?>
55 55
             <h3 class="espresso-header">
56 56
                 <span class="dashicons dashicons-awards ee-icon-size-22"></span>
57 57
                 <?php echo esc_html(
58
-                    apply_filters(
59
-                        'FHEE__ee_migration_page__done_migration_header',
60
-                        sprintf(
61
-                            __(
62
-                                'Congratulations! Your database is "up-to-date" and you are ready to begin using %s',
63
-                                "event_espresso"
64
-                            ),
65
-                            $ultimate_db_state
66
-                        )
67
-                    )
68
-                ); ?>
58
+					apply_filters(
59
+						'FHEE__ee_migration_page__done_migration_header',
60
+						sprintf(
61
+							__(
62
+								'Congratulations! Your database is "up-to-date" and you are ready to begin using %s',
63
+								"event_espresso"
64
+							),
65
+							$ultimate_db_state
66
+						)
67
+					)
68
+				); ?>
69 69
             </h3>
70 70
             <p>
71 71
                 <?php echo esc_html(
72
-                    apply_filters(
73
-                        'FHEE__ee_migration_page__p_after_done_migration_header',
74
-                        sprintf(
75
-                            __(
76
-                                "Time to find out about all the great new features %s has to offer.",
77
-                                "event_espresso"
78
-                            ),
79
-                            $ultimate_db_state
80
-                        )
81
-                    )
82
-                ); ?> &nbsp;
72
+					apply_filters(
73
+						'FHEE__ee_migration_page__p_after_done_migration_header',
74
+						sprintf(
75
+							__(
76
+								"Time to find out about all the great new features %s has to offer.",
77
+								"event_espresso"
78
+							),
79
+							$ultimate_db_state
80
+						)
81
+					)
82
+				); ?> &nbsp;
83 83
                 <b>
84 84
                     <a class="button-primary"
85 85
                        id='get-started-after-migrate'
86 86
                        href="<?php
87
-                        echo esc_url_raw(add_query_arg(['page' => 'espresso_about'], admin_url('admin.php')));
88
-                        ?>"
87
+						echo esc_url_raw(add_query_arg(['page' => 'espresso_about'], admin_url('admin.php')));
88
+						?>"
89 89
                     >
90 90
                         <?php esc_html_e("Let's Get Started", "event_espresso"); ?>&nbsp;
91 91
                         <span class="dashicons dashicons-arrow-right ee-icon-size-22" style="margin:0;"></span>
@@ -96,46 +96,46 @@  discard block
 block discarded – undo
96 96
 
97 97
 
98 98
         <?php
99
-        if ($show_backup_db_text) {
100
-            echo wp_kses($migration_options_html, AllowedTags::getAllowedTags());
101
-        } ?>
99
+		if ($show_backup_db_text) {
100
+			echo wp_kses($migration_options_html, AllowedTags::getAllowedTags());
101
+		} ?>
102 102
 
103 103
         <?php
104
-        if ($show_most_recent_migration) {
105
-            if ($most_recent_migration instanceof EE_Data_Migration_Script_Base) {
106
-                if ($most_recent_migration->can_continue()) {
107
-                    // tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?>
104
+		if ($show_most_recent_migration) {
105
+			if ($most_recent_migration instanceof EE_Data_Migration_Script_Base) {
106
+				if ($most_recent_migration->can_continue()) {
107
+					// tell the user they should continue their migration because it appears to be unfinished... well, assuming there were no errors ?>
108 108
                     <h3 class="espresso-header">
109 109
                         <span class="dashicons dashicons-star-half ee-icon-size-22"></span>
110 110
                         <?php printf(
111
-                            esc_html__(
112
-                                "It appears that your previous Database Update (%s) is incomplete, and should be resumed",
113
-                                "event_espresso"
114
-                            ),
115
-                            $most_recent_migration->pretty_name()
116
-                        ); ?>
111
+							esc_html__(
112
+								"It appears that your previous Database Update (%s) is incomplete, and should be resumed",
113
+								"event_espresso"
114
+							),
115
+							$most_recent_migration->pretty_name()
116
+						); ?>
117 117
                     </h3>
118 118
                     <?php
119
-                } elseif ($most_recent_migration->is_broken()) {
120
-                    // tell the user the migration failed, and they should notify EE?>
119
+				} elseif ($most_recent_migration->is_broken()) {
120
+					// tell the user the migration failed, and they should notify EE?>
121 121
                     <h3 class="espresso-header">
122 122
                         <span class="dashicons dashicons-no ee-icon-size-22"></span>
123 123
                         <?php echo esc_html($most_recent_migration->get_feedback_message()) ?>
124 124
                     </h3>
125 125
                     <?php
126
-                }
127
-                // display errors or not of the most recent migration ran
128
-                if ($most_recent_migration->get_errors()) {
129
-                    ?>
126
+				}
127
+				// display errors or not of the most recent migration ran
128
+				if ($most_recent_migration->get_errors()) {
129
+					?>
130 130
                     <div class="ee-attention">
131 131
                         <strong>
132 132
                             <?php printf(
133
-                                esc_html__(
134
-                                    "Warnings occurred during your last Database Update (%s):",
135
-                                    'event_espresso'
136
-                                ),
137
-                                $most_recent_migration->pretty_name()
138
-                            ); ?>
133
+								esc_html__(
134
+									"Warnings occurred during your last Database Update (%s):",
135
+									'event_espresso'
136
+								),
137
+								$most_recent_migration->pretty_name()
138
+							); ?>
139 139
                         </strong>
140 140
                         <a id="show-hide-migration-warnings" class="display-the-hidden">
141 141
                             <?php esc_html_e("Show Warnings", 'event_espresso'); ?>
@@ -147,32 +147,32 @@  discard block
 block discarded – undo
147 147
                         </ul>
148 148
                     </div>
149 149
                     <?php
150
-                } else {
151
-                    // there were no errors during the last migration, just say so?>
150
+				} else {
151
+					// there were no errors during the last migration, just say so?>
152 152
                     <h2>
153 153
                         <?php printf(
154
-                            esc_html__(
155
-                                "The last Database Update (%s) ran successfully without errors.",
156
-                                "event_espresso"
157
-                            ),
158
-                            $most_recent_migration->pretty_name()
159
-                        ); ?>
154
+							esc_html__(
155
+								"The last Database Update (%s) ran successfully without errors.",
156
+								"event_espresso"
157
+							),
158
+							$most_recent_migration->pretty_name()
159
+						); ?>
160 160
                     </h2>
161 161
                     <?php
162
-                }
163
-            }
164
-        }
165
-        // end of: if ( $show_most_recent_migration )
166
-        ?>
162
+				}
163
+			}
164
+		}
165
+		// end of: if ( $show_most_recent_migration )
166
+		?>
167 167
 
168 168
     </div>
169 169
     <!--end of #migration-prep-->
170 170
 
171 171
     <?php
172
-    if ($show_migration_progress) { ?>
172
+	if ($show_migration_progress) { ?>
173 173
         <div id='migration-monitor' <?php if ($show_backup_db_text) : ?>style="display:none"<?php endif; ?>>
174 174
             <?php
175
-            if ($show_backup_db_text) { ?>
175
+			if ($show_backup_db_text) { ?>
176 176
                 <p>
177 177
                     <a class="toggle-migration-monitor small-text" style="cursor: pointer;">
178 178
                         <span class="dashicons dashicons-arrow-left-alt2" style="top:0;"></span>
@@ -182,19 +182,19 @@  discard block
 block discarded – undo
182 182
 
183 183
                 </p>
184 184
                 <?php
185
-            } ?>
185
+			} ?>
186 186
             <div id='progress-area'>
187 187
                 <h3 class="espresso-header">
188 188
                     <?php
189
-                    echo sprintf(
190
-                        _n(
191
-                            "The following task needs to be performed:",
192
-                            "The following %s tasks need to be performed:",
193
-                            count($script_names),
194
-                            "event_espresso"
195
-                        ),
196
-                        count($script_names)
197
-                    ); ?>
189
+					echo sprintf(
190
+						_n(
191
+							"The following task needs to be performed:",
192
+							"The following %s tasks need to be performed:",
193
+							count($script_names),
194
+							"event_espresso"
195
+						),
196
+						count($script_names)
197
+					); ?>
198 198
                 </h3>
199 199
                 <ul style="list-style: inside;">
200 200
                     <?php foreach ($script_names as $script_name) { ?>
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
                 <?php if (count($script_names) > 1) { ?>
206 206
                     <p>
207 207
                         <?php esc_html_e(
208
-                            "Please note: after each task is completed you will need to continue the Database Update, or report an error to Event Espresso.",
209
-                            "event_espresso"
210
-                        ); ?>
208
+							"Please note: after each task is completed you will need to continue the Database Update, or report an error to Event Espresso.",
209
+							"event_espresso"
210
+						); ?>
211 211
                     </p>
212 212
                 <?php } ?>
213 213
 
@@ -218,19 +218,19 @@  discard block
 block discarded – undo
218 218
                         </span>
219 219
                         <br />
220 220
                         <?php esc_html_e(
221
-                            "Depending on the number of events and the complexity of the information in your database, this could take a few minutes.",
222
-                            "event_espresso"
223
-                        ); ?>
221
+							"Depending on the number of events and the complexity of the information in your database, this could take a few minutes.",
222
+							"event_espresso"
223
+						); ?>
224 224
                     </p>
225 225
                     <p>
226 226
                         <?php printf(
227
-                            esc_html__(
228
-                                "%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.",
229
-                                "event_espresso"
230
-                            ),
231
-                            '<strong>',
232
-                            '</strong>'
233
-                        ); ?>
227
+							esc_html__(
228
+								"%sPlease be patient and do NOT navigate away from this page once the migration has begun%s. If any issues arise due to existing malformed data, an itemized report will be made available to you after the migration has completed.",
229
+								"event_espresso"
230
+							),
231
+							'<strong>',
232
+							'</strong>'
233
+						); ?>
234 234
                     </p>
235 235
                     <p>
236 236
                         <?php esc_html_e("Click the button below to begin the migration process.", "event_espresso") ?>
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
 
247 247
                 <button id='start-migration' class='button-primary'>
248 248
                 <?php echo esc_html(
249
-                    $show_continue_current_migration_script
250
-                        ? __("Continue Database Update", "event_espresso")
251
-                        : __("Begin Database Update", "event_espresso")
252
-                ); ?>
249
+					$show_continue_current_migration_script
250
+						? __("Continue Database Update", "event_espresso")
251
+						: __("Begin Database Update", "event_espresso")
252
+				); ?>
253 253
                 </button>
254 254
                 <br class="clear" />
255 255
 
@@ -265,9 +265,9 @@  discard block
 block discarded – undo
265 265
         </div>
266 266
 
267 267
         <?php
268
-    }
269
-    if ($show_maintenance_switch) {
270
-        ?>
268
+	}
269
+	if ($show_maintenance_switch) {
270
+		?>
271 271
         <h2>
272 272
             <span class="dashicons dashicons-admin-tools"></span>
273 273
             <?php esc_html_e('Set Event Espresso Maintenance Mode', 'event_espresso'); ?>
@@ -282,11 +282,11 @@  discard block
 block discarded – undo
282 282
                                 type='radio'
283 283
                                 value="0"
284 284
                                 <?php echo esc_attr(
285
-                                    $mMode_level === EE_Maintenance_Mode::level_0_not_in_maintenance
286
-                                        ? 'checked'
287
-                                        : ''
288
-                                );
289
-                                ?>
285
+									$mMode_level === EE_Maintenance_Mode::level_0_not_in_maintenance
286
+										? 'checked'
287
+										: ''
288
+								);
289
+								?>
290 290
                             />
291 291
                         </td>
292 292
                         <th align="left">
@@ -295,9 +295,9 @@  discard block
 block discarded – undo
295 295
                             </label>
296 296
                             <p class='description' style="font-weight: normal;">
297 297
                                 <?php esc_html_e(
298
-                                    "This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.",
299
-                                    "event_espresso"
300
-                                ); ?>
298
+									"This is the normal operating mode for Event Espresso and allows all functionality to be viewed by all site visitors.",
299
+									"event_espresso"
300
+								); ?>
301 301
                             </p>
302 302
                         </th>
303 303
                     </tr>
@@ -308,11 +308,11 @@  discard block
 block discarded – undo
308 308
                                 type='radio'
309 309
                                 value="1"
310 310
                                 <?php echo esc_attr(
311
-                                    $mMode_level === EE_Maintenance_Mode::level_1_frontend_only_maintenance
312
-                                        ? 'checked'
313
-                                        : ''
314
-                                );
315
-                                ?>
311
+									$mMode_level === EE_Maintenance_Mode::level_1_frontend_only_maintenance
312
+										? 'checked'
313
+										: ''
314
+								);
315
+								?>
316 316
                             />
317 317
                         </td>
318 318
                         <th align="left">
@@ -321,9 +321,9 @@  discard block
 block discarded – undo
321 321
                             </label>
322 322
                             <p class='description' style="font-weight: normal;">
323 323
                                 <?php esc_html_e(
324
-                                    "This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.",
325
-                                    "event_espresso"
326
-                                ); ?>
324
+									"This disables Event Espresso frontend functionality for all site visitors that are not administrators, and allows you to configure and/or test things on the frontend of your website before others can see.",
325
+									"event_espresso"
326
+								); ?>
327 327
                             </p>
328 328
                         </th>
329 329
                     </tr>
@@ -337,6 +337,6 @@  discard block
 block discarded – undo
337 337
             </p>
338 338
         </form>
339 339
         <?php
340
-    } ?>
340
+	} ?>
341 341
 
342 342
 </div>
Please login to merge, or discard this patch.
venues/templates/event_venues_metabox_content_from_manager.template.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -18,28 +18,28 @@
 block discarded – undo
18 18
                 <?php esc_html_e('Select from Venue Manager List', 'event_espresso'); ?>
19 19
             </label>
20 20
             <?php
21
-            echo wp_kses($venue_selector, AllowedTags::getWithFormTags());
22
-            echo wp_kses($new_venue_link, AllowedTags::getWithFormTags());
23
-            foreach ($venues as $venue) :
24
-                if (! $venue instanceof EE_Venue) {
25
-                    continue;
26
-                }
27
-                $selected     = $evt_venue_id === $venue->ID() ? 'ee-venue-selected' : 'ee-venue-not-selected';
28
-                $edit_url     = EE_Admin_Page::add_query_args_and_nonce(
29
-                    ['action' => 'edit', 'post' => $venue->ID()],
30
-                    EE_VENUES_ADMIN_URL
31
-                );
32
-                $state_name   = is_object($venue->state_obj()) ? $venue->state_obj()->name() : null;
33
-                $country_name = is_object($venue->country_obj()) ? $venue->country_obj()->name() : null;
34
-                ?>
21
+			echo wp_kses($venue_selector, AllowedTags::getWithFormTags());
22
+			echo wp_kses($new_venue_link, AllowedTags::getWithFormTags());
23
+			foreach ($venues as $venue) :
24
+				if (! $venue instanceof EE_Venue) {
25
+					continue;
26
+				}
27
+				$selected     = $evt_venue_id === $venue->ID() ? 'ee-venue-selected' : 'ee-venue-not-selected';
28
+				$edit_url     = EE_Admin_Page::add_query_args_and_nonce(
29
+					['action' => 'edit', 'post' => $venue->ID()],
30
+					EE_VENUES_ADMIN_URL
31
+				);
32
+				$state_name   = is_object($venue->state_obj()) ? $venue->state_obj()->name() : null;
33
+				$country_name = is_object($venue->country_obj()) ? $venue->country_obj()->name() : null;
34
+				?>
35 35
                 <div class='eebox <?php echo sanitize_html_class($selected); ?>' id="eebox_<?php echo absint($venue->ID()); ?>">
36 36
                     <p class='address-view'>
37 37
                         <span><?php esc_html_e('Address:', 'event_espresso'); ?>&nbsp;</span>
38 38
                         <?php echo esc_html($venue->address()); ?>
39 39
                         <?php echo wp_kses(
40
-                            $venue->address2() ? '<br />' . $venue->address2() : '',
41
-                            AllowedTags::getAllowedTags()
42
-                        ); ?>
40
+							$venue->address2() ? '<br />' . $venue->address2() : '',
41
+							AllowedTags::getAllowedTags()
42
+						); ?>
43 43
                         <br />
44 44
                         <span><?php esc_html_e('City:', 'event_espresso'); ?>&nbsp;</span>
45 45
                         <?php echo esc_html($venue->city()); ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             echo wp_kses($venue_selector, AllowedTags::getWithFormTags());
22 22
             echo wp_kses($new_venue_link, AllowedTags::getWithFormTags());
23 23
             foreach ($venues as $venue) :
24
-                if (! $venue instanceof EE_Venue) {
24
+                if ( ! $venue instanceof EE_Venue) {
25 25
                     continue;
26 26
                 }
27 27
                 $selected     = $evt_venue_id === $venue->ID() ? 'ee-venue-selected' : 'ee-venue-not-selected';
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                         <span><?php esc_html_e('Address:', 'event_espresso'); ?>&nbsp;</span>
38 38
                         <?php echo esc_html($venue->address()); ?>
39 39
                         <?php echo wp_kses(
40
-                            $venue->address2() ? '<br />' . $venue->address2() : '',
40
+                            $venue->address2() ? '<br />'.$venue->address2() : '',
41 41
                             AllowedTags::getAllowedTags()
42 42
                         ); ?>
43 43
                         <br />
Please login to merge, or discard this patch.
admin/new/pricing/templates/event_tickets_datetime_ticket_row.template.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                maxlength='245'
81 81
                name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_name]"
82 82
                placeholder="<?php
83
-               esc_html_e('Ticket Title', 'event_espresso') ?>"
83
+			   esc_html_e('Ticket Title', 'event_espresso') ?>"
84 84
                value="<?php echo esc_attr($TKT_name); ?>"
85 85
         />
86 86
     </td>
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
                                        for='edit-ticket-TKT_uses-<?php echo esc_attr($tkt_row); ?>'
327 327
                                 >
328 328
                                     <?php
329
-                                    esc_html_e('Ticket Uses', 'event_espresso') ?>
329
+									esc_html_e('Ticket Uses', 'event_espresso') ?>
330 330
                                 </label>
331 331
                                 <input type="text"
332 332
                                        class="edit-ticket-TKT_uses ee-small-text-inp ee-numeric"
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
                                 />
346 346
                                 <label class='screen-reader-text' for='disabled-ticket-TKT_min-<?php echo esc_attr($tkt_row);?>'>
347 347
                                     <?php
348
-                                    esc_html_e('Minimum Quantity', 'event_espresso') ?>
348
+									esc_html_e('Minimum Quantity', 'event_espresso') ?>
349 349
                                 </label>
350 350
                                 <input type="text" disabled
351 351
                                        class="edit-ticket-TKT_min ee-small-text-inp ee-numeric"
@@ -407,14 +407,14 @@  discard block
 block discarded – undo
407 407
                                id="edit-ticket-TKT_required-<?php echo esc_attr($tkt_row); ?>"
408 408
                                value="1"
409 409
                             <?php
410
-                                echo esc_attr($TKT_required ? ' checked' : '');
411
-                                echo esc_attr($disabled ? ' disabled' : '');
412
-                            ?>
410
+								echo esc_attr($TKT_required ? ' checked' : '');
411
+								echo esc_attr($disabled ? ' disabled' : '');
412
+							?>
413 413
                         />
414 414
                         <?php esc_html_e(
415
-                            'This ticket is required (will appear first in frontend ticket lists).',
416
-                            'event_espresso'
417
-                        ); ?>
415
+							'This ticket is required (will appear first in frontend ticket lists).',
416
+							'event_espresso'
417
+						); ?>
418 418
                     </label>
419 419
                 </div>
420 420
                 <div class="ticket-is-taxable-container">
@@ -517,36 +517,36 @@  discard block
 block discarded – undo
517 517
             <h4 class="tickets-heading"><?php esc_html_e('Event Datetimes', 'event_espresso'); ?></h4>
518 518
             <p>
519 519
             <?php  esc_html_e(
520
-                'This ticket will be usable (allow entrance) for the following selected event datetimes (click to select).  The "# Datetimes" amount (above) indicates how many of the assigned datetimes the ticket holder can gain access to:',
521
-                'event_espresso'
522
-            ); ?>
520
+				'This ticket will be usable (allow entrance) for the following selected event datetimes (click to select).  The "# Datetimes" amount (above) indicates how many of the assigned datetimes the ticket holder can gain access to:',
521
+				'event_espresso'
522
+			); ?>
523 523
             </p>
524 524
             <ul class="datetime-tickets-list">
525 525
                 <?php echo wp_kses($ticket_datetimes_list, AllowedTags::getWithFormTags()); ?>
526 526
             </ul>
527 527
 
528 528
             <?php do_action(
529
-                'AHEE__event_tickets_datetime_ticket_row_template__advanced_details_end',
530
-                $tkt_row,
531
-                $TKT_ID
532
-            ); ?>
529
+				'AHEE__event_tickets_datetime_ticket_row_template__advanced_details_end',
530
+				$tkt_row,
531
+				$TKT_ID
532
+			); ?>
533 533
             <div class="ee-editor-footer-container">
534 534
                 <div class="ee-editor-id-container">
535 535
                     <span class="ee-item-id">
536 536
                         <?php
537
-                        echo esc_html(
538
-                            $TKT_ID
539
-                                ? sprintf(__('Ticket ID: %d', 'event_espresso'), $TKT_ID)
540
-                                : ''
541
-                        ); ?>
537
+						echo esc_html(
538
+							$TKT_ID
539
+								? sprintf(__('Ticket ID: %d', 'event_espresso'), $TKT_ID)
540
+								: ''
541
+						); ?>
542 542
                     </span>
543 543
                 </div>
544 544
                 <div class="save-cancel-button-container">
545 545
                     <label for="edit-ticket-TKT_is_default_selector-<?php echo esc_attr($tkt_row); ?>">
546 546
                         <?php esc_html_e(
547
-                            'use this new ticket as a default ticket for any new events',
548
-                            'event_espresso'
549
-                        ); ?>
547
+							'use this new ticket as a default ticket for any new events',
548
+							'event_espresso'
549
+						); ?>
550 550
                         <input type="checkbox"
551 551
                                name="<?php echo esc_attr($edit_tickets_name); ?>[<?php echo esc_attr($tkt_row); ?>][TKT_is_default_selector]"
552 552
                                class="edit-ticket-TKT_is_default_selector"
Please login to merge, or discard this patch.
pricing/templates/event_tickets_datetime_attached_tickets_row.template.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
                           placeholder="Datetime Description (optional)"><?php echo esc_textarea($DTT_description); ?></textarea>
26 26
             </div>
27 27
             <?php do_action(
28
-                'AHEE__event_tickets_datetime_attached_tickets_row_template__advanced_details_after_dtt_description',
29
-                $dtt_row,
30
-                $DTT_ID
31
-            ); ?>
28
+				'AHEE__event_tickets_datetime_attached_tickets_row_template__advanced_details_after_dtt_description',
29
+				$dtt_row,
30
+				$DTT_ID
31
+			); ?>
32 32
             <h4 class="datetime-tickets-heading"><?php esc_html_e('Assigned Tickets', 'event_espresso'); ?></h4>
33 33
 
34 34
             <ul class="datetime-tickets-list">
@@ -38,28 +38,28 @@  discard block
 block discarded – undo
38 38
 
39 39
             <div class="add-datetime-ticket-container">
40 40
                 <h4 class="datetime-tickets-heading"><?php
41
-                    esc_html_e(
42
-                        'Add New Ticket',
43
-                        'event_espresso'
44
-                    ); ?></h4><?php echo wp_kses($add_new_datetime_ticket_help_link, AllowedTags::getAllowedTags()); ?><br>
41
+					esc_html_e(
42
+						'Add New Ticket',
43
+						'event_espresso'
44
+					); ?></h4><?php echo wp_kses($add_new_datetime_ticket_help_link, AllowedTags::getAllowedTags()); ?><br>
45 45
                 <table class="add-new-ticket-table">
46 46
                     <thead>
47 47
                     <tr valign="top">
48 48
                         <td><span class="ANT_TKT_name_label"><?php
49
-                                esc_html_e(
50
-                                    'Ticket Name',
51
-                                    'event_espresso'
52
-                                ); ?></span></td>
49
+								esc_html_e(
50
+									'Ticket Name',
51
+									'event_espresso'
52
+								); ?></span></td>
53 53
                         <td><span class="ANT_TKT_goes_on_sale_label"><?php
54
-                                esc_html_e(
55
-                                    'Sale Starts',
56
-                                    'event_espresso'
57
-                                ); ?></span></td>
54
+								esc_html_e(
55
+									'Sale Starts',
56
+									'event_espresso'
57
+								); ?></span></td>
58 58
                         <td><span class="ANT_TKT_sell_until_label"><?php
59
-                                esc_html_e(
60
-                                    'Sell Until',
61
-                                    'event_espresso'
62
-                                ); ?></span></td>
59
+								esc_html_e(
60
+									'Sell Until',
61
+									'event_espresso'
62
+								); ?></span></td>
63 63
                         <td><span class="ANT_TKT_price_label"><?php esc_html_e('Price', 'event_espresso'); ?></span>
64 64
                         </td>
65 65
                         <td><span class="ANT_TKT_qty_label"><?php esc_html_e('Qty', 'event_espresso'); ?></span></td>
@@ -110,15 +110,15 @@  discard block
 block discarded – undo
110 110
                     <div class="ee-editor-id-container">
111 111
                         <span class="ee-item-id">
112 112
                             <?php
113
-                            echo esc_html(
114
-                                $DTT_ID
115
-                                    ? sprintf(
116
-                                        __('Datetime ID: %d', 'event_espresso'),
117
-                                        $DTT_ID
118
-                                    )
119
-                                    : ''
120
-                            );
121
-                            ?>
113
+							echo esc_html(
114
+								$DTT_ID
115
+									? sprintf(
116
+										__('Datetime ID: %d', 'event_espresso'),
117
+										$DTT_ID
118
+									)
119
+									: ''
120
+							);
121
+							?>
122 122
                         </span>
123 123
                     </div>
124 124
                     <div class="save-cancel-button-container">
Please login to merge, or discard this patch.