Completed
Branch BUG-10355-improve-paypal-tls-f... (079e77)
by
unknown
26:08 queued 14:26
created
core/libraries/payment_methods/EE_PMT_Base.lib.php 3 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.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -277,17 +277,17 @@
 block discarded – undo
277 277
 		//if we know who the attendee is, and this is a billing form
278 278
 		//that uses attendee info, populate it
279 279
 		if (
280
-            apply_filters(
281
-                'FHEE__populate_billing_form_fields_from_attendee',
282
-                (
283
-                    $this->_billing_form instanceof EE_Billing_Attendee_Info_Form
284
-                    && $transaction instanceof EE_Transaction
285
-                    && $transaction->primary_registration() instanceof EE_Registration
286
-                    && $transaction->primary_registration()->attendee() instanceof EE_Attendee
287
-                ),
288
-                $this->_billing_form,
289
-                $transaction
290
-            )
280
+			apply_filters(
281
+				'FHEE__populate_billing_form_fields_from_attendee',
282
+				(
283
+					$this->_billing_form instanceof EE_Billing_Attendee_Info_Form
284
+					&& $transaction instanceof EE_Transaction
285
+					&& $transaction->primary_registration() instanceof EE_Registration
286
+					&& $transaction->primary_registration()->attendee() instanceof EE_Attendee
287
+				),
288
+				$this->_billing_form,
289
+				$transaction
290
+			)
291 291
 		){
292 292
 			$this->_billing_form->populate_from_attendee( $transaction->primary_registration()->attendee() );
293 293
 		}
Please login to merge, or discard this patch.
Spacing   +107 added lines, -107 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
@@ -288,8 +288,8 @@  discard block
 block discarded – undo
288 288
                 $this->_billing_form,
289 289
                 $transaction
290 290
             )
291
-		){
292
-			$this->_billing_form->populate_from_attendee( $transaction->primary_registration()->attendee() );
291
+		) {
292
+			$this->_billing_form->populate_from_attendee($transaction->primary_registration()->attendee());
293 293
 		}
294 294
 		return $this->_billing_form;
295 295
 	}
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 	 * @param \EE_Transaction $transaction
301 301
 	 * @return \EE_Billing_Info_Form
302 302
 	 */
303
-	abstract function generate_new_billing_form( EE_Transaction $transaction = NULL );
303
+	abstract function generate_new_billing_form(EE_Transaction $transaction = NULL);
304 304
 
305 305
 
306 306
 
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 	 * @param \EE_Billing_Info_Form $billing_form
312 312
 	 * @return \EE_Billing_Info_Form
313 313
 	 */
314
-	public function apply_billing_form_debug_settings( EE_Billing_Info_Form $billing_form ) {
314
+	public function apply_billing_form_debug_settings(EE_Billing_Info_Form $billing_form) {
315 315
 		return $billing_form;
316 316
 	}
317 317
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	 * if you have form
323 323
 	 * @param EE_Payment_Method $form
324 324
 	 */
325
-	public function set_billing_form($form){
325
+	public function set_billing_form($form) {
326 326
 		$this->_billing_form = $form;
327 327
 	}
328 328
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	 * Returns whether or not this payment method requires HTTPS to be used
333 333
 	 * @return boolean
334 334
 	 */
335
-	function requires_https(){
335
+	function requires_https() {
336 336
 		return $this->_requires_https;
337 337
 	}
338 338
 
@@ -350,9 +350,9 @@  discard block
 block discarded – undo
350 350
 	 * @return EE_Payment
351 351
 	 * @throws EE_Error
352 352
 	 */
353
-	function process_payment( EE_Transaction $transaction, $amount = null, $billing_info = null, $return_url = null,$fail_url = '', $method = 'CART', $by_admin = false ){
353
+	function process_payment(EE_Transaction $transaction, $amount = null, $billing_info = null, $return_url = null, $fail_url = '', $method = 'CART', $by_admin = false) {
354 354
 		// @todo: add surcharge for the payment method, if any
355
-		if ( $this->_gateway ) {
355
+		if ($this->_gateway) {
356 356
 			//there is a gateway, so we're going to make a payment object
357 357
 			//but wait! do they already have a payment in progress that we thought was failed?
358 358
 			$duplicate_properties = array(
@@ -363,10 +363,10 @@  discard block
 block discarded – undo
363 363
 				'PAY_amount' 					=> $amount !== null ? $amount : $transaction->remaining(),
364 364
 				'PAY_gateway_response' 	=> null,
365 365
 			);
366
-			$payment = EEM_Payment::instance()->get_one( array( $duplicate_properties ));
366
+			$payment = EEM_Payment::instance()->get_one(array($duplicate_properties));
367 367
 			//if we didn't already have a payment in progress for the same thing,
368 368
 			//then we actually want to make a new payment
369
-			if ( ! $payment instanceof EE_Payment ){
369
+			if ( ! $payment instanceof EE_Payment) {
370 370
 				$payment = EE_Payment::new_instance(
371 371
 					array_merge(
372 372
 						$duplicate_properties,
@@ -382,10 +382,10 @@  discard block
 block discarded – undo
382 382
 			}
383 383
 			//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
384 384
 			$payment->save();
385
-			$billing_values = $this->_get_billing_values_from_form( $billing_info );
385
+			$billing_values = $this->_get_billing_values_from_form($billing_info);
386 386
 
387 387
 			//  Offsite Gateway
388
-			if( $this->_gateway instanceof EE_Offsite_Gateway ){
388
+			if ($this->_gateway instanceof EE_Offsite_Gateway) {
389 389
 
390 390
 				$payment = $this->_gateway->set_redirection_info(
391 391
 					$payment,
@@ -401,17 +401,17 @@  discard block
 block discarded – undo
401 401
 				);
402 402
 				$payment->save();
403 403
 			//  Onsite Gateway
404
-			} elseif ( $this->_gateway instanceof EE_Onsite_Gateway ) {
404
+			} elseif ($this->_gateway instanceof EE_Onsite_Gateway) {
405 405
 
406
-				$payment = $this->_gateway->do_direct_payment($payment,$billing_values);
406
+				$payment = $this->_gateway->do_direct_payment($payment, $billing_values);
407 407
 				$payment->save();
408 408
 
409 409
 			} else {
410 410
 				throw new EE_Error(
411 411
 					sprintf(
412
-						__('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' ),
412
+						__('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'),
413 413
 						get_class($this),
414
-						gettype( $this->_gateway )
414
+						gettype($this->_gateway)
415 415
 					)
416 416
 				);
417 417
 			}
@@ -433,8 +433,8 @@  discard block
 block discarded – undo
433 433
 		}
434 434
 
435 435
 		// if there is billing info, clean it and save it now
436
-		if( $billing_info instanceof EE_Billing_Attendee_Info_Form ){
437
-			$this->_save_billing_info_to_attendee( $billing_info, $transaction );
436
+		if ($billing_info instanceof EE_Billing_Attendee_Info_Form) {
437
+			$this->_save_billing_info_to_attendee($billing_info, $transaction);
438 438
 		}
439 439
 
440 440
 		return $payment;
@@ -447,10 +447,10 @@  discard block
 block discarded – undo
447 447
 	 * @param EE_Billing_Info_Form $billing_form
448 448
 	 * @return array
449 449
 	 */
450
-	protected function _get_billing_values_from_form( $billing_form ){
451
-		if($billing_form instanceof EE_Form_Section_Proper ){
452
-			return $billing_form->input_pretty_values( true );
453
-		}else{
450
+	protected function _get_billing_values_from_form($billing_form) {
451
+		if ($billing_form instanceof EE_Form_Section_Proper) {
452
+			return $billing_form->input_pretty_values(true);
453
+		} else {
454 454
 			return NULL;
455 455
 		}
456 456
 	}
@@ -464,13 +464,13 @@  discard block
 block discarded – undo
464 464
 	 * @return EE_Payment
465 465
 	 * @throws EE_Error
466 466
 	 */
467
-	public function handle_ipn($req_data,$transaction){
467
+	public function handle_ipn($req_data, $transaction) {
468 468
 		$transaction = EEM_Transaction::instance()->ensure_is_obj($transaction);
469
-		if( ! $this->_gateway instanceof EE_Offsite_Gateway){
470
-			throw new EE_Error(sprintf(__("Could not handle IPN because '%s' is not an offsite gateway", "event_espresso"), print_r( $this->_gateway, TRUE )));
469
+		if ( ! $this->_gateway instanceof EE_Offsite_Gateway) {
470
+			throw new EE_Error(sprintf(__("Could not handle IPN because '%s' is not an offsite gateway", "event_espresso"), print_r($this->_gateway, TRUE)));
471 471
 
472 472
 		}
473
-		$payment = $this->_gateway->handle_payment_update( $req_data, $transaction );
473
+		$payment = $this->_gateway->handle_payment_update($req_data, $transaction);
474 474
 		return $payment;
475 475
 	}
476 476
 
@@ -483,22 +483,22 @@  discard block
 block discarded – undo
483 483
 	 * @param EE_Transaction $transaction
484 484
 	 * @return boolean success
485 485
 	 */
486
-	protected function _save_billing_info_to_attendee($billing_form, $transaction){
487
-		if( ! $transaction || ! $transaction instanceof EE_Transaction){
486
+	protected function _save_billing_info_to_attendee($billing_form, $transaction) {
487
+		if ( ! $transaction || ! $transaction instanceof EE_Transaction) {
488 488
 			EE_Error::add_error(__("Cannot save billing info because no transaction was specified", "event_espresso"), __FILE__, __FUNCTION__, __LINE__);
489 489
 			return false;
490 490
 		}
491 491
 		$primary_reg = $transaction->primary_registration();
492
-		if( ! $primary_reg ){
492
+		if ( ! $primary_reg) {
493 493
 			EE_Error::add_error(__("Cannot save billing info because the transaction has no primary registration", "event_espresso"), __FILE__, __FUNCTION__, __LINE__);
494 494
 			return false;
495 495
 		}
496 496
 		$attendee = $primary_reg->attendee();
497
-		if( ! $attendee ){
497
+		if ( ! $attendee) {
498 498
 			EE_Error::add_error(__("Cannot save billing info because the transaction's primary registration has no attendee!", "event_espresso"), __FILE__, __FUNCTION__, __LINE__);
499 499
 			return false;
500 500
 		}
501
-		return $attendee->save_and_clean_billing_info_for_payment_method($billing_form, $transaction->payment_method() );
501
+		return $attendee->save_and_clean_billing_info_for_payment_method($billing_form, $transaction->payment_method());
502 502
 
503 503
 	}
504 504
 
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
 	 * @param array $req_data
512 512
 	 * @return EE_Payment
513 513
 	 */
514
-	protected function find_payment_for_ipn( EE_Transaction $transaction, $req_data = array() ){
514
+	protected function find_payment_for_ipn(EE_Transaction $transaction, $req_data = array()) {
515 515
 		return $transaction->last_payment();
516 516
 	}
517 517
 
@@ -528,8 +528,8 @@  discard block
 block discarded – undo
528 528
 	 * and identifies the IPN as being for this payment method (not just fo ra payment method of this type)
529 529
 	 * @throws EE_Error
530 530
 	 */
531
-	public function handle_unclaimed_ipn( $req_data = array() ){
532
-		throw new EE_Error(sprintf(__("Payment Method '%s' cannot handle unclaimed IPNs", "event_espresso"), get_class($this) ));
531
+	public function handle_unclaimed_ipn($req_data = array()) {
532
+		throw new EE_Error(sprintf(__("Payment Method '%s' cannot handle unclaimed IPNs", "event_espresso"), get_class($this)));
533 533
 	}
534 534
 
535 535
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 	 * @param EE_Transaction $transaction
546 546
 	 * @return EE_Payment
547 547
 	 */
548
-	public function finalize_payment_for($transaction){
548
+	public function finalize_payment_for($transaction) {
549 549
 		return $transaction->last_payment();
550 550
 	}
551 551
 
@@ -555,10 +555,10 @@  discard block
 block discarded – undo
555 555
 	 * Whether or not this payment method's gateway supports sending refund requests
556 556
 	 * @return boolean
557 557
 	 */
558
-	public function supports_sending_refunds(){
559
-		if($this->_gateway && $this->_gateway instanceof EE_Gateway){
558
+	public function supports_sending_refunds() {
559
+		if ($this->_gateway && $this->_gateway instanceof EE_Gateway) {
560 560
 			return $this->_gateway->supports_sending_refunds();
561
-		}else{
561
+		} else {
562 562
 			return false;
563 563
 		}
564 564
 	}
@@ -572,14 +572,14 @@  discard block
 block discarded – undo
572 572
 	 * @throws EE_Error
573 573
 	 * @return EE_Payment
574 574
 	 */
575
-	public function process_refund( EE_Payment $payment, $refund_info = array()){
576
-		if ( $this->_gateway && $this->_gateway instanceof EE_Gateway ) {
577
-			return $this->_gateway->do_direct_refund( $payment, $refund_info );
575
+	public function process_refund(EE_Payment $payment, $refund_info = array()) {
576
+		if ($this->_gateway && $this->_gateway instanceof EE_Gateway) {
577
+			return $this->_gateway->do_direct_refund($payment, $refund_info);
578 578
 		} else {
579 579
 			throw new EE_Error(
580 580
 				sprintf(
581
-					__( 'Payment Method Type "%s" does not support sending refund requests', 'event_espresso' ),
582
-					get_class( $this )
581
+					__('Payment Method Type "%s" does not support sending refund requests', 'event_espresso'),
582
+					get_class($this)
583 583
 				)
584 584
 			);
585 585
 		}
@@ -593,15 +593,15 @@  discard block
 block discarded – undo
593 593
 	 * @return string
594 594
 	 * @throws EE_Error
595 595
 	 */
596
-	public function payment_occurs(){
597
-		if( ! $this->_gateway){
596
+	public function payment_occurs() {
597
+		if ( ! $this->_gateway) {
598 598
 			return EE_PMT_Base::offline;
599
-		}elseif($this->_gateway instanceof EE_Onsite_Gateway){
599
+		}elseif ($this->_gateway instanceof EE_Onsite_Gateway) {
600 600
 			return EE_PMT_Base::onsite;
601
-		}elseif($this->_gateway instanceof EE_Offsite_Gateway){
601
+		}elseif ($this->_gateway instanceof EE_Offsite_Gateway) {
602 602
 			return EE_PMT_Base::offsite;
603
-		}else{
604
-			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)));
603
+		} else {
604
+			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)));
605 605
 		}
606 606
 	}
607 607
 
@@ -614,8 +614,8 @@  discard block
 block discarded – undo
614 614
 	 * @param EE_Payment $payment
615 615
 	 * @return string
616 616
 	 */
617
-	public function payment_overview_content(EE_Payment $payment){
618
-		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);
617
+	public function payment_overview_content(EE_Payment $payment) {
618
+		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);
619 619
 	}
620 620
 
621 621
 
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
 	 *	@type array $template_args any arguments you want passed to the template file while rendering.
629 629
 	 *				Keys will be variable names and values with be their values.
630 630
 	 */
631
-	public function help_tabs_config(){
631
+	public function help_tabs_config() {
632 632
 		return array();
633 633
 	}
634 634
 
@@ -639,9 +639,9 @@  discard block
 block discarded – undo
639 639
 	 * the payment method's table's PMT_type column)
640 640
 	 * @return string
641 641
 	 */
642
-	public function system_name(){
642
+	public function system_name() {
643 643
 		$classname = get_class($this);
644
-		return str_replace("EE_PMT_",'',$classname);
644
+		return str_replace("EE_PMT_", '', $classname);
645 645
 	}
646 646
 
647 647
 
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
 	 * A pretty i18n version of the PMT name
651 651
 	 * @return string
652 652
 	 */
653
-	public function pretty_name(){
653
+	public function pretty_name() {
654 654
 		return $this->_pretty_name;
655 655
 	}
656 656
 
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 	 * Gets the default absolute URL to the payment method type's button
661 661
 	 * @return string
662 662
 	 */
663
-	public function default_button_url(){
663
+	public function default_button_url() {
664 664
 		return $this->_default_button_url;
665 665
 	}
666 666
 
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
 	 * Gets the gateway used by this payment method (if any)
671 671
 	 * @return EE_Gateway
672 672
 	 */
673
-	public function get_gateway(){
673
+	public function get_gateway() {
674 674
 		return $this->_gateway;
675 675
 	}
676 676
 
@@ -679,8 +679,8 @@  discard block
 block discarded – undo
679 679
 	/**
680 680
 	 * @return string html for the link to a help tab
681 681
 	 */
682
-	public function get_help_tab_link(){
683
-		return EEH_Template::get_help_tab_link( $this->get_help_tab_name() );
682
+	public function get_help_tab_link() {
683
+		return EEH_Template::get_help_tab_link($this->get_help_tab_name());
684 684
 	}
685 685
 
686 686
 
@@ -689,8 +689,8 @@  discard block
 block discarded – undo
689 689
 	 * Returns the name of the help tab for this PMT
690 690
 	 * @return string
691 691
 	 */
692
-	public function get_help_tab_name(){
693
-		return 'ee_' . strtolower( $this->system_name() ) . '_help_tab';
692
+	public function get_help_tab_name() {
693
+		return 'ee_'.strtolower($this->system_name()).'_help_tab';
694 694
 	}
695 695
 
696 696
 	/**
@@ -698,8 +698,8 @@  discard block
 block discarded – undo
698 698
 	 * this PMT by an admin
699 699
 	 * @return string
700 700
 	 */
701
-	public function cap_name(){
702
-		return 'ee_payment_method_' . strtolower( $this->system_name() );
701
+	public function cap_name() {
702
+		return 'ee_payment_method_'.strtolower($this->system_name());
703 703
 	}
704 704
 
705 705
 	/**
@@ -711,9 +711,9 @@  discard block
 block discarded – undo
711 711
 	 * @param EE_Payment $payment
712 712
 	 * @return void
713 713
 	 */
714
-	public function update_txn_based_on_payment( $payment ){
715
-		if( $this->_gateway instanceof EE_Gateway ){
716
-			$this->_gateway->update_txn_based_on_payment( $payment );
714
+	public function update_txn_based_on_payment($payment) {
715
+		if ($this->_gateway instanceof EE_Gateway) {
716
+			$this->_gateway->update_txn_based_on_payment($payment);
717 717
 		}
718 718
 	}
719 719
 
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
 	 * @return string
729 729
 	 */
730 730
 	public function introductory_html() {
731
-		return EEH_Template::locate_template( $this->file_folder() . 'templates' . DS . strtolower( $this->system_name() ) . '_intro.template.php', array( 'pmt_obj' => $this, 'pm_instance' => $this->_pm_instance ) );
731
+		return EEH_Template::locate_template($this->file_folder().'templates'.DS.strtolower($this->system_name()).'_intro.template.php', array('pmt_obj' => $this, 'pm_instance' => $this->_pm_instance));
732 732
 	}
733 733
 
734 734
 
Please login to merge, or discard this patch.
core/libraries/shortcodes/EE_Datetime_Shortcodes.lib.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
 	 * @param string $shortcode
62 62
 	 * @return string
63 63
 	 */
64
-	protected function _parser( $shortcode ) {
64
+	protected function _parser($shortcode) {
65 65
 
66
-		if ( ! $this->_data instanceof EE_Datetime ) {
66
+		if ( ! $this->_data instanceof EE_Datetime) {
67 67
 			return ''; //get out cause we can only parse with the datetime object.
68 68
 		}
69 69
 
70
-		switch ( $shortcode ) {
70
+		switch ($shortcode) {
71 71
 
72 72
 			case '[DATETIME_START]' :
73 73
 				return $this->_data->get_i18n_datetime('DTT_EVT_start');
@@ -81,27 +81,27 @@  discard block
 block discarded – undo
81 81
 				return $this->_data->get_timezone();
82 82
 				break;
83 83
 			case '[DATE_START]' :
84
-				return $this->_data->get_i18n_datetime( 'DTT_EVT_start', get_option( 'date_format' ) );
84
+				return $this->_data->get_i18n_datetime('DTT_EVT_start', get_option('date_format'));
85 85
 				break;
86 86
 			case '[DATE_END]' :
87
-				return $this->_data->get_i18n_datetime( 'DTT_EVT_end', get_option( 'date_format' ) );
87
+				return $this->_data->get_i18n_datetime('DTT_EVT_end', get_option('date_format'));
88 88
 				break;
89 89
 			case '[TIME_START]' :
90
-				return $this->_data->get_i18n_datetime( 'DTT_EVT_start', get_option( 'time_format' ) );
90
+				return $this->_data->get_i18n_datetime('DTT_EVT_start', get_option('time_format'));
91 91
 				break;
92 92
 			case '[TIME_END]' :
93
-				return $this->_data->get_i18n_datetime( 'DTT_EVT_end', get_option( 'time_format' ) );
93
+				return $this->_data->get_i18n_datetime('DTT_EVT_end', get_option('time_format'));
94 94
 				break;
95 95
 		}
96 96
 
97
-		if ( strpos( $shortcode, '[ICAL_LINK_*') !== FALSE  ) {
98
-			$attrs = $this->_get_shortcode_attrs( $shortcode );
97
+		if (strpos($shortcode, '[ICAL_LINK_*') !== FALSE) {
98
+			$attrs = $this->_get_shortcode_attrs($shortcode);
99 99
 			
100
-			$link_text = empty( $attrs['link_text'] ) ?  __( 'Add to iCal Calendar', 'event_espresso' ) : $attrs['link_text'];
100
+			$link_text = empty($attrs['link_text']) ? __('Add to iCal Calendar', 'event_espresso') : $attrs['link_text'];
101 101
 			
102
-			$URL = add_query_arg( array( 'ee' => 'download_ics_file', 'ics_id' => $this->_data->ID() ), site_url() );
102
+			$URL = add_query_arg(array('ee' => 'download_ics_file', 'ics_id' => $this->_data->ID()), site_url());
103 103
 		
104
-			return '<a class="ee-ical" href="' . $URL . '">' . $link_text . '</a>';
104
+			return '<a class="ee-ical" href="'.$URL.'">'.$link_text.'</a>';
105 105
 			
106 106
 		}
107 107
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
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.
reg_steps/payment_options/events_requiring_pre_approval.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 /** @type string $events_requiring_pre_approval_msg */
4 4
 ?>
5 5
 
6
-<h4><span class="orange-text"><?php _e('Important Notice: Events Requiring Pre-Approval', 'event_espresso');?></span></h4>
6
+<h4><span class="orange-text"><?php _e('Important Notice: Events Requiring Pre-Approval', 'event_espresso'); ?></span></h4>
7 7
 	<p id="events-requiring-pre-approval-pg" class="small-text drk-grey-text">
8 8
 		<?php echo $events_requiring_pre_approval_msg; ?>
9 9
 	</p>
Please login to merge, or discard this patch.
single_page_checkout/reg_steps/payment_options/sold_out_events.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
3 3
 /** @type string $sold_out_events_msg */
4 4
 ?>
5 5
 
6
-<h4 class="ee-status sold-out"><b><?php _e('Sold Out', 'event_espresso');?></b></h4>
6
+<h4 class="ee-status sold-out"><b><?php _e('Sold Out', 'event_espresso'); ?></b></h4>
7 7
 	<ul id="spco-sold-out-events-ul"><?php echo $sold_out_events; ?></ul>
8
-	<h6 class="pink-text"><?php _e("We're Sorry", 'event_espresso');?></h6>
8
+	<h6 class="pink-text"><?php _e("We're Sorry", 'event_espresso'); ?></h6>
9 9
 	<p id="events-requiring-pre-approval-pg" class="small-text drk-grey-text">
10 10
 		<?php echo $sold_out_events_msg; ?>
11 11
 	</p>
Please login to merge, or discard this patch.
reg_steps/payment_options/sold_out_tickets.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 /** @type string $sold_out_tickets_msg */
4 4
 ?>
5 5
 
6
-	<h4 ><b><?php _e('Sold Out', 'event_espresso');?></b></h4>
7
-	<h6 class="pink-text"><?php _e("We're Sorry", 'event_espresso');?></h6>
6
+	<h4 ><b><?php _e('Sold Out', 'event_espresso'); ?></b></h4>
7
+	<h6 class="pink-text"><?php _e("We're Sorry", 'event_espresso'); ?></h6>
8 8
 	<p id="tickets-requiring-pre-approval-pg" class="small-text drk-grey-text">
9 9
 		<?php echo $sold_out_tickets_msg; ?>
10 10
 	</p>
Please login to merge, or discard this patch.