Completed
Branch FET-5580-registration-cancella... (d3ffee)
by
unknown
1266:34 queued 1253:32
created
form_sections/payment_methods/EE_Billing_Attendee_Info_Form.form.php 1 patch
Spacing   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if ( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
3
-	exit( 'No direct script access allowed' );
2
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
3
+	exit('No direct script access allowed');
4 4
 }
5 5
 
6 6
 /**
@@ -14,31 +14,31 @@  discard block
 block discarded – undo
14 14
  * @author				Mike Nelson
15 15
  *
16 16
  */
17
-class EE_Billing_Attendee_Info_Form extends EE_Billing_Info_Form{
17
+class EE_Billing_Attendee_Info_Form extends EE_Billing_Info_Form {
18 18
 
19 19
 	/**
20 20
 	 *
21 21
 	 * @param EE_Payment_Method $payment_method
22 22
 	 * @param array $options_array @see EE_Form_Section_Proper::__construct()
23 23
 	 */
24
-	public function __construct( EE_Payment_Method $payment_method, $options_array= array()){
24
+	public function __construct(EE_Payment_Method $payment_method, $options_array = array()) {
25 25
 		$options_array['subsections'] = array_merge(
26 26
 			array(
27
-				'first_name' 	=> new EE_Text_Input( array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-fname', 'html_label_text' => __( 'First Name', 'event_espresso' ) ) ),
28
-				'last_name'		=> new EE_Text_Input( array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-lname', 'html_label_text' => __( 'Last Name', 'event_espresso' ) ) ),
29
-				'email'				=> new EE_Email_Input( array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-email', 'html_label_text' => __( 'Email', 'event_espresso' ) ) ),
30
-				'address'			=> new EE_Text_Input( array( 'html_label_text'=>  __( 'Address', 'event_espresso'), 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-address' )),
31
-				'address2'		=> new EE_Text_Input( array( 'html_label_text'=> __( 'Address 2', 'event_espresso'), 'html_class' => 'ee-billing-qstn ee-billing-qstn-address2' )),
32
-				'city'					=> new EE_Text_Input( array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-city', 'html_label_text' => __( 'City', 'event_espresso' ) ) ),
33
-				'state' 				=> apply_filters( 'FHEE__EE_Billing_Attendee_Info_Form__state_field', new EE_State_Select_Input( NULL, array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-state', 'html_label_text' => __( 'State', 'event_espresso' ) ) ) ),
34
-				'country' 			=> apply_filters( 'FHEE__EE_Billing_Attendee_Info_Form__country_field', new EE_Country_Select_Input( NULL, array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-country', 'html_label_text' => __( 'Country', 'event_espresso' ) ) ) ),
35
-				'zip'					=> new EE_Text_Input( array( 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-zip', 'html_label_text' => __( 'Zip', 'event_espresso' ) ) ),
36
-				'phone'			=> new EE_Text_Input( array( 'html_class' => 'ee-billing-qstn ee-billing-qstn-phone', 'html_label_text' => __( 'Phone', 'event_espresso' ) )),
27
+				'first_name' 	=> new EE_Text_Input(array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-fname', 'html_label_text' => __('First Name', 'event_espresso'))),
28
+				'last_name'		=> new EE_Text_Input(array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-lname', 'html_label_text' => __('Last Name', 'event_espresso'))),
29
+				'email'				=> new EE_Email_Input(array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-email', 'html_label_text' => __('Email', 'event_espresso'))),
30
+				'address'			=> new EE_Text_Input(array('html_label_text'=>  __('Address', 'event_espresso'), 'required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-address')),
31
+				'address2'		=> new EE_Text_Input(array('html_label_text'=> __('Address 2', 'event_espresso'), 'html_class' => 'ee-billing-qstn ee-billing-qstn-address2')),
32
+				'city'					=> new EE_Text_Input(array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-city', 'html_label_text' => __('City', 'event_espresso'))),
33
+				'state' 				=> apply_filters('FHEE__EE_Billing_Attendee_Info_Form__state_field', new EE_State_Select_Input(NULL, array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-state', 'html_label_text' => __('State', 'event_espresso')))),
34
+				'country' 			=> apply_filters('FHEE__EE_Billing_Attendee_Info_Form__country_field', new EE_Country_Select_Input(NULL, array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-country', 'html_label_text' => __('Country', 'event_espresso')))),
35
+				'zip'					=> new EE_Text_Input(array('required'=>TRUE, 'html_class' => 'ee-billing-qstn ee-billing-qstn-zip', 'html_label_text' => __('Zip', 'event_espresso'))),
36
+				'phone'			=> new EE_Text_Input(array('html_class' => 'ee-billing-qstn ee-billing-qstn-phone', 'html_label_text' => __('Phone', 'event_espresso'))),
37 37
 			),
38
-			isset( $options_array['subsections'] ) ? $options_array['subsections'] : array()
38
+			isset($options_array['subsections']) ? $options_array['subsections'] : array()
39 39
 		);
40 40
 
41
-		parent::__construct( $payment_method, $options_array );
41
+		parent::__construct($payment_method, $options_array);
42 42
 
43 43
 	}
44 44
 
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
 	 * Sets the defaults for the billing form according to the attendee's details
47 47
 	 * @param EE_Attendee $attendee
48 48
 	 */
49
-	public function populate_from_attendee( $attendee ){
49
+	public function populate_from_attendee($attendee) {
50 50
 		$attendee = EEM_Attendee::instance()->ensure_is_obj($attendee);
51 51
 		/** @var $attendee EE_Attendee */
52 52
 		$this->populate_defaults( 
53
-				apply_filters( 'FHEE__EE_Billing_Attendee_Info_Form__populate_from_attendee',
53
+				apply_filters('FHEE__EE_Billing_Attendee_Info_Form__populate_from_attendee',
54 54
 					array(
55 55
 						'first_name'=>$attendee->fname(),
56 56
 						'last_name'=>$attendee->lname(),
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 						'zip'=>$attendee->zip(),
64 64
 						'phone'=>$attendee->phone(),
65 65
 					),
66
-					$attendee )
66
+					$attendee)
67 67
 				
68 68
 				);
69 69
 	}
@@ -76,48 +76,48 @@  discard block
 block discarded – undo
76 76
 	 * @param \EE_Attendee $attendee - the attendee object to copy details to
77 77
 	 * @return \EE_Attendee
78 78
 	 */
79
-	public function copy_billing_form_data_to_attendee( EE_Attendee $attendee ){
79
+	public function copy_billing_form_data_to_attendee(EE_Attendee $attendee) {
80 80
 		// grab billing form data
81 81
 		$data = $this->valid_data();
82 82
 		// copy first_name
83
-		if ( ! empty( $data['first_name'] )) {
84
-			$attendee->set_fname( $data['first_name'] );
83
+		if ( ! empty($data['first_name'])) {
84
+			$attendee->set_fname($data['first_name']);
85 85
 		}
86 86
 		// copy last_name
87
-		if ( ! empty( $data['last_name'] )) {
88
-			$attendee->set_lname( $data['last_name'] );
87
+		if ( ! empty($data['last_name'])) {
88
+			$attendee->set_lname($data['last_name']);
89 89
 		}
90 90
 		// copy email
91
-		if ( ! empty( $data['email'] )) {
92
-			$attendee->set_email( $data['email'] );
91
+		if ( ! empty($data['email'])) {
92
+			$attendee->set_email($data['email']);
93 93
 		}
94 94
 		// copy address
95
-		if ( ! empty( $data['address'] )) {
96
-			$attendee->set_address( $data['address'] );
95
+		if ( ! empty($data['address'])) {
96
+			$attendee->set_address($data['address']);
97 97
 		}
98 98
 		// copy address2
99
-		if ( ! empty( $data['address2'] )) {
100
-			$attendee->set_address2( $data['address2'] );
99
+		if ( ! empty($data['address2'])) {
100
+			$attendee->set_address2($data['address2']);
101 101
 		}
102 102
 		// copy city
103
-		if ( ! empty( $data['city'] )) {
104
-			$attendee->set_city( $data['city'] );
103
+		if ( ! empty($data['city'])) {
104
+			$attendee->set_city($data['city']);
105 105
 		}
106 106
 		// copy state
107
-		if ( ! empty( $data['state'] )) {
108
-			$attendee->set_state( $data['state'] );
107
+		if ( ! empty($data['state'])) {
108
+			$attendee->set_state($data['state']);
109 109
 		}
110 110
 		// copy country
111
-		if ( ! empty( $data['country'] )) {
112
-			$attendee->set_country( $data['country'] );
111
+		if ( ! empty($data['country'])) {
112
+			$attendee->set_country($data['country']);
113 113
 		}
114 114
 		// copy zip
115
-		if ( ! empty( $data['zip'] )) {
116
-			$attendee->set_zip( $data['zip'] );
115
+		if ( ! empty($data['zip'])) {
116
+			$attendee->set_zip($data['zip']);
117 117
 		}
118 118
 		// copy phone
119
-		if ( ! empty( $data['phone'] )) {
120
-			$attendee->set_phone( $data['phone'] );
119
+		if ( ! empty($data['phone'])) {
120
+			$attendee->set_phone($data['phone']);
121 121
 		}
122 122
 		return $attendee;
123 123
 	}
@@ -128,20 +128,20 @@  discard block
 block discarded – undo
128 128
 	 * uses info from the billing form to create a new attendee
129 129
 	 * @return \EE_Attendee
130 130
 	 */
131
-	public function create_attendee_from_billing_form_data(){
131
+	public function create_attendee_from_billing_form_data() {
132 132
 		// grab billing form data
133 133
 		$data = $this->valid_data();
134
-		return EE_Attendee::new_instance( array(
135
-			'ATT_fname' 		=> ! empty( $data['first_name'] ) ? $data['first_name'] : '',
136
-			'ATT_lname' 		=> ! empty( $data['last_name'] ) ? $data['last_name'] : '',
137
-			'ATT_email' 		=> ! empty( $data['email'] ) ? $data['email'] : '',
138
-			'ATT_address' 		=> ! empty( $data['address'] ) ? $data['address'] : '',
139
-			'ATT_address2' 	=> ! empty( $data['address2'] ) ? $data['address2'] : '',
140
-			'ATT_city' 			=> ! empty( $data['city'] ) ? $data['city'] : '',
141
-			'STA_ID' 				=> ! empty( $data['state'] ) ? $data['state'] : '',
142
-			'CNT_ISO' 			=> ! empty( $data['country'] ) ? $data['country'] : '',
143
-			'ATT_zip' 				=> ! empty( $data['zip'] ) ? $data['zip'] : '',
144
-			'ATT_phone' 		=> ! empty( $data['phone'] ) ? $data['phone'] : '',
134
+		return EE_Attendee::new_instance(array(
135
+			'ATT_fname' 		=> ! empty($data['first_name']) ? $data['first_name'] : '',
136
+			'ATT_lname' 		=> ! empty($data['last_name']) ? $data['last_name'] : '',
137
+			'ATT_email' 		=> ! empty($data['email']) ? $data['email'] : '',
138
+			'ATT_address' 		=> ! empty($data['address']) ? $data['address'] : '',
139
+			'ATT_address2' 	=> ! empty($data['address2']) ? $data['address2'] : '',
140
+			'ATT_city' 			=> ! empty($data['city']) ? $data['city'] : '',
141
+			'STA_ID' 				=> ! empty($data['state']) ? $data['state'] : '',
142
+			'CNT_ISO' 			=> ! empty($data['country']) ? $data['country'] : '',
143
+			'ATT_zip' 				=> ! empty($data['zip']) ? $data['zip'] : '',
144
+			'ATT_phone' 		=> ! empty($data['phone']) ? $data['phone'] : '',
145 145
 		));
146 146
 	}
147 147
 }
Please login to merge, or discard this patch.
core/libraries/messages/defaults/default/email_main_wrapper.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
7 7
 	<!-- Facebook sharing information tags -->
8 8
 	<meta property="og:title" content="<?php echo $subject; ?>" />
9 9
 	<title><?php echo $subject; ?></title>
10
-	<?php do_action( 'AHEE__EE_Email_Messenger_main_wrapper_template_head', $message_type, $subject, $from, $main_body ); ?>
10
+	<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_head', $message_type, $subject, $from, $main_body); ?>
11 11
 </head>
12
-<?php do_action( 'AHEE__EE_Email_Messenger_main_wrapper_template_header', $message_type, $subject, $from, $main_body ); ?>
12
+<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_header', $message_type, $subject, $from, $main_body); ?>
13 13
 <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
14
-<?php do_action( 'AHEE__EE_Email_Messenger_main_wrapper_template_before_main_body', $message_type, $subject, $from, $main_body ); ?>
14
+<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_before_main_body', $message_type, $subject, $from, $main_body); ?>
15 15
 <?php echo $main_body; ?>
16
-<?php do_action( 'AHEE__EE_Email_Messenger_main_wrapper_template_after_main_body', $message_type, $subject, $from, $main_body ); ?>
16
+<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_after_main_body', $message_type, $subject, $from, $main_body); ?>
17 17
 </body>
18
-<?php do_action( 'AHEE__EE_Email_Messenger_main_wrapper_template_footer', $message_type, $subject, $from, $main_body ); ?>
18
+<?php do_action('AHEE__EE_Email_Messenger_main_wrapper_template_footer', $message_type, $subject, $from, $main_body); ?>
19 19
 </html>
20 20
\ No newline at end of file
Please login to merge, or discard this patch.
core/libraries/messages/defaults/default/html_main_wrapper.template.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,21 +27,21 @@
 block discarded – undo
27 27
 		<!-- Primary Style Sheet -->
28 28
 		<link rel="stylesheet" type="text/css" href="<?php echo $main_css; ?>" />
29 29
 		<!-- Make sure the buttons don't print -->
30
-		<?php if ( isset( $extra_css )) : ?>
30
+		<?php if (isset($extra_css)) : ?>
31 31
 		<!-- Additional Style Sheet -->
32 32
 		<link rel="stylesheet" type="text/css" href="<?php echo $extra_css; ?>" />
33 33
 		<?php endif; ?>
34 34
 		<style type="text/css">
35 35
 		@media print{ .noPrint{ display:none !important;height:0!important; width:0!important; margin:0!important; padding:0!important; }}
36 36
 		</style>
37
-		<?php do_action( 'AHEE__EE_Html_Messenger_main_wrapper_template_head', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
37
+		<?php do_action('AHEE__EE_Html_Messenger_main_wrapper_template_head', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
38 38
 	</head>
39
-	<?php do_action( 'AHEE__EE_Html_Messenger_main_wrapper_template_header', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
39
+	<?php do_action('AHEE__EE_Html_Messenger_main_wrapper_template_header', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
40 40
 	<body>
41
-		<?php do_action( 'AHEE__EE_Html_Messenger_main_wrapper_template_before_main_body', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
41
+		<?php do_action('AHEE__EE_Html_Messenger_main_wrapper_template_before_main_body', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
42 42
 		<?php echo $main_body; ?>
43
-		<?php do_action( 'AHEE__EE_Html_Messenger_main_wrapper_template_after_main_body', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
43
+		<?php do_action('AHEE__EE_Html_Messenger_main_wrapper_template_after_main_body', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
44 44
 	</body>
45
-	<?php do_action( 'AHEE__EE_Html_Messenger_main_wrapper_template_footer', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
45
+	<?php do_action('AHEE__EE_Html_Messenger_main_wrapper_template_footer', $message_type, $page_title, $base_css, $print_css, $main_css, $main_body); ?>
46 46
 	<?php wp_footer(); ?>
47 47
 </html>
48 48
\ No newline at end of file
Please login to merge, or discard this patch.
event_single_caff/templates/admin-event-single-settings.template.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <?php
2
-add_filter( 'FHEE__EEH_Form_Fields__label_html', '__return_empty_string' );
3
-EE_Registry::instance()->load_helper( 'Event_View' );
4
-EE_Registry::instance()->load_helper( 'Form_Fields' );
2
+add_filter('FHEE__EEH_Form_Fields__label_html', '__return_empty_string');
3
+EE_Registry::instance()->load_helper('Event_View');
4
+EE_Registry::instance()->load_helper('Form_Fields');
5 5
 $values = EEH_Form_Fields::prep_answer_options(
6 6
 	array(
7
-		array( 'id' => 1, 'text' => __( 'Yes', 'event_espresso' ) ),
8
-		array( 'id' => 0, 'text' => __( 'No', 'event_espresso' ) )
7
+		array('id' => 1, 'text' => __('Yes', 'event_espresso')),
8
+		array('id' => 0, 'text' => __('No', 'event_espresso'))
9 9
 	)
10 10
 );
11 11
 ?>
@@ -24,27 +24,27 @@  discard block
 block discarded – undo
24 24
 					</label>
25 25
 				</th>
26 26
 				<td>
27
-					<?php echo EEH_Form_Fields::select( 'display_status_banner_single', $display_status_banner_single, $values, 'display_status_banner_single', 'display_status_banner_single' ); ?>
28
-					<p class="description"><?php _e( 'Selecting "Yes" will inject an Event Status banner with the title whenever Events are displaying on the single event page.', 'event_espresso' ); ?></p>
27
+					<?php echo EEH_Form_Fields::select('display_status_banner_single', $display_status_banner_single, $values, 'display_status_banner_single', 'display_status_banner_single'); ?>
28
+					<p class="description"><?php _e('Selecting "Yes" will inject an Event Status banner with the title whenever Events are displaying on the single event page.', 'event_espresso'); ?></p>
29 29
 				</td>
30 30
 			</tr>
31 31
 
32 32
 			<tr>
33 33
 				<th>
34 34
 					<label for="display_venue">
35
-						<?php _e( 'Display Venue Details', 'event_espresso' ); ?><?php echo EEH_Template::get_help_tab_link('display_addresses_in_reg_form_info');?>
35
+						<?php _e('Display Venue Details', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link('display_addresses_in_reg_form_info'); ?>
36 36
 					</label>
37 37
 				</th>
38 38
 				<td>
39
-					<?php echo EEH_Form_Fields::select( 'display_venue', $display_venue, $values, 'display_venue', 'display_venue' ); ?>
40
-					<p class="description"><?php _e( 'Do not use this if you are using the venue shortcodes in your event description.', 'event_espresso' ); ?></p>
39
+					<?php echo EEH_Form_Fields::select('display_venue', $display_venue, $values, 'display_venue', 'display_venue'); ?>
40
+					<p class="description"><?php _e('Do not use this if you are using the venue shortcodes in your event description.', 'event_espresso'); ?></p>
41 41
 				</td>
42 42
 			</tr>
43 43
 
44 44
 			<tr>
45 45
 				<th>
46 46
 					<label for="EED_Events_Single_use_sortable_display_order">
47
-						<?php _e( 'Use Custom Display Order?', 'event_espresso' ); ?>
47
+						<?php _e('Use Custom Display Order?', 'event_espresso'); ?>
48 48
 					</label>
49 49
 				</th>
50 50
 				<td>
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 					<p class="description ">
61 61
 						<?php
62 62
 						echo sprintf(
63
-							__( '%1$sPlease Note:%2$s%3$sIf you are currently using filters to customize the display order for elements within the Event Single page display, then you do NOT activate this feature until those filters have been removed or disabled. If this feature is activated while still using such filters, duplicate event content such as the ticket selector, datetimes, or venue information could be displayed on the frontend of the site. Please verify that this is not the case after activating this feature.', 'event_espresso' ),
63
+							__('%1$sPlease Note:%2$s%3$sIf you are currently using filters to customize the display order for elements within the Event Single page display, then you do NOT activate this feature until those filters have been removed or disabled. If this feature is activated while still using such filters, duplicate event content such as the ticket selector, datetimes, or venue information could be displayed on the frontend of the site. Please verify that this is not the case after activating this feature.', 'event_espresso'),
64 64
 							'<span class="important-notice">',
65 65
 							'</span>',
66 66
 							'<br />'
@@ -72,11 +72,11 @@  discard block
 block discarded – undo
72 72
 
73 73
 			<tr>
74 74
 				<th>
75
-					<?php _e('Display Order', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link('display_addresses_in_reg_form_info');?>
75
+					<?php _e('Display Order', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link('display_addresses_in_reg_form_info'); ?>
76 76
 				</th>
77 77
 				<td>
78 78
 
79
-					<?php wp_nonce_field( 'espresso_update_event_single_order', 'espresso_update_event_single_order_nonce', false ); ?>
79
+					<?php wp_nonce_field('espresso_update_event_single_order', 'espresso_update_event_single_order_nonce', false); ?>
80 80
 					<?php echo $event_single_display_order; ?>
81 81
 
82 82
 					<p class="description"><?php _e('Drag and Drop the above to determine the display order of the Event Description, Date and Times, Ticket Selector, and Venue Information on the single event page.', 'event_espresso'); ?></p>
Please login to merge, or discard this patch.
events_archive_caff/templates/admin-event-list-settings.template.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2
-add_filter( 'FHEE__EEH_Form_Fields__label_html', '__return_empty_string' );
3
-EE_Registry::instance()->load_helper( 'Event_View' );
4
-EE_Registry::instance()->load_helper( 'Form_Fields' );
2
+add_filter('FHEE__EEH_Form_Fields__label_html', '__return_empty_string');
3
+EE_Registry::instance()->load_helper('Event_View');
4
+EE_Registry::instance()->load_helper('Form_Fields');
5 5
 
6
-$values = EEH_Form_Fields::prep_answer_options( array(
7
-	array( 'id' => 1, 'text' => __('Yes', 'event_espresso')),
8
-	array( 'id' => 0, 'text' => __('No', 'event_espresso'))
6
+$values = EEH_Form_Fields::prep_answer_options(array(
7
+	array('id' => 1, 'text' => __('Yes', 'event_espresso')),
8
+	array('id' => 0, 'text' => __('No', 'event_espresso'))
9 9
 ));
10 10
 
11
-$description = EEH_Form_Fields::prep_answer_options( array(
12
-	array( 'id' => 0, 'text' => __('none', 'event_espresso')),
13
-	array( 'id' => 1, 'text' => __('excerpt (short desc)', 'event_espresso')),
14
-	array( 'id' => 2, 'text' => __('full description', 'event_espresso'))
11
+$description = EEH_Form_Fields::prep_answer_options(array(
12
+	array('id' => 0, 'text' => __('none', 'event_espresso')),
13
+	array('id' => 1, 'text' => __('excerpt (short desc)', 'event_espresso')),
14
+	array('id' => 2, 'text' => __('full description', 'event_espresso'))
15 15
 ));
16 16
 
17 17
 ?>
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			<tr>
30 30
 				<th>
31 31
 					<label for="event_listings_url">
32
-						<?php _e('Event Listings URL', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('event_listings_url_info');?>
32
+						<?php _e('Event Listings URL', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('event_listings_url_info'); ?>
33 33
 					</label>
34 34
 				</th>
35 35
 				<td>
@@ -44,13 +44,13 @@  discard block
 block discarded – undo
44 44
 					</label>
45 45
 				</th>
46 46
 				<td>
47
-					<p><?php echo site_url() . '/ ' . EEH_Form_Fields::text( 'not_used', EE_Registry::instance()->CFG->core->event_cpt_slug, 'event_cpt_slug', 'event_cpt_slug', 'regular' ); ?></p>
47
+					<p><?php echo site_url().'/ '.EEH_Form_Fields::text('not_used', EE_Registry::instance()->CFG->core->event_cpt_slug, 'event_cpt_slug', 'event_cpt_slug', 'regular'); ?></p>
48 48
 					<p class="description"><?php _e('This allows you to configure what slug is used for the url of all event pages.', 'event_espresso'); ?></p>
49
-					<?php if ( has_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite' ) ) : ?>
49
+					<?php if (has_filter('FHEE__EE_Register_CPTs__register_CPT__rewrite')) : ?>
50 50
 						<p class="important-notice">
51 51
 							<?php
52 52
 							sprintf(
53
-								__( 'Usage of the %1$s FHEE__EE_Register_CPTs__register_CPT__rewrite %2$s filter has been detected.  Please be aware that while this filter is being used, this setting has no affect.', 'event_espresso' ),
53
+								__('Usage of the %1$s FHEE__EE_Register_CPTs__register_CPT__rewrite %2$s filter has been detected.  Please be aware that while this filter is being used, this setting has no affect.', 'event_espresso'),
54 54
 								'<code>',
55 55
 								'</code>'
56 56
 							);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 					</label>
68 68
 				</th>
69 69
 				<td>
70
-				<?php echo EEH_Form_Fields::select( 'display_status_banner', $display_status_banner, $values, 'EED_Events_Archive_display_status_banner', 'EED_Events_Archive_display_status_banner' );?>
70
+				<?php echo EEH_Form_Fields::select('display_status_banner', $display_status_banner, $values, 'EED_Events_Archive_display_status_banner', 'EED_Events_Archive_display_status_banner'); ?>
71 71
 					<p class="description"><?php _e('Selecting "Yes" will inject an Event Status banner with the title whenever Events are displaying on the events archive page.', 'event_espresso'); ?></p>
72 72
 				</td>
73 73
 			</tr>
@@ -75,55 +75,55 @@  discard block
 block discarded – undo
75 75
 			<tr>
76 76
 				<th>
77 77
 					<label for="EED_Events_Archive_display_description">
78
-						<?php _e('Display Description', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_description_info');?>
78
+						<?php _e('Display Description', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_description_info'); ?>
79 79
 					</label>
80 80
 				</th>
81 81
 				<td>
82
-					<?php echo EEH_Form_Fields::select( 'description', $display_description, $description, 'EED_Events_Archive_display_description', 'EED_Events_Archive_display_description' );?>
82
+					<?php echo EEH_Form_Fields::select('description', $display_description, $description, 'EED_Events_Archive_display_description', 'EED_Events_Archive_display_description'); ?>
83 83
 				</td>
84 84
 			</tr>
85 85
 
86 86
 			<tr>
87 87
 				<th>
88 88
 					<label for="EED_Events_Archive_display_ticket_selector">
89
-						<?php _e('Display Ticket Selector', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_ticket_selector_info');?>
89
+						<?php _e('Display Ticket Selector', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_ticket_selector_info'); ?>
90 90
 					</label>
91 91
 				</th>
92 92
 				<td>
93
-					<?php echo EEH_Form_Fields::select( 'ticket_selector', $display_ticket_selector, $values, 'EED_Events_Archive_display_ticket_selector', 'EED_Events_Archive_display_ticket_selector' );?>
93
+					<?php echo EEH_Form_Fields::select('ticket_selector', $display_ticket_selector, $values, 'EED_Events_Archive_display_ticket_selector', 'EED_Events_Archive_display_ticket_selector'); ?>
94 94
 				</td>
95 95
 			</tr>
96 96
 
97 97
 			<tr>
98 98
 				<th>
99 99
 					<label for="EED_Events_Archive_display_datetimes">
100
-						<?php _e('Display Datetimes', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_datetimes_info');?>
100
+						<?php _e('Display Datetimes', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_datetimes_info'); ?>
101 101
 					</label>
102 102
 				</th>
103 103
 				<td>
104
-					<?php echo EEH_Form_Fields::select( 'venue_details', $display_datetimes, $values, 'EED_Events_Archive_display_datetimes', 'EED_Events_Archive_display_datetimes' );?>
104
+					<?php echo EEH_Form_Fields::select('venue_details', $display_datetimes, $values, 'EED_Events_Archive_display_datetimes', 'EED_Events_Archive_display_datetimes'); ?>
105 105
 				</td>
106 106
 			</tr>
107 107
 
108 108
 			<tr>
109 109
 				<th>
110 110
 					<label for="EED_Events_Archive_display_venue">
111
-						<?php _e('Display Venue Details', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_venue_details_info');?>
111
+						<?php _e('Display Venue Details', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_venue_details_info'); ?>
112 112
 					</label>
113 113
 				</th>
114 114
 				<td>
115
-					<?php echo EEH_Form_Fields::select( 'display_venue', $display_venue, $values, 'EED_Events_Archive_display_venue', 'EED_Events_Archive_display_venue' );?>
115
+					<?php echo EEH_Form_Fields::select('display_venue', $display_venue, $values, 'EED_Events_Archive_display_venue', 'EED_Events_Archive_display_venue'); ?>
116 116
 				</td>
117 117
 			</tr>
118 118
 
119 119
 			<tr>
120 120
 				<th>
121 121
 					<label for="EED_Events_Archive_display_expired_events">
122
-						<?php _e('Display Expired Events', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_expired_events_info');?>
122
+						<?php _e('Display Expired Events', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_expired_events_info'); ?>
123 123
 					</label>
124 124
 				</th>
125 125
 				<td>
126
-					<?php echo EEH_Form_Fields::select( 'expired_events', $display_expired_events, $values, 'EED_Events_Archive_display_expired_events', 'EED_Events_Archive_display_expired_events' );?>
126
+					<?php echo EEH_Form_Fields::select('expired_events', $display_expired_events, $values, 'EED_Events_Archive_display_expired_events', 'EED_Events_Archive_display_expired_events'); ?>
127 127
 				</td>
128 128
 			</tr>
129 129
 
@@ -134,11 +134,11 @@  discard block
 block discarded – undo
134 134
 					</label>
135 135
 				</th>
136 136
 				<td>
137
-					<?php echo EEH_Form_Fields::select( 'use_sortable_display_order', $use_sortable_display_order, $values, 'EED_Events_Archive_use_sortable_display_order', 'EED_Events_Archive_use_sortable_display_order' );?>
137
+					<?php echo EEH_Form_Fields::select('use_sortable_display_order', $use_sortable_display_order, $values, 'EED_Events_Archive_use_sortable_display_order', 'EED_Events_Archive_use_sortable_display_order'); ?>
138 138
 					<p class="description ">
139 139
 						<?php
140 140
 						echo sprintf(
141
-							__( '%1$sPlease Note:%2$s%3$sIf you are currently using filters to customize the display order for elements within the Event Archive listings, then you do NOT activate this feature until those filters have been removed or disabled. If this feature is activated while still using such filters, duplicate event content such as the ticket selector, datetimes, or venue information could be displayed on the frontend of the site. Please verify that this is not the case after activating this feature.', 'event_espresso' ),
141
+							__('%1$sPlease Note:%2$s%3$sIf you are currently using filters to customize the display order for elements within the Event Archive listings, then you do NOT activate this feature until those filters have been removed or disabled. If this feature is activated while still using such filters, duplicate event content such as the ticket selector, datetimes, or venue information could be displayed on the frontend of the site. Please verify that this is not the case after activating this feature.', 'event_espresso'),
142 142
 							'<span class="important-notice">',
143 143
 							'</span>',
144 144
 							'<br />'
@@ -150,14 +150,14 @@  discard block
 block discarded – undo
150 150
 
151 151
 			<tr>
152 152
 				<th>
153
-					<?php _e( 'Display Order', 'event_espresso' ); ?><?php //echo EEH_Template::get_help_tab_link( 'event_archive_order_info' ); ?>
153
+					<?php _e('Display Order', 'event_espresso'); ?><?php //echo EEH_Template::get_help_tab_link( 'event_archive_order_info' ); ?>
154 154
 				</th>
155 155
 				<td>
156 156
 
157
-					<?php wp_nonce_field( 'espresso_update_event_archive_order', 'espresso_update_event_archive_order_nonce', false ); ?>
157
+					<?php wp_nonce_field('espresso_update_event_archive_order', 'espresso_update_event_archive_order_nonce', false); ?>
158 158
 					<?php echo $event_archive_display_order; ?>
159 159
 
160
-					<p class="description"><?php _e( 'Drag and Drop the above to determine the display order of the Event Description, Date and Times, Ticket Selector, and Venue Information on the event archive page.', 'event_espresso' ); ?></p>
160
+					<p class="description"><?php _e('Drag and Drop the above to determine the display order of the Event Description, Date and Times, Ticket Selector, and Venue Information on the event archive page.', 'event_espresso'); ?></p>
161 161
 
162 162
 				</td>
163 163
 			</tr>
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
 			<tr>
166 166
 				<th>
167 167
 					<label for="EED_Events_Archive_reset_event_list_settings">
168
-						<?php _e( 'Reset Event List Settings', 'event_espresso' ); ?>
168
+						<?php _e('Reset Event List Settings', 'event_espresso'); ?>
169 169
 					</label>
170 170
 				</th>
171 171
 				<td>
172
-					<?php echo EEH_Form_Fields::select( 'reset_event_list_settings', 0, $values, 'EED_Events_Archive_reset_event_list_settings', 'EED_Events_Archive_reset_event_list_settings' ); ?>
172
+					<?php echo EEH_Form_Fields::select('reset_event_list_settings', 0, $values, 'EED_Events_Archive_reset_event_list_settings', 'EED_Events_Archive_reset_event_list_settings'); ?>
173 173
 				</td>
174 174
 			</tr>
175 175
 
Please login to merge, or discard this patch.
payment_methods/Aim/help_tabs/payment_methods_overview_aim.help_tab.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 <?php _e('Adjust the settings for the Authorize.net AIM payment gateway.', 'event_espresso'); ?>
4 4
 </p>
5 5
 <p>
6
-<?php printf( __( 'See %1$shere%2$s for list of currencies supported by Authorize.net AIM.', 'event_espresso' ), "<a href='http://www.authorize.net/international/'  target='_blank'>","</a>" ); ?>
6
+<?php printf(__('See %1$shere%2$s for list of currencies supported by Authorize.net AIM.', 'event_espresso'), "<a href='http://www.authorize.net/international/'  target='_blank'>", "</a>"); ?>
7 7
 </p>
8 8
 <h3><?php _e('Authorize.net AIM Settings', 'event_espresso'); ?></h3>
9 9
 <ul>
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
 <?php _e('By logging into Authorize.net, you can change which payment fields are required by Authorize.net when processing payments. These settings affect both the Advanced Integration Method (AIM, this) and the Simple Integration Method (SIM, different). The payment method settings "Excluded Payment Form Fields" and "Required Payment Form Fields" allow you to change the billing form in Event Espresso to reflect your payment form settings in Authorize.net.', 'event_espresso'); ?>
29 29
 <br>
30 30
 <?php printf( 
31
-		__( 'To change your payment form settings in Authorize.net, %1$slog in to authorize.net%2$s, go to %3$sAccount then Payment Form%2$s, then %4$sForm Fields%2$s. It will look similar to %5$sthis%2$s. If you make a field required in Authorize.net, you should also make it required in Event Espresso. If it isn\'t required in Authorize.net, and you want to simplify the billing form in Event Espresso, you can exclude it from the Event Espresso Form too.'),
31
+		__('To change your payment form settings in Authorize.net, %1$slog in to authorize.net%2$s, go to %3$sAccount then Payment Form%2$s, then %4$sForm Fields%2$s. It will look similar to %5$sthis%2$s. If you make a field required in Authorize.net, you should also make it required in Event Espresso. If it isn\'t required in Authorize.net, and you want to simplify the billing form in Event Espresso, you can exclude it from the Event Espresso Form too.'),
32 32
 		'<a href="http://authorize.net" target="_blank">',
33 33
 		'</a>',
34 34
 		'<a href="https://monosnap.com/file/nebVteOkEXcdDIos88SojStWOifP23" target="_blank">',
35 35
 		'<a href="https://monosnap.com/file/WyxGJtev87TcDmdGBEZ2oi1xaBIQAm" target="_blank">',
36
-		'<a href="https://monosnap.com/image/DbCJNfEesWXeSNUs1wLIpGYODFw52m" target="_blank">');?>
36
+		'<a href="https://monosnap.com/image/DbCJNfEesWXeSNUs1wLIpGYODFw52m" target="_blank">'); ?>
37 37
 </li>
38 38
 <li>
39 39
 <strong><?php _e('Button Image URL', 'event_espresso'); ?></strong><br />
Please login to merge, or discard this patch.
core/EE_Bootstrap.core.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 
43 43
 	public function __construct() {
44 44
 		// construct request stack and run middleware apps as soon as all WP plugins are loaded
45
-		add_action( 'plugins_loaded', array( $this, 'run_request_stack' ), 0 );
45
+		add_action('plugins_loaded', array($this, 'run_request_stack'), 0);
46 46
 		// set framework for the rest of EE to hook into when loading
47
-		add_action( 'plugins_loaded', array( 'EE_Bootstrap', 'load_espresso_addons' ), 1 );
48
-		add_action( 'plugins_loaded', array( 'EE_Bootstrap', 'detect_activations_or_upgrades' ), 3 );
49
-		add_action( 'plugins_loaded', array( 'EE_Bootstrap', 'load_core_configuration' ), 5 );
50
-		add_action( 'plugins_loaded', array( 'EE_Bootstrap', 'register_shortcodes_modules_and_widgets' ), 7 );
51
-		add_action( 'plugins_loaded', array( 'EE_Bootstrap', 'brew_espresso' ), 9 );
47
+		add_action('plugins_loaded', array('EE_Bootstrap', 'load_espresso_addons'), 1);
48
+		add_action('plugins_loaded', array('EE_Bootstrap', 'detect_activations_or_upgrades'), 3);
49
+		add_action('plugins_loaded', array('EE_Bootstrap', 'load_core_configuration'), 5);
50
+		add_action('plugins_loaded', array('EE_Bootstrap', 'register_shortcodes_modules_and_widgets'), 7);
51
+		add_action('plugins_loaded', array('EE_Bootstrap', 'brew_espresso'), 9);
52 52
 	}
53 53
 
54 54
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 			new EE_Load_Espresso_Core()
66 66
 		);
67 67
 		$this->_request_stack->handle_request(
68
-			new EE_Request( $_REQUEST ),
68
+			new EE_Request($_REQUEST),
69 69
 			new EE_Response()
70 70
 		);
71 71
 		$this->_request_stack->handle_response();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	 */
79 79
 	protected function load_autoloader() {
80 80
 		// load interfaces
81
-		espresso_load_required( 'EEH_Autoloader', EE_CORE . 'helpers' . DS . 'EEH_Autoloader.helper.php' );
81
+		espresso_load_required('EEH_Autoloader', EE_CORE.'helpers'.DS.'EEH_Autoloader.helper.php');
82 82
 		EEH_Autoloader::instance();
83 83
 	}
84 84
 
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	protected function set_autoloaders_for_required_files() {
91 91
 		// load interfaces
92
-		espresso_load_required( 'EEI_Interfaces', EE_CORE . 'interfaces' . DS . 'EEI_Interfaces.php' );
92
+		espresso_load_required('EEI_Interfaces', EE_CORE.'interfaces'.DS.'EEI_Interfaces.php');
93 93
 		// load helpers
94
-		EEH_Autoloader::register_autoloaders_for_each_file_in_folder( EE_HELPERS );
94
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_HELPERS);
95 95
 		// load request stack
96
-		EEH_Autoloader::register_autoloaders_for_each_file_in_folder( EE_CORE . 'request_stack' . DS );
96
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE.'request_stack'.DS);
97 97
 		// load middleware
98
-		EEH_Autoloader::register_autoloaders_for_each_file_in_folder( EE_CORE . 'middleware' . DS );
98
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE.'middleware'.DS);
99 99
 	}
100 100
 
101 101
 
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
 			)
119 119
 		);
120 120
 		// load middleware onto stack : FILO (First In Last Out)
121
-		foreach ( (array)$stack_apps as $stack_app ) {
121
+		foreach ((array) $stack_apps as $stack_app) {
122 122
 			//$request_stack_builder->push( $stack_app );
123
-			$request_stack_builder->unshift( $stack_app );
123
+			$request_stack_builder->unshift($stack_app);
124 124
 		}
125 125
 		return apply_filters(
126 126
 			'FHEE__EE_Bootstrap__build_request_stack__request_stack_builder',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 	 * no other logic should be performed at this point
138 138
 	 */
139 139
 	public static function load_espresso_addons() {
140
-		do_action( 'AHEE__EE_Bootstrap__load_espresso_addons' );
140
+		do_action('AHEE__EE_Bootstrap__load_espresso_addons');
141 141
 	}
142 142
 
143 143
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * we can determine if anything needs activating or upgrading
150 150
 	 */
151 151
 	public static function detect_activations_or_upgrades() {
152
-		do_action( 'AHEE__EE_Bootstrap__detect_activations_or_upgrades' );
152
+		do_action('AHEE__EE_Bootstrap__detect_activations_or_upgrades');
153 153
 	}
154 154
 
155 155
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * we can load and set all of the system configurations
162 162
 	 */
163 163
 	public static function load_core_configuration() {
164
-		do_action( 'AHEE__EE_Bootstrap__load_core_configuration' );
164
+		do_action('AHEE__EE_Bootstrap__load_core_configuration');
165 165
 	}
166 166
 
167 167
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
 	 * so that they are ready to be used throughout the system
174 174
 	 */
175 175
 	public static function register_shortcodes_modules_and_widgets() {
176
-		do_action( 'AHEE__EE_Bootstrap__register_shortcodes_modules_and_widgets' );
176
+		do_action('AHEE__EE_Bootstrap__register_shortcodes_modules_and_widgets');
177 177
 	}
178 178
 
179 179
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * so let the fun begin...
186 186
 	 */
187 187
 	public static function brew_espresso() {
188
-		do_action( 'AHEE__EE_Bootstrap__brew_espresso' );
188
+		do_action('AHEE__EE_Bootstrap__brew_espresso');
189 189
 	}
190 190
 
191 191
 
Please login to merge, or discard this patch.
core/EE_Load_Espresso_Core.core.php 2 patches
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 * @param 	EE_Response $response
51 51
 	 * @return 	EE_Response
52 52
 	 */
53
-	public function handle_request( EE_Request $request, EE_Response $response ) {
53
+	public function handle_request(EE_Request $request, EE_Response $response) {
54 54
 		$this->request = $request;
55 55
 		$this->response = $response;
56 56
 		// central repository for classes
@@ -58,14 +58,14 @@  discard block
 block discarded – undo
58 58
 		// workarounds for PHP < 5.3
59 59
 		$this->_load_class_tools();
60 60
 		// PSR4 Autoloaders
61
-		EE_Registry::instance()->load_core( 'EE_Psr4AutoloaderInit' );
61
+		EE_Registry::instance()->load_core('EE_Psr4AutoloaderInit');
62 62
 		// deprecated functions
63
-		espresso_load_required( 'EE_Deprecated', EE_CORE . 'EE_Deprecated.core.php' );
63
+		espresso_load_required('EE_Deprecated', EE_CORE.'EE_Deprecated.core.php');
64 64
 		// load interfaces
65
-		espresso_load_required( 'EEI_Payment_Method_Interfaces', EE_LIBRARIES . 'payment_methods' . DS . 'EEI_Payment_Method_Interfaces.php' );
65
+		espresso_load_required('EEI_Payment_Method_Interfaces', EE_LIBRARIES.'payment_methods'.DS.'EEI_Payment_Method_Interfaces.php');
66 66
 		//// WP cron jobs
67
-		EE_Registry::instance()->load_core( 'Cron_Tasks' );
68
-		EE_Registry::instance()->load_core( 'EE_System' );
67
+		EE_Registry::instance()->load_core('Cron_Tasks');
68
+		EE_Registry::instance()->load_core('EE_System');
69 69
 
70 70
 		return $this->response;
71 71
 	}
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
 	 * 	@return void
80 80
 	 */
81 81
 	private function _load_registry() {
82
-		if ( is_readable( EE_CORE . 'EE_Registry.core.php' )) {
83
-			require_once( EE_CORE . 'EE_Registry.core.php' );
82
+		if (is_readable(EE_CORE.'EE_Registry.core.php')) {
83
+			require_once(EE_CORE.'EE_Registry.core.php');
84 84
 		} else {
85
-			$msg = __( 'The EE_Registry core class could not be loaded.', 'event_espresso' );
86
-			EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ );
87
-			wp_die( EE_Error::get_notices() );
85
+			$msg = __('The EE_Registry core class could not be loaded.', 'event_espresso');
86
+			EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
87
+			wp_die(EE_Error::get_notices());
88 88
 		}
89 89
 	}
90 90
 
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
 	 * 	@return void
97 97
 	 */
98 98
 	private function _load_class_tools() {
99
-		if ( is_readable( EE_HELPERS . 'EEH_Class_Tools.helper.php' )) {
100
-			require_once( EE_HELPERS . 'EEH_Class_Tools.helper.php' );
99
+		if (is_readable(EE_HELPERS.'EEH_Class_Tools.helper.php')) {
100
+			require_once(EE_HELPERS.'EEH_Class_Tools.helper.php');
101 101
 		} else {
102
-			$msg = __( 'The EEH_Class_Tools helper could not be loaded.', 'event_espresso' );
103
-			EE_Error::add_error( $msg, __FILE__, __FUNCTION__, __LINE__ );
102
+			$msg = __('The EEH_Class_Tools helper could not be loaded.', 'event_espresso');
103
+			EE_Error::add_error($msg, __FILE__, __FUNCTION__, __LINE__);
104 104
 		}
105 105
 	}
106 106
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * @param \EE_Request $request
116 116
 	 * @param \EE_Response $response
117 117
 	 */
118
-	public function handle_response( EE_Request $request, EE_Response $response ) {
118
+	public function handle_response(EE_Request $request, EE_Response $response) {
119 119
 		//EEH_Debug_Tools::printr( $request, '$request', __FILE__, __LINE__ );
120 120
 		//EEH_Debug_Tools::printr( $response, '$response', __FILE__, __LINE__ );
121 121
 		//die();
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
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
core/interfaces/EEI_Interfaces.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -229,15 +229,15 @@
 block discarded – undo
229 229
  */
230 230
 interface EEHI_Money{
231 231
 		/**
232
-	 * For comparing floats. Default operator is '=', but see the $operator below for all options.
233
-	 * This should be used to compare floats instead of normal '==' because floats
234
-	 * are inherently inprecise, and so you can sometimes have two floats that appear to be identical
235
-	 * but actually differ by 0.00000001.
236
-	 * @param float $float1
237
-	 * @param float $float2
238
-	 * $param string $operator  The operator. Valid options are =, <=, <, >=, >, <>, eq, lt, lte, gt, gte, ne
239
-	 * @return boolean whether the equation is true or false
240
-	 */
232
+		 * For comparing floats. Default operator is '=', but see the $operator below for all options.
233
+		 * This should be used to compare floats instead of normal '==' because floats
234
+		 * are inherently inprecise, and so you can sometimes have two floats that appear to be identical
235
+		 * but actually differ by 0.00000001.
236
+		 * @param float $float1
237
+		 * @param float $float2
238
+		 * $param string $operator  The operator. Valid options are =, <=, <, >=, >, <>, eq, lt, lte, gt, gte, ne
239
+		 * @return boolean whether the equation is true or false
240
+		 */
241 241
 	function compare_floats( $float1, $float2, $operator='=' );
242 242
 }
243 243
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
 /**
6 6
  * Interface EEI_Base
7 7
  */
8
-interface EEI_Base{
8
+interface EEI_Base {
9 9
 	/**
10 10
 	 * gets the unique ID of the model object. If it hasn't been saved yet
11 11
 	 * to the database, this should be 0 or NULL
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 * @param 	EE_Response $response
49 49
 	 * @return 	EE_Response
50 50
 	 */
51
-	public function handle_request( EE_Request $request, EE_Response $response );
51
+	public function handle_request(EE_Request $request, EE_Response $response);
52 52
 }
53 53
 
54 54
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * @param EE_Request $request
65 65
 	 * @param EE_Response $response
66 66
 	 */
67
-	public function handle_response( EE_Request $request, EE_Response $response );
67
+	public function handle_response(EE_Request $request, EE_Response $response);
68 68
 }
69 69
 
70 70
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 	 * @param string $country
223 223
 	 * @param string $CNT_ISO
224 224
 	 */
225
-	public function format( $address, $address2, $city, $state, $zip, $country, $CNT_ISO );
225
+	public function format($address, $address2, $city, $state, $zip, $country, $CNT_ISO);
226 226
 }
227 227
 
228 228
 
@@ -232,13 +232,13 @@  discard block
 block discarded – undo
232 232
 /**
233 233
  * Interface EEHI_Line_Item
234 234
  */
235
-interface EEHI_Line_Item{
235
+interface EEHI_Line_Item {
236 236
 	/**
237 237
 	 * Adds an item to the purchase in the right spot
238 238
 	 * @param EE_Line_Item $total_line_item
239 239
 	 * @param EE_Line_Item $line_item
240 240
 	 */
241
-	public function add_item( EE_line_Item $total_line_item, EE_Line_Item $line_item );
241
+	public function add_item(EE_line_Item $total_line_item, EE_Line_Item $line_item);
242 242
 	/**
243 243
 	 * Overwrites the previous tax by clearing out the old taxes, and creates a new
244 244
 	 * tax and updates the total line item accordingly
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 	 * @param string $description
249 249
 	 * @return EE_Line_Item the new tax created
250 250
 	 */
251
-	public function set_total_tax_to( EE_Line_Item $total_line_item, $amount, $name  = NULL, $description = NULL );
251
+	public function set_total_tax_to(EE_Line_Item $total_line_item, $amount, $name = NULL, $description = NULL);
252 252
 
253 253
 	/**
254 254
 	 * Adds a simple item ( unrelated to any other model object) to the total line item,
@@ -261,14 +261,14 @@  discard block
 block discarded – undo
261 261
 	 * @param boolean $taxable
262 262
 	 * @return boolean success
263 263
 	 */
264
-	public function add_unrelated_item( EE_Line_Item $total_line_item, $name, $unit_price, $description = '', $quantity = 1, $taxable = FALSE );
264
+	public function add_unrelated_item(EE_Line_Item $total_line_item, $name, $unit_price, $description = '', $quantity = 1, $taxable = FALSE);
265 265
 }
266 266
 
267 267
 
268 268
 /**
269 269
  * Money-related helper
270 270
  */
271
-interface EEHI_Money{
271
+interface EEHI_Money {
272 272
 		/**
273 273
 	 * For comparing floats. Default operator is '=', but see the $operator below for all options.
274 274
 	 * This should be used to compare floats instead of normal '==' because floats
@@ -279,13 +279,13 @@  discard block
 block discarded – undo
279 279
 	 * $param string $operator  The operator. Valid options are =, <=, <, >=, >, <>, eq, lt, lte, gt, gte, ne
280 280
 	 * @return boolean whether the equation is true or false
281 281
 	 */
282
-	function compare_floats( $float1, $float2, $operator='=' );
282
+	function compare_floats($float1, $float2, $operator = '=');
283 283
 }
284 284
 
285 285
 /**
286 286
  * Interface EEHI_Template
287 287
  */
288
-interface EEHI_Template{
288
+interface EEHI_Template {
289 289
 
290 290
 	/**
291 291
 	 * EEH_Template::format_currency
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 	 * @param string   $cur_code_span_class
299 299
 	 * @return string the html output for the formatted money value
300 300
 	 */
301
-	public static function format_currency( $amount = NULL, $return_raw = FALSE, $display_code = TRUE, $CNT_ISO = '', $cur_code_span_class = 'currency-code' );
301
+	public static function format_currency($amount = NULL, $return_raw = FALSE, $display_code = TRUE, $CNT_ISO = '', $cur_code_span_class = 'currency-code');
302 302
 }
303 303
 
304 304
 
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 * @param array $options
314 314
 	 * @return mixed
315 315
 	 */
316
-	public function display_line_item( EE_Line_Item $line_item, $options = array() );
316
+	public function display_line_item(EE_Line_Item $line_item, $options = array());
317 317
 
318 318
 }
319 319
 
Please login to merge, or discard this patch.