Completed
Branch BUG-9804-double-click-spco-sub... (c2cac1)
by
unknown
42:11 queued 32:59
created
templates/txn_admin_details_side_meta_box_billing_info.template.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,37 +1,37 @@
 block discarded – undo
1 1
 	<div id="admin-side-mbox-billing-info-dv" class="admin-side-mbox-dv">
2
-<?php if ( empty($billing_form) ) : ?>
2
+<?php if (empty($billing_form)) : ?>
3 3
 		<div class="clearfix">
4
-			<?php _e( 'There is no billing info for this transaction.', 'event_espresso' );?><br/>
4
+			<?php _e('There is no billing info for this transaction.', 'event_espresso'); ?><br/>
5 5
 		</div>
6 6
 <?php else :
7
-	function ee_show_billing_info_cleaned( EE_Form_Section_Proper $form_section, $found_cc_data = false ) {
8
-		foreach( $form_section->subsections() as $subsection ) {
9
-			if( $subsection instanceof EE_Form_Input_Base ) {
10
-				if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal ||
11
-					$subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal ){
7
+	function ee_show_billing_info_cleaned(EE_Form_Section_Proper $form_section, $found_cc_data = false) {
8
+		foreach ($form_section->subsections() as $subsection) {
9
+			if ($subsection instanceof EE_Form_Input_Base) {
10
+				if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal ||
11
+					$subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal) {
12 12
 					continue;
13 13
 				}
14
-				if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal ) {
14
+				if ($subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal) {
15 15
 					$found_cc_data = true;
16 16
 				}
17 17
 				?>
18 18
 					<div class="clearfix">
19
-						<span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php echo $subsection->get_html_for_label();?></span><?php echo $subsection->pretty_value();?>
19
+						<span class="admin-side-mbox-label-spn lt-grey-txt float-left"><?php echo $subsection->get_html_for_label(); ?></span><?php echo $subsection->pretty_value(); ?>
20 20
 					</div><?php
21
-			} elseif( $subsection instanceof EE_Form_Section_Proper ) {
22
-				$found_cc_data = ee_show_billing_info_cleaned( $subsection, $found_cc_data);
21
+			} elseif ($subsection instanceof EE_Form_Section_Proper) {
22
+				$found_cc_data = ee_show_billing_info_cleaned($subsection, $found_cc_data);
23 23
 			}
24 24
 		}
25 25
 		return $found_cc_data;
26 26
 	}
27
-	$found_cc_data = ee_show_billing_info_cleaned( $billing_form );
28
-	if( apply_filters( 
27
+	$found_cc_data = ee_show_billing_info_cleaned($billing_form);
28
+	if (apply_filters( 
29 29
 			'FHEE__txn_admin_details_side_meta_box_billing_info__show_default_note', 
30 30
 			$found_cc_data,
31
-			$billing_form ) ) {?>
32
-		<p class="help"><?php _e( 'Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.', 'event_espresso' );?></p>
31
+			$billing_form )) {?>
32
+		<p class="help"><?php _e('Note: Card expiry dates and CCV are not stored. Only the last 4 digits of card numbers are stored.', 'event_espresso'); ?></p>
33 33
 	<?php }
34
-	do_action( 'AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form );
34
+	do_action('AHEE__txn_admin_details_side_meta_box_billing_info__billing_form_footer', $billing_form);
35 35
 	endif; ?>
36 36
 
37 37
 	</div>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,13 +3,15 @@
 block discarded – undo
3 3
 		<div class="clearfix">
4 4
 			<?php _e( 'There is no billing info for this transaction.', 'event_espresso' );?><br/>
5 5
 		</div>
6
-<?php else :
6
+<?php else {
7
+	:
7 8
 	function ee_show_billing_info_cleaned( EE_Form_Section_Proper $form_section, $found_cc_data = false ) {
8 9
 		foreach( $form_section->subsections() as $subsection ) {
9 10
 			if( $subsection instanceof EE_Form_Input_Base ) {
10 11
 				if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_All_Sensitive_Data_Removal ||
11 12
 					$subsection->get_sensitive_data_removal_strategy() instanceof EE_CCV_Sensitive_Data_Removal ){
12 13
 					continue;
14
+}
13 15
 				}
14 16
 				if( $subsection->get_sensitive_data_removal_strategy() instanceof EE_Credit_Card_Sensitive_Data_Removal ) {
15 17
 					$found_cc_data = true;
Please login to merge, or discard this patch.
core/libraries/payment_methods/EE_PMT_Base.lib.php 2 patches
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 	protected function _get_billing_values_from_form( $billing_form ){
443 443
 		if($billing_form instanceof EE_Form_Section_Proper ){
444 444
 			return $billing_form->input_pretty_values( true );
445
-		}else{
445
+		} else{
446 446
 			return NULL;
447 447
 		}
448 448
 	}
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
 	public function supports_sending_refunds(){
551 551
 		if($this->_gateway && $this->_gateway instanceof EE_Gateway){
552 552
 			return $this->_gateway->supports_sending_refunds();
553
-		}else{
553
+		} else{
554 554
 			return false;
555 555
 		}
556 556
 	}
@@ -588,11 +588,11 @@  discard block
 block discarded – undo
588 588
 	public function payment_occurs(){
589 589
 		if( ! $this->_gateway){
590 590
 			return EE_PMT_Base::offline;
591
-		}elseif($this->_gateway instanceof EE_Onsite_Gateway){
591
+		} elseif($this->_gateway instanceof EE_Onsite_Gateway){
592 592
 			return EE_PMT_Base::onsite;
593
-		}elseif($this->_gateway instanceof EE_Offsite_Gateway){
593
+		} elseif($this->_gateway instanceof EE_Offsite_Gateway){
594 594
 			return EE_PMT_Base::offsite;
595
-		}else{
595
+		} else{
596 596
 			throw new EE_Error(sprintf(__("Payment method type '%s's gateway isn't an instance of EE_Onsite_Gateway, EE_Offsite_Gateway, or null. It must be one of those", "event_espresso"),get_class($this)));
597 597
 		}
598 598
 	}
Please login to merge, or discard this patch.
Spacing   +106 added lines, -106 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  * @since 				$VID:$
15 15
  *
16 16
  */
17
-abstract class EE_PMT_Base{
17
+abstract class EE_PMT_Base {
18 18
 
19 19
 	const onsite = 'on-site';
20 20
 	const offsite = 'off-site';
@@ -95,31 +95,31 @@  discard block
 block discarded – undo
95 95
 	 * @return EE_PMT_Base
96 96
 	 */
97 97
 	function __construct($pm_instance = NULL) {
98
-		if ( $pm_instance instanceof EE_Payment_Method ){
98
+		if ($pm_instance instanceof EE_Payment_Method) {
99 99
 			$this->set_instance($pm_instance);
100 100
 		}
101
-		if($this->_gateway){
102
-			$this->_gateway->set_payment_model( EEM_Payment::instance() );
103
-			$this->_gateway->set_payment_log( EEM_Change_Log::instance() );
104
-			$this->_gateway->set_template_helper( new EEH_Template() );
105
-			$this->_gateway->set_line_item_helper( new EEH_Line_Item() );
106
-			$this->_gateway->set_money_helper( new EEH_Money() );
101
+		if ($this->_gateway) {
102
+			$this->_gateway->set_payment_model(EEM_Payment::instance());
103
+			$this->_gateway->set_payment_log(EEM_Change_Log::instance());
104
+			$this->_gateway->set_template_helper(new EEH_Template());
105
+			$this->_gateway->set_line_item_helper(new EEH_Line_Item());
106
+			$this->_gateway->set_money_helper(new EEH_Money());
107 107
 		}
108
-		if ( ! isset( $this->_has_billing_form ) ) {
108
+		if ( ! isset($this->_has_billing_form)) {
109 109
 			// by default, On Site gateways have a billing form
110
-			if ( $this->payment_occurs() == EE_PMT_Base::onsite ) {
111
-				$this->set_has_billing_form( true );
110
+			if ($this->payment_occurs() == EE_PMT_Base::onsite) {
111
+				$this->set_has_billing_form(true);
112 112
 			} else {
113
-				$this->set_has_billing_form( false );
113
+				$this->set_has_billing_form(false);
114 114
 			}
115 115
 		}
116 116
 
117
-		if( ! $this->_pretty_name){
117
+		if ( ! $this->_pretty_name) {
118 118
 			throw new EE_Error(sprintf(__("You must set the pretty name for the Payment Method Type in the constructor (_pretty_name), and please make it internationalized", "event_espresso")));
119 119
 		}
120 120
 		//if the child didn't specify a default button, use the credit card one
121
-		if( $this->_default_button_url === NULL){
122
-			$this->_default_button_url = EE_PLUGIN_DIR_URL . 'payment_methods' . DS . 'pay-by-credit-card.png';
121
+		if ($this->_default_button_url === NULL) {
122
+			$this->_default_button_url = EE_PLUGIN_DIR_URL.'payment_methods'.DS.'pay-by-credit-card.png';
123 123
 		}
124 124
 	}
125 125
 
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 	/**
129 129
 	 * @param boolean $has_billing_form
130 130
 	 */
131
-	public function set_has_billing_form( $has_billing_form ) {
132
-		$this->_has_billing_form = filter_var( $has_billing_form, FILTER_VALIDATE_BOOLEAN );
131
+	public function set_has_billing_form($has_billing_form) {
132
+		$this->_has_billing_form = filter_var($has_billing_form, FILTER_VALIDATE_BOOLEAN);
133 133
 	}
134 134
 
135 135
 
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
 	/**
138 138
 	 * sets the file_folder property
139 139
 	 */
140
-	protected function _set_file_folder(){
140
+	protected function _set_file_folder() {
141 141
 		$reflector = new ReflectionClass(get_class($this));
142 142
 		$fn = $reflector->getFileName();
143
-		$this->_file_folder =  dirname($fn).DS;
143
+		$this->_file_folder = dirname($fn).DS;
144 144
 	}
145 145
 
146 146
 
@@ -148,10 +148,10 @@  discard block
 block discarded – undo
148 148
 	/**
149 149
 	 * sets the file URL with a trailing slash for this PMT
150 150
 	 */
151
-	protected function _set_file_url(){
152
-		$plugins_dir_fixed = str_replace('\\',DS,WP_PLUGIN_DIR);
153
-		$file_folder_fixed = str_replace('\\',DS,$this->file_folder());
154
-		$file_path = str_replace($plugins_dir_fixed,WP_PLUGIN_URL,$file_folder_fixed);
151
+	protected function _set_file_url() {
152
+		$plugins_dir_fixed = str_replace('\\', DS, WP_PLUGIN_DIR);
153
+		$file_folder_fixed = str_replace('\\', DS, $this->file_folder());
154
+		$file_path = str_replace($plugins_dir_fixed, WP_PLUGIN_URL, $file_folder_fixed);
155 155
 		$this->_file_url = $file_path;
156 156
 	}
157 157
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 * Gets the default description on all payment methods of this type
160 160
 	 * @return string
161 161
 	 */
162
-	public function default_description(){
162
+	public function default_description() {
163 163
 		return $this->_default_description;
164 164
 	}
165 165
 
@@ -169,8 +169,8 @@  discard block
 block discarded – undo
169 169
 	 * Returns the folder containing the PMT child class, with a trailing slash
170 170
 	 * @return string
171 171
 	 */
172
-	public function file_folder(){
173
-		if( ! $this->_file_folder ) {
172
+	public function file_folder() {
173
+		if ( ! $this->_file_folder) {
174 174
 			$this->_set_file_folder();
175 175
 		}
176 176
 		return $this->_file_folder;
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
 	/**
182 182
 	 * @return string
183 183
 	 */
184
-	public function file_url(){
185
-		if( ! $this->_file_url ) {
184
+	public function file_url() {
185
+		if ( ! $this->_file_url) {
186 186
 			$this->_set_file_url();
187 187
 		}
188 188
 		return $this->_file_url;
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
 	 * Its important teh payment method instance is set before
196 196
 	 * @param EE_Payment_Method $payment_method_instance
197 197
 	 */
198
-	function set_instance($payment_method_instance){
198
+	function set_instance($payment_method_instance) {
199 199
 		$this->_pm_instance = $payment_method_instance;
200 200
 		//if they have already requested the settings form, make sure its
201 201
 		//data matches this model object
202
-		if($this->_settings_form){
202
+		if ($this->_settings_form) {
203 203
 			$this->settings_form()->populate_model_obj($payment_method_instance);
204 204
 		}
205
-		if($this->_gateway && $this->_gateway instanceof EE_Gateway){
205
+		if ($this->_gateway && $this->_gateway instanceof EE_Gateway) {
206 206
 			$this->_gateway->set_settings($payment_method_instance->settings_array());
207 207
 		}
208 208
 	}
@@ -213,14 +213,14 @@  discard block
 block discarded – undo
213 213
 	 * Gets teh form for displaying to admins where they setup the payment method
214 214
 	 * @return EE_Payment_Method_Form
215 215
 	 */
216
-	function settings_form(){
217
-		if( ! $this->_settings_form){
216
+	function settings_form() {
217
+		if ( ! $this->_settings_form) {
218 218
 			$this->_settings_form = $this->generate_new_settings_form();
219
-			$this->_settings_form->set_payment_method_type( $this );
220
-			$this->_settings_form->_construct_finalize(NULL, NULL );
219
+			$this->_settings_form->set_payment_method_type($this);
220
+			$this->_settings_form->_construct_finalize(NULL, NULL);
221 221
 			//if we have already assigned a model object to this pmt, make
222 222
 			//sure its reflected in teh form we just generated
223
-			if($this->_pm_instance){
223
+			if ($this->_pm_instance) {
224 224
 				$this->_settings_form->populate_model_obj($this->_pm_instance);
225 225
 			}
226 226
 		}
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	 * this payment method type's settings form later in the request
247 247
 	 * @param EE_Payment_Method_Form $form
248 248
 	 */
249
-	public function set_settings_form($form){
249
+	public function set_settings_form($form) {
250 250
 		$this->_settings_form = $form;
251 251
 	}
252 252
 
@@ -269,10 +269,10 @@  discard block
 block discarded – undo
269 269
 	 * @param array $extra_args
270 270
 	 * @return \EE_Billing_Attendee_Info_Form|\EE_Billing_Info_Form|null
271 271
 	 */
272
-	public function billing_form( EE_Transaction $transaction = NULL, $extra_args = array() ){
272
+	public function billing_form(EE_Transaction $transaction = NULL, $extra_args = array()) {
273 273
 		// has billing form already been regenerated ? or overwrite cache?
274
-		if ( ! $this->_billing_form instanceof EE_Billing_Info_Form || ! $this->_cache_billing_form ){
275
-			$this->_billing_form = $this->generate_new_billing_form( $transaction, $extra_args );
274
+		if ( ! $this->_billing_form instanceof EE_Billing_Info_Form || ! $this->_cache_billing_form) {
275
+			$this->_billing_form = $this->generate_new_billing_form($transaction, $extra_args);
276 276
 		}
277 277
 		//if we know who the attendee is, and this is a billing form
278 278
 		//that uses attendee info, populate it
@@ -281,8 +281,8 @@  discard block
 block discarded – undo
281 281
 			$transaction instanceof EE_Transaction &&
282 282
 			$transaction->primary_registration() instanceof EE_Registration &&
283 283
 			$transaction->primary_registration()->attendee() instanceof EE_Attendee
284
-		){
285
-			$this->_billing_form->populate_from_attendee( $transaction->primary_registration()->attendee() );
284
+		) {
285
+			$this->_billing_form->populate_from_attendee($transaction->primary_registration()->attendee());
286 286
 		}
287 287
 		return $this->_billing_form;
288 288
 	}
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 	 * @param \EE_Transaction $transaction
294 294
 	 * @return \EE_Billing_Info_Form
295 295
 	 */
296
-	abstract function generate_new_billing_form( EE_Transaction $transaction = NULL );
296
+	abstract function generate_new_billing_form(EE_Transaction $transaction = NULL);
297 297
 
298 298
 
299 299
 
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
 	 * @param \EE_Billing_Info_Form $billing_form
305 305
 	 * @return \EE_Billing_Info_Form
306 306
 	 */
307
-	public function apply_billing_form_debug_settings( EE_Billing_Info_Form $billing_form ) {
307
+	public function apply_billing_form_debug_settings(EE_Billing_Info_Form $billing_form) {
308 308
 		return $billing_form;
309 309
 	}
310 310
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 	 * if you have form
316 316
 	 * @param EE_Payment_Method $form
317 317
 	 */
318
-	public function set_billing_form($form){
318
+	public function set_billing_form($form) {
319 319
 		$this->_billing_form = $form;
320 320
 	}
321 321
 
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 	 * Returns whether or not this payment method requires HTTPS to be used
326 326
 	 * @return boolean
327 327
 	 */
328
-	function requires_https(){
328
+	function requires_https() {
329 329
 		return $this->_requires_https;
330 330
 	}
331 331
 
@@ -343,9 +343,9 @@  discard block
 block discarded – undo
343 343
 	 * @return EE_Payment
344 344
 	 * @throws EE_Error
345 345
 	 */
346
-	function process_payment( EE_Transaction $transaction, $amount = null, $billing_info = null, $return_url = null,$fail_url = '', $method = 'CART', $by_admin = false ){
346
+	function process_payment(EE_Transaction $transaction, $amount = null, $billing_info = null, $return_url = null, $fail_url = '', $method = 'CART', $by_admin = false) {
347 347
 		// @todo: add surcharge for the payment method, if any
348
-		if ( $this->_gateway ) {
348
+		if ($this->_gateway) {
349 349
 			//there is a gateway, so we're going to make a payment object
350 350
 			//but wait! do they already have a payment in progress that we thought was failed?
351 351
 			$duplicate_properties = array(
@@ -356,10 +356,10 @@  discard block
 block discarded – undo
356 356
 				'PAY_amount' 					=> $amount !== null ? $amount : $transaction->remaining(),
357 357
 				'PAY_gateway_response' 	=> null,
358 358
 			);
359
-			$payment = EEM_Payment::instance()->get_one( array( $duplicate_properties ));
359
+			$payment = EEM_Payment::instance()->get_one(array($duplicate_properties));
360 360
 			//if we didn't already have a payment in progress for the same thing,
361 361
 			//then we actually want to make a new payment
362
-			if ( ! $payment instanceof EE_Payment ){
362
+			if ( ! $payment instanceof EE_Payment) {
363 363
 				$payment = EE_Payment::new_instance(
364 364
 					array_merge(
365 365
 						$duplicate_properties,
@@ -375,10 +375,10 @@  discard block
 block discarded – undo
375 375
 			}
376 376
 			//make sure the payment has been saved to show we started it, and so it has an ID should the gateway try to log it
377 377
 			$payment->save();
378
-			$billing_values = $this->_get_billing_values_from_form( $billing_info );
378
+			$billing_values = $this->_get_billing_values_from_form($billing_info);
379 379
 
380 380
 			//  Offsite Gateway
381
-			if( $this->_gateway instanceof EE_Offsite_Gateway ){
381
+			if ($this->_gateway instanceof EE_Offsite_Gateway) {
382 382
 
383 383
 				$payment = $this->_gateway->set_redirection_info(
384 384
 					$payment,
@@ -394,17 +394,17 @@  discard block
 block discarded – undo
394 394
 				);
395 395
 				$payment->save();
396 396
 			//  Onsite Gateway
397
-			} elseif ( $this->_gateway instanceof EE_Onsite_Gateway ) {
397
+			} elseif ($this->_gateway instanceof EE_Onsite_Gateway) {
398 398
 
399
-				$payment = $this->_gateway->do_direct_payment($payment,$billing_values);
399
+				$payment = $this->_gateway->do_direct_payment($payment, $billing_values);
400 400
 				$payment->save();
401 401
 
402 402
 			} else {
403 403
 				throw new EE_Error(
404 404
 					sprintf(
405
-						__('Gateway for payment method type "%s" is "%s", not a subclass of either EE_Offsite_Gateway or EE_Onsite_Gateway, or null (to indicate NO gateway)', 'event_espresso' ),
405
+						__('Gateway for payment method type "%s" is "%s", not a subclass of either EE_Offsite_Gateway or EE_Onsite_Gateway, or null (to indicate NO gateway)', 'event_espresso'),
406 406
 						get_class($this),
407
-						gettype( $this->_gateway )
407
+						gettype($this->_gateway)
408 408
 					)
409 409
 				);
410 410
 			}
@@ -426,8 +426,8 @@  discard block
 block discarded – undo
426 426
 		}
427 427
 
428 428
 		// if there is billing info, clean it and save it now
429
-		if( $billing_info instanceof EE_Billing_Attendee_Info_Form ){
430
-			$this->_save_billing_info_to_attendee( $billing_info, $transaction );
429
+		if ($billing_info instanceof EE_Billing_Attendee_Info_Form) {
430
+			$this->_save_billing_info_to_attendee($billing_info, $transaction);
431 431
 		}
432 432
 
433 433
 		return $payment;
@@ -440,10 +440,10 @@  discard block
 block discarded – undo
440 440
 	 * @param EE_Billing_Info_Form $billing_form
441 441
 	 * @return array
442 442
 	 */
443
-	protected function _get_billing_values_from_form( $billing_form ){
444
-		if($billing_form instanceof EE_Form_Section_Proper ){
445
-			return $billing_form->input_pretty_values( true );
446
-		}else{
443
+	protected function _get_billing_values_from_form($billing_form) {
444
+		if ($billing_form instanceof EE_Form_Section_Proper) {
445
+			return $billing_form->input_pretty_values(true);
446
+		} else {
447 447
 			return NULL;
448 448
 		}
449 449
 	}
@@ -457,13 +457,13 @@  discard block
 block discarded – undo
457 457
 	 * @return EE_Payment
458 458
 	 * @throws EE_Error
459 459
 	 */
460
-	public function handle_ipn($req_data,$transaction){
460
+	public function handle_ipn($req_data, $transaction) {
461 461
 		$transaction = EEM_Transaction::instance()->ensure_is_obj($transaction);
462
-		if( ! $this->_gateway instanceof EE_Offsite_Gateway){
463
-			throw new EE_Error(sprintf(__("Could not handle IPN because '%s' is not an offsite gateway", "event_espresso"), print_r( $this->_gateway, TRUE )));
462
+		if ( ! $this->_gateway instanceof EE_Offsite_Gateway) {
463
+			throw new EE_Error(sprintf(__("Could not handle IPN because '%s' is not an offsite gateway", "event_espresso"), print_r($this->_gateway, TRUE)));
464 464
 
465 465
 		}
466
-		$payment = $this->_gateway->handle_payment_update( $req_data, $transaction );
466
+		$payment = $this->_gateway->handle_payment_update($req_data, $transaction);
467 467
 		return $payment;
468 468
 	}
469 469
 
@@ -476,22 +476,22 @@  discard block
 block discarded – undo
476 476
 	 * @param EE_Transaction $transaction
477 477
 	 * @return boolean success
478 478
 	 */
479
-	protected function _save_billing_info_to_attendee($billing_form, $transaction){
480
-		if( ! $transaction || ! $transaction instanceof EE_Transaction){
479
+	protected function _save_billing_info_to_attendee($billing_form, $transaction) {
480
+		if ( ! $transaction || ! $transaction instanceof EE_Transaction) {
481 481
 			EE_Error::add_error(__("Cannot save billing info because no transaction was specified", "event_espresso"), __FILE__, __FUNCTION__, __LINE__);
482 482
 			return false;
483 483
 		}
484 484
 		$primary_reg = $transaction->primary_registration();
485
-		if( ! $primary_reg ){
485
+		if ( ! $primary_reg) {
486 486
 			EE_Error::add_error(__("Cannot save billing info because the transaction has no primary registration", "event_espresso"), __FILE__, __FUNCTION__, __LINE__);
487 487
 			return false;
488 488
 		}
489 489
 		$attendee = $primary_reg->attendee();
490
-		if( ! $attendee ){
490
+		if ( ! $attendee) {
491 491
 			EE_Error::add_error(__("Cannot save billing info because the transaction's primary registration has no attendee!", "event_espresso"), __FILE__, __FUNCTION__, __LINE__);
492 492
 			return false;
493 493
 		}
494
-		return $attendee->save_and_clean_billing_info_for_payment_method($billing_form, $transaction->payment_method() );
494
+		return $attendee->save_and_clean_billing_info_for_payment_method($billing_form, $transaction->payment_method());
495 495
 
496 496
 	}
497 497
 
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 	 * @param array $req_data
505 505
 	 * @return EE_Payment
506 506
 	 */
507
-	protected function find_payment_for_ipn( EE_Transaction $transaction, $req_data = array() ){
507
+	protected function find_payment_for_ipn(EE_Transaction $transaction, $req_data = array()) {
508 508
 		return $transaction->last_payment();
509 509
 	}
510 510
 
@@ -521,8 +521,8 @@  discard block
 block discarded – undo
521 521
 	 * and identifies the IPN as being for this payment method (not just fo ra payment method of this type)
522 522
 	 * @throws EE_Error
523 523
 	 */
524
-	public function handle_unclaimed_ipn( $req_data = array() ){
525
-		throw new EE_Error(sprintf(__("Payment Method '%s' cannot handle unclaimed IPNs", "event_espresso"), get_class($this) ));
524
+	public function handle_unclaimed_ipn($req_data = array()) {
525
+		throw new EE_Error(sprintf(__("Payment Method '%s' cannot handle unclaimed IPNs", "event_espresso"), get_class($this)));
526 526
 	}
527 527
 
528 528
 
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
 	 * @param EE_Transaction $transaction
539 539
 	 * @return EE_Payment
540 540
 	 */
541
-	public function finalize_payment_for($transaction){
541
+	public function finalize_payment_for($transaction) {
542 542
 		return $transaction->last_payment();
543 543
 	}
544 544
 
@@ -548,10 +548,10 @@  discard block
 block discarded – undo
548 548
 	 * Whether or not this payment method's gateway supports sending refund requests
549 549
 	 * @return boolean
550 550
 	 */
551
-	public function supports_sending_refunds(){
552
-		if($this->_gateway && $this->_gateway instanceof EE_Gateway){
551
+	public function supports_sending_refunds() {
552
+		if ($this->_gateway && $this->_gateway instanceof EE_Gateway) {
553 553
 			return $this->_gateway->supports_sending_refunds();
554
-		}else{
554
+		} else {
555 555
 			return false;
556 556
 		}
557 557
 	}
@@ -565,14 +565,14 @@  discard block
 block discarded – undo
565 565
 	 * @throws EE_Error
566 566
 	 * @return EE_Payment
567 567
 	 */
568
-	public function process_refund( EE_Payment $payment, $refund_info = array()){
569
-		if ( $this->_gateway && $this->_gateway instanceof EE_Gateway ) {
570
-			return $this->_gateway->do_direct_refund( $payment, $refund_info );
568
+	public function process_refund(EE_Payment $payment, $refund_info = array()) {
569
+		if ($this->_gateway && $this->_gateway instanceof EE_Gateway) {
570
+			return $this->_gateway->do_direct_refund($payment, $refund_info);
571 571
 		} else {
572 572
 			throw new EE_Error(
573 573
 				sprintf(
574
-					__( 'Payment Method Type "%s" does not support sending refund requests', 'event_espresso' ),
575
-					get_class( $this )
574
+					__('Payment Method Type "%s" does not support sending refund requests', 'event_espresso'),
575
+					get_class($this)
576 576
 				)
577 577
 			);
578 578
 		}
@@ -586,15 +586,15 @@  discard block
 block discarded – undo
586 586
 	 * @return string
587 587
 	 * @throws EE_Error
588 588
 	 */
589
-	public function payment_occurs(){
590
-		if( ! $this->_gateway){
589
+	public function payment_occurs() {
590
+		if ( ! $this->_gateway) {
591 591
 			return EE_PMT_Base::offline;
592
-		}elseif($this->_gateway instanceof EE_Onsite_Gateway){
592
+		}elseif ($this->_gateway instanceof EE_Onsite_Gateway) {
593 593
 			return EE_PMT_Base::onsite;
594
-		}elseif($this->_gateway instanceof EE_Offsite_Gateway){
594
+		}elseif ($this->_gateway instanceof EE_Offsite_Gateway) {
595 595
 			return EE_PMT_Base::offsite;
596
-		}else{
597
-			throw new EE_Error(sprintf(__("Payment method type '%s's gateway isn't an instance of EE_Onsite_Gateway, EE_Offsite_Gateway, or null. It must be one of those", "event_espresso"),get_class($this)));
596
+		} else {
597
+			throw new EE_Error(sprintf(__("Payment method type '%s's gateway isn't an instance of EE_Onsite_Gateway, EE_Offsite_Gateway, or null. It must be one of those", "event_espresso"), get_class($this)));
598 598
 		}
599 599
 	}
600 600
 
@@ -607,8 +607,8 @@  discard block
 block discarded – undo
607 607
 	 * @param EE_Payment $payment
608 608
 	 * @return string
609 609
 	 */
610
-	public function payment_overview_content(EE_Payment $payment){
611
-		return EEH_Template::display_template(EE_LIBRARIES.'payment_methods'.DS.'templates'.DS.'payment_details_content.template.php', array('payment_method'=>$this->_pm_instance,'payment'=>$payment) , true);
610
+	public function payment_overview_content(EE_Payment $payment) {
611
+		return EEH_Template::display_template(EE_LIBRARIES.'payment_methods'.DS.'templates'.DS.'payment_details_content.template.php', array('payment_method'=>$this->_pm_instance, 'payment'=>$payment), true);
612 612
 	}
613 613
 
614 614
 
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 	 *	@type array $template_args any arguments you want passed to the template file while rendering.
622 622
 	 *				Keys will be variable names and values with be their values.
623 623
 	 */
624
-	public function help_tabs_config(){
624
+	public function help_tabs_config() {
625 625
 		return array();
626 626
 	}
627 627
 
@@ -632,9 +632,9 @@  discard block
 block discarded – undo
632 632
 	 * the payment method's table's PMT_type column)
633 633
 	 * @return string
634 634
 	 */
635
-	public function system_name(){
635
+	public function system_name() {
636 636
 		$classname = get_class($this);
637
-		return str_replace("EE_PMT_",'',$classname);
637
+		return str_replace("EE_PMT_", '', $classname);
638 638
 	}
639 639
 
640 640
 
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
 	 * A pretty i18n version of the PMT name
644 644
 	 * @return string
645 645
 	 */
646
-	public function pretty_name(){
646
+	public function pretty_name() {
647 647
 		return $this->_pretty_name;
648 648
 	}
649 649
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
 	 * Gets the default absolute URL to the payment method type's button
654 654
 	 * @return string
655 655
 	 */
656
-	public function default_button_url(){
656
+	public function default_button_url() {
657 657
 		return $this->_default_button_url;
658 658
 	}
659 659
 
@@ -663,7 +663,7 @@  discard block
 block discarded – undo
663 663
 	 * Gets the gateway used by this payment method (if any)
664 664
 	 * @return EE_Gateway
665 665
 	 */
666
-	public function get_gateway(){
666
+	public function get_gateway() {
667 667
 		return $this->_gateway;
668 668
 	}
669 669
 
@@ -672,8 +672,8 @@  discard block
 block discarded – undo
672 672
 	/**
673 673
 	 * @return string html for the link to a help tab
674 674
 	 */
675
-	public function get_help_tab_link(){
676
-		return EEH_Template::get_help_tab_link( $this->get_help_tab_name() );
675
+	public function get_help_tab_link() {
676
+		return EEH_Template::get_help_tab_link($this->get_help_tab_name());
677 677
 	}
678 678
 
679 679
 
@@ -682,8 +682,8 @@  discard block
 block discarded – undo
682 682
 	 * Returns the name of the help tab for this PMT
683 683
 	 * @return string
684 684
 	 */
685
-	public function get_help_tab_name(){
686
-		return 'ee_' . strtolower( $this->system_name() ) . '_help_tab';
685
+	public function get_help_tab_name() {
686
+		return 'ee_'.strtolower($this->system_name()).'_help_tab';
687 687
 	}
688 688
 
689 689
 	/**
@@ -691,8 +691,8 @@  discard block
 block discarded – undo
691 691
 	 * this PMT by an admin
692 692
 	 * @return string
693 693
 	 */
694
-	public function cap_name(){
695
-		return 'ee_payment_method_' . strtolower( $this->system_name() );
694
+	public function cap_name() {
695
+		return 'ee_payment_method_'.strtolower($this->system_name());
696 696
 	}
697 697
 
698 698
 	/**
@@ -704,9 +704,9 @@  discard block
 block discarded – undo
704 704
 	 * @param EE_Payment $payment
705 705
 	 * @return void
706 706
 	 */
707
-	public function update_txn_based_on_payment( $payment ){
708
-		if( $this->_gateway instanceof EE_Gateway ){
709
-			$this->_gateway->update_txn_based_on_payment( $payment );
707
+	public function update_txn_based_on_payment($payment) {
708
+		if ($this->_gateway instanceof EE_Gateway) {
709
+			$this->_gateway->update_txn_based_on_payment($payment);
710 710
 		}
711 711
 	}
712 712
 
Please login to merge, or discard this patch.
core/libraries/template_parts/EE_Template_Part.class.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 //namespace EventEspresso\core\libraries\templates;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 /**
8 8
  * Class EE_Template_Part
@@ -47,11 +47,11 @@  discard block
 block discarded – undo
47 47
 	 * @param string $template
48 48
 	 * @param int    $priority
49 49
 	 */
50
-	public function __construct( $name, $label, $template, $priority = 100 ) {
51
-		$this->set_name( $name );
52
-		$this->set_label( $label );
53
-		$this->set_template( $template );
54
-		$this->set_priority( $priority );
50
+	public function __construct($name, $label, $template, $priority = 100) {
51
+		$this->set_name($name);
52
+		$this->set_label($label);
53
+		$this->set_template($template);
54
+		$this->set_priority($priority);
55 55
 	}
56 56
 
57 57
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 	/**
69 69
 	 * @param mixed $name
70 70
 	 */
71
-	public function set_name( $name ) {
71
+	public function set_name($name) {
72 72
 		$this->name = $name;
73 73
 	}
74 74
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	/**
87 87
 	 * @param string $label
88 88
 	 */
89
-	public function set_label( $label ) {
89
+	public function set_label($label) {
90 90
 		$this->label = $label;
91 91
 	}
92 92
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	/**
105 105
 	 * @param string $template
106 106
 	 */
107
-	public function set_template( $template ) {
107
+	public function set_template($template) {
108 108
 		$this->template = $template;
109 109
 	}
110 110
 
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
 	/**
123 123
 	 * @param int $priority
124 124
 	 */
125
-	public function set_priority( $priority ) {
126
-		$this->priority = intval( $priority );
125
+	public function set_priority($priority) {
126
+		$this->priority = intval($priority);
127 127
 	}
128 128
 
129 129
 
Please login to merge, or discard this patch.
core/libraries/template_parts/EE_Template_Part_PriorityQueue.class.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 //namespace EventEspresso\core\libraries\templates;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 /**
8 8
  * Class EE_Template_Part_PriorityQueue
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
 	 * @param int $priority
32 32
 	 * @return bool
33 33
 	 */
34
-	public function insert( $object, $priority = 100 ) {
35
-		if ( $object instanceof EE_Template_Part ) {
36
-			parent::insert( $object, $priority );
34
+	public function insert($object, $priority = 100) {
35
+		if ($object instanceof EE_Template_Part) {
36
+			parent::insert($object, $priority);
37 37
 			return true;
38 38
 		} else {
39 39
 			return false;
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
 	 * @param int $priority2
53 53
 	 * @return bool
54 54
 	 */
55
-	public function compare( $priority1, $priority2 ) {
56
-		if ( $priority1 === $priority2 ) {
55
+	public function compare($priority1, $priority2) {
56
+		if ($priority1 === $priority2) {
57 57
 			return 0;
58 58
 		}
59 59
 		return $priority1 > $priority2 ? -1 : 1;
Please login to merge, or discard this patch.
core/request_stack/EE_Request_Stack_Builder.core.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
 	 * @return EE_Request_Stack_Builder
45 45
 	 */
46 46
 	public function unshift( /*$class_name, $args*/ ) {
47
-		if ( func_num_args() === 0 ) {
48
-			throw new InvalidArgumentException( "Missing argument(s) when calling unshift" );
47
+		if (func_num_args() === 0) {
48
+			throw new InvalidArgumentException("Missing argument(s) when calling unshift");
49 49
 		}
50 50
 		$middleware = func_get_args();
51 51
 		//$this->middleware_stack->unshift( $middleware );
52
-		array_unshift( $this->_middleware_stack, $middleware );
52
+		array_unshift($this->_middleware_stack, $middleware);
53 53
 		return $this;
54 54
 	}
55 55
 
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
 	 * @return EE_Request_Stack_Builder
67 67
 	 */
68 68
 	public function push( /*$class_name, $args...*/ ) {
69
-		if ( func_num_args() === 0 ) {
70
-			throw new InvalidArgumentException( "Missing argument(s) when calling push" );
69
+		if (func_num_args() === 0) {
70
+			throw new InvalidArgumentException("Missing argument(s) when calling push");
71 71
 		}
72 72
 		$middleware = func_get_args();
73 73
 		//$this->middleware_stack->push( $middleware );
74
-		array_push( $this->_middleware_stack, $middleware );
74
+		array_push($this->_middleware_stack, $middleware);
75 75
 		return $this;
76 76
 	}
77 77
 
@@ -84,20 +84,20 @@  discard block
 block discarded – undo
84 84
 	 * @param EEI_Request_Decorator $application
85 85
 	 * @return EE_Request_Stack
86 86
 	 */
87
-	public function resolve( EEI_Request_Decorator $application ) {
88
-		$middlewares = array( $application );
89
-		foreach ( $this->_middleware_stack as $middleware_args ) {
90
-			$class_name = array_shift( $middleware_args );
91
-			if ( is_callable( $class_name ) ) {
92
-				$application = $class_name( $application );
87
+	public function resolve(EEI_Request_Decorator $application) {
88
+		$middlewares = array($application);
89
+		foreach ($this->_middleware_stack as $middleware_args) {
90
+			$class_name = array_shift($middleware_args);
91
+			if (is_callable($class_name)) {
92
+				$application = $class_name($application);
93 93
 			} else {
94
-				array_unshift( $middleware_args, $application );
95
-				$reflection = new ReflectionClass( $class_name );
96
-				$application = $reflection->newInstanceArgs( $middleware_args );
94
+				array_unshift($middleware_args, $application);
95
+				$reflection = new ReflectionClass($class_name);
96
+				$application = $reflection->newInstanceArgs($middleware_args);
97 97
 			}
98
-			array_unshift( $middlewares, $application );
98
+			array_unshift($middlewares, $application);
99 99
 		}
100
-		return new EE_Request_Stack( $application, $middlewares );
100
+		return new EE_Request_Stack($application, $middlewares);
101 101
 	}
102 102
 
103 103
 
Please login to merge, or discard this patch.
core/request_stack/EE_Response.core.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @return \EE_Response
41 41
 	 */
42 42
 	public function __construct() {
43
-		$this->terminate_request( false );
43
+		$this->terminate_request(false);
44 44
 	}
45 45
 
46 46
 
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
 	 * @param $value
54 54
 	 * @return    void
55 55
 	 */
56
-	public function set_notice( $key, $value ) {
57
-		$this->_notice[ $key ] = $value;
56
+	public function set_notice($key, $value) {
57
+		$this->_notice[$key] = $value;
58 58
 	}
59 59
 
60 60
 
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 	 * @param $key
67 67
 	 * @return    mixed
68 68
 	 */
69
-	public function get_notice( $key ) {
70
-		return isset( $this->_notice[ $key ] ) ? $this->_notice[ $key ] : NULL;
69
+	public function get_notice($key) {
70
+		return isset($this->_notice[$key]) ? $this->_notice[$key] : NULL;
71 71
 	}
72 72
 
73 73
 
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
 	 * @param $string
92 92
 	 * @param bool $append
93 93
 	 */
94
-	public function add_output( $string, $append = true ) {
95
-		$this->_output = $append ? $this->_output . $string : $string . $this->_output;
94
+	public function add_output($string, $append = true) {
95
+		$this->_output = $append ? $this->_output.$string : $string.$this->_output;
96 96
 	}
97 97
 
98 98
 
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 	/**
122 122
 	 * @param boolean $request_terminated
123 123
 	 */
124
-	public function terminate_request( $request_terminated = true ) {
125
-		$this->request_terminated = filter_var( $request_terminated, FILTER_VALIDATE_BOOLEAN );
124
+	public function terminate_request($request_terminated = true) {
125
+		$this->request_terminated = filter_var($request_terminated, FILTER_VALIDATE_BOOLEAN);
126 126
 	}
127 127
 
128 128
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
  * class EE_Response
4 6
  *
Please login to merge, or discard this patch.
modules/ticket_selector/templates/ticket_selector_chart_iframe.template.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,13 +19,13 @@
 block discarded – undo
19 19
 <html>
20 20
 <head>
21 21
 	<title><?php _e('Ticket Selector', 'event_espresso'); ?></title>
22
-	<?php foreach ( $css as $url ) : ?>
23
-		<link rel="stylesheet" type="text/css" href="<?php echo $url;?>">
22
+	<?php foreach ($css as $url) : ?>
23
+		<link rel="stylesheet" type="text/css" href="<?php echo $url; ?>">
24 24
 	<?php endforeach; ?>
25 25
 	<script type="text/javascript">
26 26
 		<?php echo  $eei18n; ?>
27 27
 	</script>
28
-	<?php foreach ( $js as $jsurl ) : ?>
28
+	<?php foreach ($js as $jsurl) : ?>
29 29
 		<script type="text/javascript" src="<?php echo $jsurl; ?>"></script>
30 30
 	<?php endforeach; ?>
31 31
 </head>
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-details.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -3,30 +3,30 @@
 block discarded – undo
3 3
 global $post;
4 4
 ?>
5 5
 <div class="event-content">
6
-<?php if ( apply_filters( 'FHEE__content_espresso_events_details_template__display_entry_meta', TRUE )): ?>
6
+<?php if (apply_filters('FHEE__content_espresso_events_details_template__display_entry_meta', TRUE)): ?>
7 7
 	<div class="entry-meta">
8
-		<span class="tags-links"><?php espresso_event_categories( $post->ID, TRUE, TRUE ); ?></span>
8
+		<span class="tags-links"><?php espresso_event_categories($post->ID, TRUE, TRUE); ?></span>
9 9
 	<?php
10
-		if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
10
+		if ( ! post_password_required() && (comments_open() || get_comments_number())) :
11 11
 	?>
12
-	<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'event_espresso' ), __( '1 Comment', 'event_espresso' ), __( '% Comments', 'event_espresso' ) ); ?></span>
12
+	<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'event_espresso'), __('1 Comment', 'event_espresso'), __('% Comments', 'event_espresso')); ?></span>
13 13
 	<?php
14 14
 		endif;
15
-		edit_post_link( __( 'Edit', 'event_espresso' ), '<span class="edit-link">', '</span>' );
15
+		edit_post_link(__('Edit', 'event_espresso'), '<span class="edit-link">', '</span>');
16 16
 	?>
17 17
 	</div>
18 18
 <?php endif;
19
-	$event_phone = espresso_event_phone( $post->ID, FALSE );
20
-	if ( $event_phone != '' ) : ?>
19
+	$event_phone = espresso_event_phone($post->ID, FALSE);
20
+	if ($event_phone != '') : ?>
21 21
 	<p>
22
-		<span class="small-text"><strong><?php _e( 'Event Phone:', 'event_espresso' ); ?> </strong></span> <?php echo $event_phone; ?>
22
+		<span class="small-text"><strong><?php _e('Event Phone:', 'event_espresso'); ?> </strong></span> <?php echo $event_phone; ?>
23 23
 	</p>
24
-<?php endif;  ?>
24
+<?php endif; ?>
25 25
 <?php
26
-	if ( apply_filters( 'FHEE__content_espresso_events_details_template__display_the_content', true ) ) {
27
-		do_action( 'AHEE_event_details_before_the_content', $post );
28
-		apply_filters( 'FHEE__content_espresso_events_details_template__the_content', espresso_event_content_or_excerpt() );
29
-		do_action( 'AHEE_event_details_after_the_content', $post );
26
+	if (apply_filters('FHEE__content_espresso_events_details_template__display_the_content', true)) {
27
+		do_action('AHEE_event_details_before_the_content', $post);
28
+		apply_filters('FHEE__content_espresso_events_details_template__the_content', espresso_event_content_or_excerpt());
29
+		do_action('AHEE_event_details_after_the_content', $post);
30 30
 	}
31 31
  ?>
32 32
 </div>
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-shortcode.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -21,22 +21,22 @@  discard block
 block discarded – undo
21 21
  * and/or use any of the template tags functions found in:
22 22
  * \wp-content\plugins\event-espresso-core\public\template_tags.php
23 23
  ************************** IMPORTANT **************************/
24
-add_filter( 'FHEE__content_espresso_events__template_loaded', '__return_false' );
24
+add_filter('FHEE__content_espresso_events__template_loaded', '__return_false');
25 25
 
26 26
 //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
27 27
 
28 28
 global $post;
29
-$event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
30
-$event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class );
29
+$event_class = has_excerpt($post->ID) ? ' has-excerpt' : '';
30
+$event_class = apply_filters('FHEE__content_espresso_events__event_class', $event_class);
31 31
 ?>
32
-<?php do_action( 'AHEE_event_details_before_post', $post ); ?>
33
-<article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>
32
+<?php do_action('AHEE_event_details_before_post', $post); ?>
33
+<article id="post-<?php the_ID(); ?>" <?php post_class($event_class); ?>>
34 34
 
35
-<?php if ( is_single() ) : ?>
35
+<?php if (is_single()) : ?>
36 36
 
37
-	<div id="espresso-event-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
38
-		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
39
-		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
37
+	<div id="espresso-event-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv">
38
+		<?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?>
39
+		<?php espresso_get_template_part('content', 'espresso_events-header'); ?>
40 40
 	</div>
41 41
 
42 42
 	<div class="espresso-event-wrapper-dv">
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
 		<?php //espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
47 47
 		<?php //espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
48 48
 		<footer class="event-meta">
49
-			<?php do_action( 'AHEE_event_details_footer_top', $post ); ?>
50
-			<?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?>
49
+			<?php do_action('AHEE_event_details_footer_top', $post); ?>
50
+			<?php do_action('AHEE_event_details_footer_bottom', $post); ?>
51 51
 		</footer>
52 52
 	</div>
53 53
 
54
-<?php elseif ( is_archive() ) : ?>
54
+<?php elseif (is_archive()) : ?>
55 55
 
56
-	<div id="espresso-event-list-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
57
-		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
58
-		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
56
+	<div id="espresso-event-list-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv">
57
+		<?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?>
58
+		<?php espresso_get_template_part('content', 'espresso_events-header'); ?>
59 59
 	</div>
60 60
 
61 61
 	<div class="espresso-event-list-wrapper-dv">
@@ -70,5 +70,5 @@  discard block
 block discarded – undo
70 70
 
71 71
 </article>
72 72
 <!-- #post -->
73
-<?php do_action( 'AHEE_event_details_after_post', $post );
73
+<?php do_action('AHEE_event_details_after_post', $post);
74 74
 
Please login to merge, or discard this patch.