Completed
Branch old/BUG-7514-7935-7936-price-o... (518ae6)
by
unknown
02:21
created
admin_pages/registrations/EE_Attendee_Contact_List_Table.class.php 2 patches
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 class EE_Attendee_Contact_List_Table extends EE_Admin_List_Table {
5 5
 
6 6
 
7
-	public function __construct( $admin_page ) {
7
+	public function __construct($admin_page) {
8 8
 		parent::__construct($admin_page);
9 9
 	}
10 10
 
@@ -12,8 +12,8 @@  discard block
 block discarded – undo
12 12
 
13 13
 
14 14
 	protected function _setup_data() {
15
-		$this->_data = $this->_view != 'trash' ? $this->_admin_page->get_attendees( $this->_per_page ) : $this->_admin_page->get_attendees( $this->_per_page, FALSE, TRUE );
16
-		$this->_all_data_count = $this->_view != 'trash' ? $this->_admin_page->get_attendees( $this->_per_page, TRUE ) : $this->_admin_page->get_attendees( $this->_per_page,TRUE, TRUE );
15
+		$this->_data = $this->_view != 'trash' ? $this->_admin_page->get_attendees($this->_per_page) : $this->_admin_page->get_attendees($this->_per_page, FALSE, TRUE);
16
+		$this->_all_data_count = $this->_view != 'trash' ? $this->_admin_page->get_attendees($this->_per_page, TRUE) : $this->_admin_page->get_attendees($this->_per_page, TRUE, TRUE);
17 17
 	}
18 18
 
19 19
 
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
 			);
42 42
 
43 43
 		$this->_sortable_columns = array(
44
-			'ATT_ID' => array( 'ATT_ID' => FALSE ),
45
-			'ATT_lname' => array( 'ATT_lname' => TRUE ), //true means its already sorted
46
-			'ATT_fname' => array( 'ATT_fname' => FALSE ),
47
-			'ATT_email' => array( 'ATT_email' => FALSE ),
48
-			'ATT_city' => array( 'ATT_city' => FALSE ),
49
-			'STA_ID' => array( 'STA_ID' => FALSE ),
50
-			'CNT_ISO' => array( 'CNT_ISO' => FALSE )
44
+			'ATT_ID' => array('ATT_ID' => FALSE),
45
+			'ATT_lname' => array('ATT_lname' => TRUE), //true means its already sorted
46
+			'ATT_fname' => array('ATT_fname' => FALSE),
47
+			'ATT_email' => array('ATT_email' => FALSE),
48
+			'ATT_city' => array('ATT_city' => FALSE),
49
+			'STA_ID' => array('STA_ID' => FALSE),
50
+			'CNT_ISO' => array('CNT_ISO' => FALSE)
51 51
 		);
52 52
 
53 53
 		$this->_hidden_columns = array();
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
 
65 65
 
66 66
 	protected function _add_view_counts() {
67
-		$this->_views['in_use']['count'] = $this->_admin_page->get_attendees( $this->_per_page, TRUE );
68
-		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_contacts', 'espresso_registrations_delete_registration' ) ) {
69
-			$this->_views['trash']['count'] = $this->_admin_page->get_attendees( $this->_per_page,TRUE, TRUE );
67
+		$this->_views['in_use']['count'] = $this->_admin_page->get_attendees($this->_per_page, TRUE);
68
+		if (EE_Registry::instance()->CAP->current_user_can('ee_delete_contacts', 'espresso_registrations_delete_registration')) {
69
+			$this->_views['trash']['count'] = $this->_admin_page->get_attendees($this->_per_page, TRUE, TRUE);
70 70
 		}
71 71
 	}
72 72
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
 
91 91
 	function column_cb($item) {
92
-		return sprintf( '<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', /* $1%s */ $item->ID() );
92
+		return sprintf('<input type="checkbox" name="checkbox[%1$s]" value="%1$s" />', /* $1%s */ $item->ID());
93 93
 	}
94 94
 
95 95
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 
98 98
 
99 99
 	function column_ATT_ID($item) {
100
-		return '<div>' . $item->ID() . '</div>';
100
+		return '<div>'.$item->ID().'</div>';
101 101
 	}
102 102
 
103 103
 
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 	function column_ATT_lname($item) {
108 108
 
109 109
 		// edit attendee link
110
-		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'edit_attendee', 'post'=>$item->ID() ), REG_ADMIN_URL );
111
-		$name_link = EE_Registry::instance()->CAP->current_user_can( 'ee_edit_contacts', 'espresso_registrations_edit_attendee' ) ?  '<a href="'.$edit_lnk_url.'" title="' . esc_attr__( 'Edit Contact', 'event_espresso' ) . '">' . $item->lname() . '</a>' : $item->lname();
110
+		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'edit_attendee', 'post'=>$item->ID()), REG_ADMIN_URL);
111
+		$name_link = EE_Registry::instance()->CAP->current_user_can('ee_edit_contacts', 'espresso_registrations_edit_attendee') ? '<a href="'.$edit_lnk_url.'" title="'.esc_attr__('Edit Contact', 'event_espresso').'">'.$item->lname().'</a>' : $item->lname();
112 112
 		return $name_link;
113 113
 
114 114
 	}
@@ -121,30 +121,30 @@  discard block
 block discarded – undo
121 121
 		//Build row actions
122 122
 		$actions = array();
123 123
 		// edit attendee link
124
-		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_edit_contacts', 'espresso_registrations_edit_attendee' ) ) {
125
-			$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'edit_attendee', 'post'=>$item->ID() ), REG_ADMIN_URL );
126
-			$actions['edit'] = '<a href="'.$edit_lnk_url.'" title="' . esc_attr__( 'Edit Contact', 'event_espresso' ) . '">' . __( 'Edit', 'event_espresso' ) . '</a>';
124
+		if (EE_Registry::instance()->CAP->current_user_can('ee_edit_contacts', 'espresso_registrations_edit_attendee')) {
125
+			$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'edit_attendee', 'post'=>$item->ID()), REG_ADMIN_URL);
126
+			$actions['edit'] = '<a href="'.$edit_lnk_url.'" title="'.esc_attr__('Edit Contact', 'event_espresso').'">'.__('Edit', 'event_espresso').'</a>';
127 127
 		}
128 128
 
129
-		if ( $this->_view == 'in_use' ) {
129
+		if ($this->_view == 'in_use') {
130 130
 			// trash attendee link
131
-			if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_contacts', 'espresso_registrations_trash_attendees' ) ) {
132
-				$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'trash_attendees', 'ATT_ID'=>$item->ID() ), REG_ADMIN_URL );
133
-				$actions['trash'] = '<a href="'.$trash_lnk_url.'" title="' . esc_attr__( 'Move Contact to Trash', 'event_espresso' ) . '">' . __( 'Trash', 'event_espresso' ) . '</a>';
131
+			if (EE_Registry::instance()->CAP->current_user_can('ee_delete_contacts', 'espresso_registrations_trash_attendees')) {
132
+				$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'trash_attendees', 'ATT_ID'=>$item->ID()), REG_ADMIN_URL);
133
+				$actions['trash'] = '<a href="'.$trash_lnk_url.'" title="'.esc_attr__('Move Contact to Trash', 'event_espresso').'">'.__('Trash', 'event_espresso').'</a>';
134 134
 			}
135 135
 		} else {
136
-			if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_contacts', 'espresso_registrations_restore_attendees' ) ) {
136
+			if (EE_Registry::instance()->CAP->current_user_can('ee_delete_contacts', 'espresso_registrations_restore_attendees')) {
137 137
 				// restore attendee link
138
-				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'restore_attendees', 'ATT_ID'=>$item->ID() ), REG_ADMIN_URL );
139
-				$actions['restore'] = '<a href="'.$restore_lnk_url.'" title="' . esc_attr__( 'Restore Contact', 'event_espresso' ) . '">' . __( 'Restore', 'event_espresso' ) . '</a>';
138
+				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'restore_attendees', 'ATT_ID'=>$item->ID()), REG_ADMIN_URL);
139
+				$actions['restore'] = '<a href="'.$restore_lnk_url.'" title="'.esc_attr__('Restore Contact', 'event_espresso').'">'.__('Restore', 'event_espresso').'</a>';
140 140
 			}
141 141
 		}
142 142
 
143
-		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'edit_attendee', 'post'=>$item->ID() ), REG_ADMIN_URL );
144
-		$name_link = EE_Registry::instance()->CAP->current_user_can( 'ee_edit_contacts', 'espresso_registrations_edit_attendee' ) ?  '<a href="'.$edit_lnk_url.'" title="' . esc_attr__( 'Edit Contact', 'event_espresso' ) . '">' . $item->fname() . '</a>' : $item->fname();
143
+		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'edit_attendee', 'post'=>$item->ID()), REG_ADMIN_URL);
144
+		$name_link = EE_Registry::instance()->CAP->current_user_can('ee_edit_contacts', 'espresso_registrations_edit_attendee') ? '<a href="'.$edit_lnk_url.'" title="'.esc_attr__('Edit Contact', 'event_espresso').'">'.$item->fname().'</a>' : $item->fname();
145 145
 
146 146
 		//Return the name contents
147
-		return sprintf('%1$s %2$s', $name_link, $this->row_actions($actions) );
147
+		return sprintf('%1$s %2$s', $name_link, $this->row_actions($actions));
148 148
 	}
149 149
 
150 150
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
 
154 154
 	function column_ATT_email($item) {
155
-		return '<a href="mailto:' . $item->email() . '">' . $item->email() . '</a>';
155
+		return '<a href="mailto:'.$item->email().'">'.$item->email().'</a>';
156 156
 	}
157 157
 
158 158
 
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
 
173 173
 	function column_STA_ID($item) {
174 174
 		$states = EEM_State::instance()->get_all_states();
175
-		$state = isset( $states[ $item->state_ID() ] ) ? $states[ $item->state_ID() ]->get( 'STA_name' ) : $item->state_ID();
176
-		return ! is_numeric( $state ) ? $state : '';
175
+		$state = isset($states[$item->state_ID()]) ? $states[$item->state_ID()]->get('STA_name') : $item->state_ID();
176
+		return ! is_numeric($state) ? $state : '';
177 177
 	}
178 178
 
179 179
 
@@ -181,8 +181,8 @@  discard block
 block discarded – undo
181 181
 	function column_CNT_ISO($item) {
182 182
 		$countries = EEM_Country::instance()->get_all_countries();
183 183
 		//EEH_Debug_Tools::printr( $countries, '$countries  <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' );
184
-		$country = isset( $countries[ $item->country_ID() ] ) ? $countries[ $item->country_ID() ]->get( 'CNT_name' ) : $item->country_ID();
185
-		return ! is_numeric( $country ) ? $country : '';
184
+		$country = isset($countries[$item->country_ID()]) ? $countries[$item->country_ID()]->get('CNT_name') : $item->country_ID();
185
+		return ! is_numeric($country) ? $country : '';
186 186
 	}
187 187
 
188 188
 
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
 
4 6
 class EE_Attendee_Contact_List_Table extends EE_Admin_List_Table {
Please login to merge, or discard this patch.
admin_pages/registrations/EE_Registrations_List_Table.class.php 3 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 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
  *
@@ -574,7 +576,7 @@  discard block
 block discarded – undo
574 576
 		if($item->transaction()){
575 577
 			$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=>$item->transaction_ID() ), TXN_ADMIN_URL );
576 578
 			return EE_Registry::instance()->CAP->current_user_can( 'ee_read_transaction', 'espresso_transactions_view_transaction', $item->transaction_ID() ) ? '<span class="reg-pad-rght"><a class="status-'. $item->transaction()->status_ID() .'" href="'.$view_txn_lnk_url.'"  title="' . esc_attr__( 'View Transaction', 'event_espresso' ) . '">'  . $item->transaction()->pretty_total() . '</a></span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_total() . '</span>';
577
-		}else{
579
+		} else{
578 580
 			return __("None", "event_espresso");
579 581
 		}
580 582
 	}
Please login to merge, or discard this patch.
Spacing   +147 added lines, -147 removed lines patch added patch discarded remove patch
@@ -57,20 +57,20 @@  discard block
 block discarded – undo
57 57
 	 * @param \EE_Admin_Page $admin_page
58 58
 	 * @return EE_Registrations_List_Table
59 59
 	 */
60
-	function __construct( $admin_page ){
60
+	function __construct($admin_page) {
61 61
 
62
-		if ( ! empty( $_GET['event_id'] ) ) {
62
+		if ( ! empty($_GET['event_id'])) {
63 63
 			$extra_query_args = array();
64
-			foreach ( $admin_page->get_views() as $key => $view_details ) {
65
-				$extra_query_args[$view_details['slug']] = array( 'event_id' => $_GET['event_id'] );
64
+			foreach ($admin_page->get_views() as $key => $view_details) {
65
+				$extra_query_args[$view_details['slug']] = array('event_id' => $_GET['event_id']);
66 66
 			}
67
-			$this->_views = $admin_page->get_list_table_view_RLs( $extra_query_args );
67
+			$this->_views = $admin_page->get_list_table_view_RLs($extra_query_args);
68 68
 		}
69 69
 
70 70
 		parent::__construct($admin_page);
71 71
 		$this->_status = $this->_admin_page->get_registration_status_array();
72 72
 
73
-		EE_Registry::instance()->load_helper( 'Template' );
73
+		EE_Registry::instance()->load_helper('Template');
74 74
 	}
75 75
 
76 76
 
@@ -81,8 +81,8 @@  discard block
 block discarded – undo
81 81
 	 * @return void
82 82
 	 */
83 83
 	protected function _setup_data() {
84
-		$this->_data = $this->_admin_page->get_registrations( $this->_per_page );
85
-		$this->_all_data_count = $this->_admin_page->get_registrations( $this->_per_page, TRUE, FALSE, FALSE );
84
+		$this->_data = $this->_admin_page->get_registrations($this->_per_page);
85
+		$this->_all_data_count = $this->_admin_page->get_registrations($this->_per_page, TRUE, FALSE, FALSE);
86 86
 	}
87 87
 
88 88
 
@@ -101,43 +101,43 @@  discard block
 block discarded – undo
101 101
 			);
102 102
 
103 103
 
104
-		if ( isset( $_GET['event_id'] )) {
104
+		if (isset($_GET['event_id'])) {
105 105
 			$this->_columns = array(
106 106
 				'_Reg_Status' => '',
107 107
 				'cb' => '<input type="checkbox" />', //Render a checkbox instead of text
108
-				'_REG_ID' => __( 'ID', 'event_espresso' ),
108
+				'_REG_ID' => __('ID', 'event_espresso'),
109 109
 				'_REG_count' => '#',
110
-				'ATT_fname' => __( 'Name', 'event_espresso' ),
110
+				'ATT_fname' => __('Name', 'event_espresso'),
111 111
 				'ATT_email' =>  __('Email', 'event_espresso'),
112
-				'_REG_date' => __( 'Reg Date', 'event_espresso' ),
113
-				'_REG_code' => __( 'Reg Code', 'event_espresso' ),
112
+				'_REG_date' => __('Reg Date', 'event_espresso'),
113
+				'_REG_code' => __('Reg Code', 'event_espresso'),
114 114
 				//'Reg_status' => __( 'Status', 'event_espresso' ),
115
-				'PRC_amount' => __( 'TKT Price', 'event_espresso' ),
116
-				'_REG_final_price' => __( 'Final Price', 'event_espresso' ),
117
-				'TXN_total' => __( 'Total Txn', 'event_espresso' ),
115
+				'PRC_amount' => __('TKT Price', 'event_espresso'),
116
+				'_REG_final_price' => __('Final Price', 'event_espresso'),
117
+				'TXN_total' => __('Total Txn', 'event_espresso'),
118 118
 				'TXN_paid' => __('Paid', 'event_espresso'),
119
-				'actions' => __( 'Actions', 'event_espresso' )
119
+				'actions' => __('Actions', 'event_espresso')
120 120
 				);
121 121
 			$this->_bottom_buttons = array(
122 122
 					'report'=> array(
123 123
 					'route' => 'registrations_report',
124
-					'extra_request' => isset( $this->_req_data['event_id'] ) ? array('EVT_ID'=>$this->_req_data['event_id']) : NULL
124
+					'extra_request' => isset($this->_req_data['event_id']) ? array('EVT_ID'=>$this->_req_data['event_id']) : NULL
125 125
 				),
126 126
 			);
127 127
 		} else {
128 128
 			$this->_columns = array(
129 129
 				'_Reg_Status' => '',
130 130
 				'cb' => '<input type="checkbox" />', //Render a checkbox instead of text
131
-				'_REG_ID' => __( 'ID', 'event_espresso' ),
131
+				'_REG_ID' => __('ID', 'event_espresso'),
132 132
 				'_REG_count' => '#',
133
-				'ATT_fname' => __( 'Name', 'event_espresso' ),
134
-				'_REG_date' => __( 'TXN Date', 'event_espresso' ),
135
-				'event_name' => __( 'Event', 'event_espresso' ),
136
-					'DTT_EVT_start' => __( 'Event Date', 'event_espresso' ),
137
-				'_REG_code' => __( 'Reg Code', 'event_espresso' ),
133
+				'ATT_fname' => __('Name', 'event_espresso'),
134
+				'_REG_date' => __('TXN Date', 'event_espresso'),
135
+				'event_name' => __('Event', 'event_espresso'),
136
+					'DTT_EVT_start' => __('Event Date', 'event_espresso'),
137
+				'_REG_code' => __('Reg Code', 'event_espresso'),
138 138
 				//'Reg_status' => __( 'Status', 'event_espresso' ),
139
-				'_REG_final_price' => __( 'Price', 'event_espresso' ),
140
-				'actions' => __( 'Actions', 'event_espresso' )
139
+				'_REG_final_price' => __('Price', 'event_espresso'),
140
+				'actions' => __('Actions', 'event_espresso')
141 141
 			);
142 142
 			$this->_bottom_buttons = array(
143 143
 				'report_all'=> array(
@@ -148,12 +148,12 @@  discard block
 block discarded – undo
148 148
 
149 149
 
150 150
 		$this->_sortable_columns = array(
151
-			'_REG_date' => array( '_REG_date' => TRUE ),   //true means its already sorted
152
-			'ATT_fname' => array( 'ATT_fname' => FALSE ),
153
-			'event_name' => array( 'event_name' => FALSE ),
154
-			'DTT_EVT_start'	=> array( 'DTT_EVT_start' => FALSE ),
151
+			'_REG_date' => array('_REG_date' => TRUE), //true means its already sorted
152
+			'ATT_fname' => array('ATT_fname' => FALSE),
153
+			'event_name' => array('event_name' => FALSE),
154
+			'DTT_EVT_start'	=> array('DTT_EVT_start' => FALSE),
155 155
 			//'Reg_status' => array( 'Reg_status' => FALSE ),
156
-			'_REG_ID' => array( '_REG_ID' => FALSE ),
156
+			'_REG_ID' => array('_REG_ID' => FALSE),
157 157
 		);
158 158
 
159 159
 		$this->_hidden_columns = array();
@@ -167,15 +167,15 @@  discard block
 block discarded – undo
167 167
 	 *
168 168
 	 * @param EE_Registration $registration
169 169
 	 */
170
-	protected function _set_related_details( EE_Registration $registration ) {
170
+	protected function _set_related_details(EE_Registration $registration) {
171 171
 
172
-		$transaction = $registration->get_first_related( 'Transaction' );
172
+		$transaction = $registration->get_first_related('Transaction');
173 173
 		$status = $transaction instanceof EE_Transaction ? $transaction->status_ID() : EEM_Transaction::failed_status_code;
174 174
 		$this->_transaction_details = array(
175 175
 			'transaction' => $transaction,
176 176
 			'status' => $status,
177 177
 			'id' => $transaction instanceof EE_Transaction ? $transaction->ID() : 0,
178
-			'title_attr' => sprintf( __('View Transaction Details (%s)', 'event_espresso'), EEH_Template::pretty_status( $status, false, 'sentence' ) )
178
+			'title_attr' => sprintf(__('View Transaction Details (%s)', 'event_espresso'), EEH_Template::pretty_status($status, false, 'sentence'))
179 179
 			);
180 180
 
181 181
 		$event = $registration->event();
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 			'event' => $event,
185 185
 			'status' => $status,
186 186
 			'id' => $event instanceof EE_Event ? $event->ID() : 0,
187
-			'title_attr' => sprintf( __('Edit Event (%s)', 'event_espresso'), EEH_Template::pretty_status( $status, false, 'sentence' ) )
187
+			'title_attr' => sprintf(__('Edit Event (%s)', 'event_espresso'), EEH_Template::pretty_status($status, false, 'sentence'))
188 188
 			);
189 189
 	}
190 190
 
@@ -199,26 +199,26 @@  discard block
 block discarded – undo
199 199
 		$filters = array();
200 200
 
201 201
 		//todo we're currently using old functions here. We need to move things into the Events_Admin_Page() class as methods.
202
-		EE_Registry::instance()->load_helper( 'Form_Fields' );
202
+		EE_Registry::instance()->load_helper('Form_Fields');
203 203
 
204
-		$cur_date = isset( $this->_req_data['month_range'] ) ? $this->_req_data['month_range'] : '';
205
-		$cur_category = isset( $this->_req_data['EVT_CAT'] ) ? $this->_req_data['EVT_CAT'] : -1;
206
-		$reg_status = isset( $this->_req_data['_reg_status'] ) ? $this->_req_data['_reg_status'] : '';
204
+		$cur_date = isset($this->_req_data['month_range']) ? $this->_req_data['month_range'] : '';
205
+		$cur_category = isset($this->_req_data['EVT_CAT']) ? $this->_req_data['EVT_CAT'] : -1;
206
+		$reg_status = isset($this->_req_data['_reg_status']) ? $this->_req_data['_reg_status'] : '';
207 207
 
208
-		$filters[] = EEH_Form_Fields::generate_registration_months_dropdown( $cur_date, $reg_status, $cur_category );
209
-		$filters[] = EEH_Form_Fields::generate_event_category_dropdown( $cur_category );
208
+		$filters[] = EEH_Form_Fields::generate_registration_months_dropdown($cur_date, $reg_status, $cur_category);
209
+		$filters[] = EEH_Form_Fields::generate_event_category_dropdown($cur_category);
210 210
 
211 211
 		$status = array();
212
-		$status[] = array( 'id' => 0, 'text' => __('Select Status', 'event_espresso') );
213
-		foreach ( $this->_status as $key => $value ) {
214
-			$status[] = array( 'id' => $key, 'text' => $value );
212
+		$status[] = array('id' => 0, 'text' => __('Select Status', 'event_espresso'));
213
+		foreach ($this->_status as $key => $value) {
214
+			$status[] = array('id' => $key, 'text' => $value);
215 215
 		}
216
-		if ( $this->_view != 'incomplete' ) {
217
-			$filters[] = EEH_Form_Fields::select_input('_reg_status', $status, isset( $this->_req_data['_reg_status'] ) ? strtoupper( sanitize_key( $this->_req_data['_reg_status'] )) : '' );
216
+		if ($this->_view != 'incomplete') {
217
+			$filters[] = EEH_Form_Fields::select_input('_reg_status', $status, isset($this->_req_data['_reg_status']) ? strtoupper(sanitize_key($this->_req_data['_reg_status'])) : '');
218 218
 		}
219 219
 
220
-		if ( isset( $this->_req_data['event_id'] ) ) {
221
-			$filters[] = EEH_Form_Fields::hidden_input( 'event_id',  $this->_req_data['event_id'], 'reg_event_id' );
220
+		if (isset($this->_req_data['event_id'])) {
221
+			$filters[] = EEH_Form_Fields::hidden_input('event_id', $this->_req_data['event_id'], 'reg_event_id');
222 222
 		}
223 223
 
224 224
 		return $filters;
@@ -235,9 +235,9 @@  discard block
 block discarded – undo
235 235
 		$this->_views['all']['count'] = $this->_total_registrations();
236 236
 		$this->_views['month']['count'] = $this->_total_registrations_this_month();
237 237
 		$this->_views['today']['count'] = $this->_total_registrations_today();
238
-		if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_registrations', 'espresso_registrations_trash_registrations' ) ) {
239
-			$this->_views['incomplete']['count'] = $this->_total_registrations( 'incomplete' );
240
-			$this->_views['trash']['count'] = $this->_total_registrations( 'trash' );
238
+		if (EE_Registry::instance()->CAP->current_user_can('ee_delete_registrations', 'espresso_registrations_trash_registrations')) {
239
+			$this->_views['incomplete']['count'] = $this->_total_registrations('incomplete');
240
+			$this->_views['trash']['count'] = $this->_total_registrations('trash');
241 241
 		}
242 242
 	}
243 243
 
@@ -249,23 +249,23 @@  discard block
 block discarded – undo
249 249
 	 * @param string $view
250 250
 	 * @return int
251 251
 	 */
252
-	protected function _total_registrations( $view = '' ){
252
+	protected function _total_registrations($view = '') {
253 253
 		$_where = array();
254
-		$EVT_ID = isset( $this->_req_data['event_id'] ) ? absint( $this->_req_data['event_id'] ) : FALSE;
255
-		if( $EVT_ID ) {
254
+		$EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : FALSE;
255
+		if ($EVT_ID) {
256 256
 			$_where['EVT_ID'] = $EVT_ID;
257 257
 		}
258
-		switch ( $view ) {
258
+		switch ($view) {
259 259
 			case 'trash' :
260
-				return EEM_Registration::instance()->count_deleted( array( $_where ));
260
+				return EEM_Registration::instance()->count_deleted(array($_where));
261 261
 				break;
262 262
 			case 'incomplete' :
263 263
 				$_where['STS_ID'] = EEM_Registration::status_id_incomplete;
264 264
 				break;
265 265
 			default :
266
-				$_where['STS_ID'] = array( '!=', EEM_Registration::status_id_incomplete );
266
+				$_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
267 267
 		}
268
-		return EEM_Registration::instance()->count( array( $_where ));
268
+		return EEM_Registration::instance()->count(array($_where));
269 269
 	}
270 270
 
271 271
 
@@ -275,21 +275,21 @@  discard block
 block discarded – undo
275 275
 	 * @access protected
276 276
 	 * @return int
277 277
 	 */
278
-	protected function _total_registrations_this_month(){
279
-		$EVT_ID = isset( $this->_req_data['event_id'] ) ? absint( $this->_req_data['event_id'] ) : FALSE;
280
-		$_where = $EVT_ID ? array( 'EVT_ID' => $EVT_ID ) : array();
278
+	protected function _total_registrations_this_month() {
279
+		$EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : FALSE;
280
+		$_where = $EVT_ID ? array('EVT_ID' => $EVT_ID) : array();
281 281
 		$this_year_r = date('Y', current_time('timestamp'));
282 282
 		$time_start = ' 00:00:00';
283 283
 		$time_end = ' 23:59:59';
284 284
 		$this_month_r = date('m', current_time('timestamp'));
285
-		$days_this_month = date( 't', current_time('timestamp') );
286
-		$_where['REG_date']= array('BETWEEN',
285
+		$days_this_month = date('t', current_time('timestamp'));
286
+		$_where['REG_date'] = array('BETWEEN',
287 287
 			array(
288
-				strtotime( $this_year_r . '-' . $this_month_r . '-01' . ' ' . $time_start ),
289
-				strtotime( $this_year_r . '-' . $this_month_r . $days_this_month . ' ' . $time_end )
288
+				strtotime($this_year_r.'-'.$this_month_r.'-01'.' '.$time_start),
289
+				strtotime($this_year_r.'-'.$this_month_r.$days_this_month.' '.$time_end)
290 290
 		));
291
-		$_where['STS_ID'] = array( '!=', EEM_Registration::status_id_incomplete );
292
-		return EEM_Registration::instance()->count(array( $_where ) );
291
+		$_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
292
+		return EEM_Registration::instance()->count(array($_where));
293 293
 	}
294 294
 
295 295
 
@@ -299,20 +299,20 @@  discard block
 block discarded – undo
299 299
 	 * @access protected
300 300
 	 * @return int
301 301
 	 */
302
-	protected function _total_registrations_today(){
302
+	protected function _total_registrations_today() {
303 303
 
304
-		$EVT_ID = isset( $this->_req_data['event_id'] ) ? absint( $this->_req_data['event_id'] ) : FALSE;
305
-		$_where = $EVT_ID ? array( 'EVT_ID' => $EVT_ID ) : array();
304
+		$EVT_ID = isset($this->_req_data['event_id']) ? absint($this->_req_data['event_id']) : FALSE;
305
+		$_where = $EVT_ID ? array('EVT_ID' => $EVT_ID) : array();
306 306
 		$current_date = date('Y-m-d', current_time('timestamp'));
307 307
 		$time_start = ' 00:00:00';
308 308
 		$time_end = ' 23:59:59';
309
-		$_where['REG_date']= array('BETWEEN',
309
+		$_where['REG_date'] = array('BETWEEN',
310 310
 			array(
311
-				strtotime($current_date . $time_start),
312
-				strtotime($current_date . $time_end)
311
+				strtotime($current_date.$time_start),
312
+				strtotime($current_date.$time_end)
313 313
 		));
314
-		$_where['STS_ID'] = array( '!=', EEM_Registration::status_id_incomplete );
315
-		return EEM_Registration::instance()->count(array( $_where ) );
314
+		$_where['STS_ID'] = array('!=', EEM_Registration::status_id_incomplete);
315
+		return EEM_Registration::instance()->count(array($_where));
316 316
 	}
317 317
 
318 318
 
@@ -324,8 +324,8 @@  discard block
 block discarded – undo
324 324
 	 * @param \EE_Registration $item
325 325
 	 * @return string
326 326
 	 */
327
-    function column__Reg_Status( EE_Registration $item ) {
328
-    	return '<span class="ee-status-strip ee-status-strip-td reg-status-' . $item->status_ID() . '"></span>';
327
+    function column__Reg_Status(EE_Registration $item) {
328
+    	return '<span class="ee-status-strip ee-status-strip-td reg-status-'.$item->status_ID().'"></span>';
329 329
     }
330 330
 
331 331
 
@@ -337,10 +337,10 @@  discard block
 block discarded – undo
337 337
 	 * @param \EE_Registration $item
338 338
 	 * @return string
339 339
 	 */
340
-    function column_cb($item){
340
+    function column_cb($item) {
341 341
 	/** checkbox/lock **/
342 342
 	$payment_count = $item->get_first_related('Transaction')->count_related('Payment');
343
-	return $payment_count > 0 ? sprintf( '<input type="checkbox" name="_REG_ID[]" value="%1$s" />', $item->ID() ) . '<span class="ee-lock-icon"></span>' : sprintf( '<input type="checkbox" name="_REG_ID[]" value="%1$s" />', $item->ID() );
343
+	return $payment_count > 0 ? sprintf('<input type="checkbox" name="_REG_ID[]" value="%1$s" />', $item->ID()).'<span class="ee-lock-icon"></span>' : sprintf('<input type="checkbox" name="_REG_ID[]" value="%1$s" />', $item->ID());
344 344
     }
345 345
 
346 346
 
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 	 * @param \EE_Registration $item
353 353
 	 * @return string
354 354
 	 */
355
-	function column__REG_ID(EE_Registration $item){
355
+	function column__REG_ID(EE_Registration $item) {
356 356
 		return $item->ID();
357 357
 	}
358 358
 
@@ -365,11 +365,11 @@  discard block
 block discarded – undo
365 365
 	 * @param \EE_Registration $item
366 366
 	 * @return string
367 367
 	 */
368
-	function column__REG_date(EE_Registration $item){
368
+	function column__REG_date(EE_Registration $item) {
369 369
 		$this->_set_related_details($item);
370 370
        		 //Build row actions
371
-		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=> $this->_transaction_details['id'] ), TXN_ADMIN_URL );
372
-		return EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction') ? '<a class="ee-status-color-' . $this->_transaction_details['status'] . '" href="'.$view_lnk_url.'" title="' . esc_attr( $this->_transaction_details['title_attr'] ) . '">' . $item->get_i18n_datetime( 'REG_date' ) . '</a>' : $item->get_i18n_datetime( 'REG_date' );
371
+		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_transaction', 'TXN_ID'=> $this->_transaction_details['id']), TXN_ADMIN_URL);
372
+		return EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction') ? '<a class="ee-status-color-'.$this->_transaction_details['status'].'" href="'.$view_lnk_url.'" title="'.esc_attr($this->_transaction_details['title_attr']).'">'.$item->get_i18n_datetime('REG_date').'</a>' : $item->get_i18n_datetime('REG_date');
373 373
 	}
374 374
 
375 375
 
@@ -381,18 +381,18 @@  discard block
 block discarded – undo
381 381
 	 * @param \EE_Registration $item
382 382
 	 * @return string
383 383
 	 */
384
-	function column_event_name(EE_Registration $item){
385
-		$this->_set_related_details( $item );
384
+	function column_event_name(EE_Registration $item) {
385
+		$this->_set_related_details($item);
386 386
 		// page=espresso_events&action=edit_event&EVT_ID=2&edit_event_nonce=cf3a7e5b62
387
-		$edit_event_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'edit', 'post'=>$item->event_ID() ), EVENTS_ADMIN_URL );
387
+		$edit_event_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'edit', 'post'=>$item->event_ID()), EVENTS_ADMIN_URL);
388 388
 		$event_name = $item->event_name();
389 389
 		$event_name = $event_name ? $event_name : __("No Associated Event", 'event_espresso');
390
-		$edit_event = EE_Registry::instance()->CAP->current_user_can('ee_edit_event', 'edit_event', $item->event_ID() ) ? '<a class="ee-status-color-' . $this->_event_details['status'] . '" href="' . $edit_event_url . '" title="' . esc_attr( $this->_event_details['title_attr'] ) .'">' .  wp_trim_words( $event_name, 30, '...' ) . '</a>' : wp_trim_words( $event_name, 30, '...' ) ;
390
+		$edit_event = EE_Registry::instance()->CAP->current_user_can('ee_edit_event', 'edit_event', $item->event_ID()) ? '<a class="ee-status-color-'.$this->_event_details['status'].'" href="'.$edit_event_url.'" title="'.esc_attr($this->_event_details['title_attr']).'">'.wp_trim_words($event_name, 30, '...').'</a>' : wp_trim_words($event_name, 30, '...');
391 391
 
392
-		$edit_event_url = EE_Admin_Page::add_query_args_and_nonce( array( 'event_id'=>$item->event_ID() ), REG_ADMIN_URL );
393
-		$actions['event_filter'] = '<a href="' . $edit_event_url . '" title="' . sprintf( esc_attr__( 'Filter this list to only show registrations for %s', 'event_espresso' ), $event_name ) .'">' .  __( 'View Registrations', 'event_espresso' ) . '</a>';
392
+		$edit_event_url = EE_Admin_Page::add_query_args_and_nonce(array('event_id'=>$item->event_ID()), REG_ADMIN_URL);
393
+		$actions['event_filter'] = '<a href="'.$edit_event_url.'" title="'.sprintf(esc_attr__('Filter this list to only show registrations for %s', 'event_espresso'), $event_name).'">'.__('View Registrations', 'event_espresso').'</a>';
394 394
 
395
-		return sprintf('%1$s %2$s', $edit_event, $this->row_actions($actions) );
395
+		return sprintf('%1$s %2$s', $edit_event, $this->row_actions($actions));
396 396
 	}
397 397
 
398 398
 
@@ -404,18 +404,18 @@  discard block
 block discarded – undo
404 404
 	 * @param \EE_Registration $item
405 405
 	 * @return string
406 406
 	 */
407
-   	function column_DTT_EVT_start(EE_Registration $item){
407
+   	function column_DTT_EVT_start(EE_Registration $item) {
408 408
 		$datetime_strings = array();
409
-		$ticket = $item->ticket( TRUE );
410
-		if ( $ticket instanceof EE_Ticket ) {
409
+		$ticket = $item->ticket(TRUE);
410
+		if ($ticket instanceof EE_Ticket) {
411 411
 			$remove_defaults = array('default_where_conditions' => 'none');
412 412
 			$datetimes = $ticket->datetimes($remove_defaults);
413
-			foreach($datetimes as $datetime){
414
-				$datetime_strings[] = $datetime->get_i18n_datetime( 'DTT_EVT_start' );
413
+			foreach ($datetimes as $datetime) {
414
+				$datetime_strings[] = $datetime->get_i18n_datetime('DTT_EVT_start');
415 415
 			}
416
-			return implode("<br />",$datetime_strings);
416
+			return implode("<br />", $datetime_strings);
417 417
 		} else {
418
-			return __( 'There is no ticket on this registration', 'event_espresso' );
418
+			return __('There is no ticket on this registration', 'event_espresso');
419 419
 		}
420 420
     }
421 421
 
@@ -428,35 +428,35 @@  discard block
 block discarded – undo
428 428
 	 * @param \EE_Registration $item
429 429
 	 * @return string
430 430
 	 */
431
-   	function column_ATT_fname(EE_Registration $item){
431
+   	function column_ATT_fname(EE_Registration $item) {
432 432
    		$attendee = $item->attendee();
433 433
 
434
-		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_registration', '_REG_ID'=>$item->ID() ), REG_ADMIN_URL );
434
+		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_registration', '_REG_ID'=>$item->ID()), REG_ADMIN_URL);
435 435
 		$attendee_name = $attendee instanceof EE_Attendee ? $attendee->full_name() : '';
436
-		$link = EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $item->ID() ) ? '<a href="'.$edit_lnk_url.'" title="' . esc_attr__( 'View Registration Details', 'event_espresso' ) . '">' . $attendee_name . '</a>' : $attendee_name;
436
+		$link = EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $item->ID()) ? '<a href="'.$edit_lnk_url.'" title="'.esc_attr__('View Registration Details', 'event_espresso').'">'.$attendee_name.'</a>' : $attendee_name;
437 437
 		$link .= $item->count() == 1 ? '&nbsp;<sup><div class="dashicons dashicons-star-filled lt-blue-icon ee-icon-size-8"></div></sup>' : '';
438 438
 
439 439
 		$payment_count = $item->get_first_related('Transaction')->count_related('Payment');
440 440
 
441 441
 		//trash/restore/delete actions
442 442
 		$actions = array();
443
-		if ( $this->_view != 'trash' && $payment_count === 0 && EE_Registry::instance()->CAP->current_user_can( 'ee_delete_registration', 'espresso_registrations_trash_registrations', $item->ID() ) ) {
444
-			$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'trash_registrations', '_REG_ID'=>$item->ID() ), REG_ADMIN_URL );
445
-			$actions['trash'] = '<a href="'.$trash_lnk_url.'" title="' . esc_attr__( 'Trash Registration', 'event_espresso' ) . '">' . __( 'Trash', 'event_espresso' ) . '</a>';
446
-		} elseif ( $this->_view == 'trash' ) {
443
+		if ($this->_view != 'trash' && $payment_count === 0 && EE_Registry::instance()->CAP->current_user_can('ee_delete_registration', 'espresso_registrations_trash_registrations', $item->ID())) {
444
+			$trash_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'trash_registrations', '_REG_ID'=>$item->ID()), REG_ADMIN_URL);
445
+			$actions['trash'] = '<a href="'.$trash_lnk_url.'" title="'.esc_attr__('Trash Registration', 'event_espresso').'">'.__('Trash', 'event_espresso').'</a>';
446
+		} elseif ($this->_view == 'trash') {
447 447
 			// restore registration link
448
-			if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_registration', 'espresso_registrations_restore_registrations', $item->ID() ) ) {
449
-				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'restore_registrations', '_REG_ID'=>$item->ID() ), REG_ADMIN_URL );
450
-				$actions['restore'] = '<a href="'.$restore_lnk_url.'" title="' . esc_attr__( 'Restore Registration', 'event_espresso' ) . '">' . __( 'Restore', 'event_espresso' ) . '</a>';
448
+			if (EE_Registry::instance()->CAP->current_user_can('ee_delete_registration', 'espresso_registrations_restore_registrations', $item->ID())) {
449
+				$restore_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'restore_registrations', '_REG_ID'=>$item->ID()), REG_ADMIN_URL);
450
+				$actions['restore'] = '<a href="'.$restore_lnk_url.'" title="'.esc_attr__('Restore Registration', 'event_espresso').'">'.__('Restore', 'event_espresso').'</a>';
451 451
 			}
452
-			if ( EE_Registry::instance()->CAP->current_user_can( 'ee_delete_registration', 'espresso_registrations_ee_delete_registrations', $item->ID() ) ) {
453
-				$delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'delete_registrations', '_REG_ID'=>$item->ID() ), REG_ADMIN_URL );
452
+			if (EE_Registry::instance()->CAP->current_user_can('ee_delete_registration', 'espresso_registrations_ee_delete_registrations', $item->ID())) {
453
+				$delete_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'delete_registrations', '_REG_ID'=>$item->ID()), REG_ADMIN_URL);
454 454
 
455
-				$actions['delete'] = '<a href="'.$delete_lnk_url.'" title="' . esc_attr__( 'Delete Registration Permanently', 'event_espresso' ). '">' . __( 'Delete', 'event_espresso' ) . '</a>';
455
+				$actions['delete'] = '<a href="'.$delete_lnk_url.'" title="'.esc_attr__('Delete Registration Permanently', 'event_espresso').'">'.__('Delete', 'event_espresso').'</a>';
456 456
 			}
457 457
 		}
458 458
 
459
-		return sprintf('%1$s %2$s', $link, $this->row_actions($actions) );
459
+		return sprintf('%1$s %2$s', $link, $this->row_actions($actions));
460 460
 	}
461 461
 
462 462
 
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
 	 * @param \EE_Registration $item
469 469
 	 * @return string
470 470
 	 */
471
-	function column_ATT_email( EE_Registration $item ) {
471
+	function column_ATT_email(EE_Registration $item) {
472 472
 		$attendee = $item->get_first_related('Attendee');
473 473
 		return ! $attendee instanceof EE_Attendee ? __('No attached contact record.', 'event_espresso') : $attendee->email();
474 474
 	}
@@ -482,8 +482,8 @@  discard block
 block discarded – undo
482 482
 	 * @param \EE_Registration $item
483 483
 	 * @return string
484 484
 	 */
485
-	function column__REG_count(EE_Registration $item){
486
-		return  sprintf(__( '%1$s of %2$s', 'event_espresso' ), $item->count(), $item->group_size());
485
+	function column__REG_count(EE_Registration $item) {
486
+		return  sprintf(__('%1$s of %2$s', 'event_espresso'), $item->count(), $item->group_size());
487 487
 	}
488 488
 
489 489
 
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
 	 * @param  EE_Registration $item registration object
496 496
 	 * @return string
497 497
 	 */
498
-	function column__REG_code( EE_Registration $item) {
498
+	function column__REG_code(EE_Registration $item) {
499 499
 		return $item->get('REG_code');
500 500
 	}
501 501
 
@@ -508,16 +508,16 @@  discard block
 block discarded – undo
508 508
 	 * @param \EE_Registration $item
509 509
 	 * @return string
510 510
 	 */
511
-	function column_PRC_amount(EE_Registration $item){
511
+	function column_PRC_amount(EE_Registration $item) {
512 512
 		$ticket = $item->ticket();
513 513
 
514
-		$content = isset( $_GET['event_id'] ) && $ticket instanceof EE_Ticket ? '<span class="TKT_name">' . $ticket->name() . '</span><br />' : '';
514
+		$content = isset($_GET['event_id']) && $ticket instanceof EE_Ticket ? '<span class="TKT_name">'.$ticket->name().'</span><br />' : '';
515 515
 
516
-		if ( $item->price_paid() > 0 ) {
517
-			$content .= '<span class="reg-pad-rght">' . $item->pretty_price_paid() . '</span>';
516
+		if ($item->price_paid() > 0) {
517
+			$content .= '<span class="reg-pad-rght">'.$item->pretty_price_paid().'</span>';
518 518
 		} else {
519 519
 			// free event
520
-			$content .= '<span class="reg-overview-free-event-spn reg-pad-rght">' . __( 'free', 'event_espresso' ) . '</span>';
520
+			$content .= '<span class="reg-overview-free-event-spn reg-pad-rght">'.__('free', 'event_espresso').'</span>';
521 521
 		}
522 522
 
523 523
 		return $content;
@@ -533,11 +533,11 @@  discard block
 block discarded – undo
533 533
 	 * @param \EE_Registration $item
534 534
 	 * @return string
535 535
 	 */
536
-	function column__REG_final_price(EE_Registration $item){
536
+	function column__REG_final_price(EE_Registration $item) {
537 537
 		$ticket = $item->ticket();
538
-		$content = isset( $_GET['event_id'] ) || ! $ticket instanceof EE_Ticket ? '' : '<span class="TKT_name">' . $ticket->name() . '</span><br />';
538
+		$content = isset($_GET['event_id']) || ! $ticket instanceof EE_Ticket ? '' : '<span class="TKT_name">'.$ticket->name().'</span><br />';
539 539
 
540
-		$content .= '<span class="reg-pad-rght">' .  $item->pretty_price_paid() . '</span>';
540
+		$content .= '<span class="reg-pad-rght">'.$item->pretty_price_paid().'</span>';
541 541
 		return $content;
542 542
 
543 543
 	}
@@ -551,11 +551,11 @@  discard block
 block discarded – undo
551 551
 	 * @param \EE_Registration $item
552 552
 	 * @return string
553 553
 	 */
554
-	function column_TXN_total(EE_Registration $item){
555
-		if($item->transaction()){
556
-			$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=>$item->transaction_ID() ), TXN_ADMIN_URL );
557
-			return EE_Registry::instance()->CAP->current_user_can( 'ee_read_transaction', 'espresso_transactions_view_transaction', $item->transaction_ID() ) ? '<span class="reg-pad-rght"><a class="status-'. $item->transaction()->status_ID() .'" href="'.$view_txn_lnk_url.'"  title="' . esc_attr__( 'View Transaction', 'event_espresso' ) . '">'  . $item->transaction()->pretty_total() . '</a></span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_total() . '</span>';
558
-		}else{
554
+	function column_TXN_total(EE_Registration $item) {
555
+		if ($item->transaction()) {
556
+			$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_transaction', 'TXN_ID'=>$item->transaction_ID()), TXN_ADMIN_URL);
557
+			return EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction', $item->transaction_ID()) ? '<span class="reg-pad-rght"><a class="status-'.$item->transaction()->status_ID().'" href="'.$view_txn_lnk_url.'"  title="'.esc_attr__('View Transaction', 'event_espresso').'">'.$item->transaction()->pretty_total().'</a></span>' : '<span class="reg-pad-rght">'.$item->transaction()->pretty_total().'</span>';
558
+		} else {
559 559
 			return __("None", "event_espresso");
560 560
 		}
561 561
 	}
@@ -569,15 +569,15 @@  discard block
 block discarded – undo
569 569
 	 * @param \EE_Registration $item
570 570
 	 * @return string
571 571
 	 */
572
-	function column_TXN_paid(EE_Registration $item){
572
+	function column_TXN_paid(EE_Registration $item) {
573 573
 
574
-		if ( $item->count() == 1 ) {
574
+		if ($item->count() == 1) {
575 575
 			$transaction = $item->transaction() ? $item->transaction() : EE_Transaction::new_instance();
576
-			if ( $transaction->paid() >= $transaction->total() ) {
576
+			if ($transaction->paid() >= $transaction->total()) {
577 577
 				return '<span class="reg-pad-rght"><div class="dashicons dashicons-yes green-icon"></div></span>';
578 578
 			} else {
579
-				$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=>$item->transaction_ID() ), TXN_ADMIN_URL );
580
-				return EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction', $item->transaction_ID() ) ? '<span class="reg-pad-rght"><a class="status-'. $transaction->status_ID() .'" href="'.$view_txn_lnk_url.'"  title="' . esc_attr__( 'View Transaction', 'event_espresso' ) . '">' . $item->transaction()->pretty_paid() . '</a><span>' : '<span class="reg-pad-rght">' . $item->transaction()->pretty_paid() . '</span>';
579
+				$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_transaction', 'TXN_ID'=>$item->transaction_ID()), TXN_ADMIN_URL);
580
+				return EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction', $item->transaction_ID()) ? '<span class="reg-pad-rght"><a class="status-'.$transaction->status_ID().'" href="'.$view_txn_lnk_url.'"  title="'.esc_attr__('View Transaction', 'event_espresso').'">'.$item->transaction()->pretty_paid().'</a><span>' : '<span class="reg-pad-rght">'.$item->transaction()->pretty_paid().'</span>';
581 581
 			}
582 582
 		}
583 583
 
@@ -598,49 +598,49 @@  discard block
 block discarded – undo
598 598
 
599 599
 		$attendee = $item->attendee();
600 600
 		$ticket = $item->ticket();
601
-		$this->_set_related_details( $item );
601
+		$this->_set_related_details($item);
602 602
 
603 603
 		//Build row actions
604
-		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_registration', '_REG_ID'=>$item->ID() ), REG_ADMIN_URL );
605
-		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'edit_attendee', 'post'=>$item->attendee_ID() ), REG_ADMIN_URL );
604
+		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_registration', '_REG_ID'=>$item->ID()), REG_ADMIN_URL);
605
+		$edit_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'edit_attendee', 'post'=>$item->attendee_ID()), REG_ADMIN_URL);
606 606
 
607 607
 		// page=attendees&event_admin_reports=resend_email&registration_id=43653465634&event_id=2&form_action=resend_email
608 608
 		//$resend_reg_lnk_url_params = array( 'action'=>'resend_registration', '_REG_ID'=>$item->REG_ID );
609
-		$resend_reg_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'resend_registration', '_REG_ID'=>$item->ID() ), REG_ADMIN_URL );
609
+		$resend_reg_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'resend_registration', '_REG_ID'=>$item->ID()), REG_ADMIN_URL);
610 610
 
611 611
 
612 612
 		//Build row actions
613
-		$view_lnk = EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $item->ID() ) ? '
613
+		$view_lnk = EE_Registry::instance()->CAP->current_user_can('ee_read_registration', 'espresso_registrations_view_registration', $item->ID()) ? '
614 614
 			<li>
615
-			<a href="'.$view_lnk_url.'" title="' . esc_attr__( 'View Registration Details', 'event_espresso' ) . '" class="tiny-text">
615
+			<a href="'.$view_lnk_url.'" title="'.esc_attr__('View Registration Details', 'event_espresso').'" class="tiny-text">
616 616
 				<div class="dashicons dashicons-clipboard"></div>
617 617
 			</a>
618 618
 			</li>' : '';
619 619
 
620
-		$edit_lnk = EE_Registry::instance()->CAP->current_user_can('ee_edit_contacts', 'espresso_registrations_edit_attendee' ) &&  $attendee instanceof EE_Attendee ?'
620
+		$edit_lnk = EE_Registry::instance()->CAP->current_user_can('ee_edit_contacts', 'espresso_registrations_edit_attendee') && $attendee instanceof EE_Attendee ? '
621 621
 			<li>
622
-			<a href="'.$edit_lnk_url.'" title="' . esc_attr__( 'Edit Contact Details', 'event_espresso' ) . '" class="tiny-text">
622
+			<a href="'.$edit_lnk_url.'" title="'.esc_attr__('Edit Contact Details', 'event_espresso').'" class="tiny-text">
623 623
 				<div class="ee-icon ee-icon-user-edit ee-icon-size-16"></div>
624 624
 			</a>
625 625
 			</li>' : '';
626 626
 
627
-		 $resend_reg_lnk = $attendee instanceof EE_Attendee && EE_Registry::instance()->CAP->current_user_can( 'ee_send_message', 'espresso_registrations_resend_registration', $item->ID() ) ? '
627
+		 $resend_reg_lnk = $attendee instanceof EE_Attendee && EE_Registry::instance()->CAP->current_user_can('ee_send_message', 'espresso_registrations_resend_registration', $item->ID()) ? '
628 628
 			<li>
629
-			<a href="'.$resend_reg_lnk_url.'" title="' . esc_attr__( 'Resend Registration Details', 'event_espresso' ) . '" class="tiny-text">
629
+			<a href="'.$resend_reg_lnk_url.'" title="'.esc_attr__('Resend Registration Details', 'event_espresso').'" class="tiny-text">
630 630
 				<div class="dashicons dashicons-email-alt"></div>
631 631
 			</a>
632 632
 			</li>' : '';
633 633
 
634 634
 		// page=transactions&action=view_transaction&txn=256&_wpnonce=6414da4dbb
635
-		$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=>$this->_transaction_details['id'] ), TXN_ADMIN_URL );
636
-		$view_txn_lnk = EE_Registry::instance()->CAP->current_user_can( 'ee_read_transaction', 'espresso_transactions_view_transaction', $this->_transaction_details['id'] ) ? '
635
+		$view_txn_lnk_url = EE_Admin_Page::add_query_args_and_nonce(array('action'=>'view_transaction', 'TXN_ID'=>$this->_transaction_details['id']), TXN_ADMIN_URL);
636
+		$view_txn_lnk = EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction', $this->_transaction_details['id']) ? '
637 637
 			<li>
638
-			<a class="ee-status-color-' . $this->_transaction_details['status'] . '" href="'.$view_txn_lnk_url.'"  title="' . $this->_transaction_details['title_attr'] . '" class="tiny-text">
638
+			<a class="ee-status-color-' . $this->_transaction_details['status'].'" href="'.$view_txn_lnk_url.'"  title="'.$this->_transaction_details['title_attr'].'" class="tiny-text">
639 639
 				<div class="dashicons dashicons-cart"></div>
640 640
 			</a>
641 641
 			</li>' : '';
642 642
 
643
-			return $this->_action_string( $view_lnk . $edit_lnk . $resend_reg_lnk . $view_txn_lnk, $item, 'ul', 'reg-overview-actions-ul' );
643
+			return $this->_action_string($view_lnk.$edit_lnk.$resend_reg_lnk.$view_txn_lnk, $item, 'ul', 'reg-overview-actions-ul');
644 644
 	}
645 645
 
646 646
 }
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -324,9 +324,9 @@  discard block
 block discarded – undo
324 324
 	 * @param \EE_Registration $item
325 325
 	 * @return string
326 326
 	 */
327
-    function column__Reg_Status( EE_Registration $item ) {
328
-    	return '<span class="ee-status-strip ee-status-strip-td reg-status-' . $item->status_ID() . '"></span>';
329
-    }
327
+	function column__Reg_Status( EE_Registration $item ) {
328
+		return '<span class="ee-status-strip ee-status-strip-td reg-status-' . $item->status_ID() . '"></span>';
329
+	}
330 330
 
331 331
 
332 332
 
@@ -337,11 +337,11 @@  discard block
 block discarded – undo
337 337
 	 * @param \EE_Registration $item
338 338
 	 * @return string
339 339
 	 */
340
-    function column_cb($item){
340
+	function column_cb($item){
341 341
 	/** checkbox/lock **/
342 342
 	$payment_count = $item->get_first_related('Transaction')->count_related('Payment');
343 343
 	return $payment_count > 0 ? sprintf( '<input type="checkbox" name="_REG_ID[]" value="%1$s" />', $item->ID() ) . '<span class="ee-lock-icon"></span>' : sprintf( '<input type="checkbox" name="_REG_ID[]" value="%1$s" />', $item->ID() );
344
-    }
344
+	}
345 345
 
346 346
 
347 347
 
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
 	 */
368 368
 	function column__REG_date(EE_Registration $item){
369 369
 		$this->_set_related_details($item);
370
-       		 //Build row actions
370
+	   		 //Build row actions
371 371
 		$view_lnk_url = EE_Admin_Page::add_query_args_and_nonce( array( 'action'=>'view_transaction', 'TXN_ID'=> $this->_transaction_details['id'] ), TXN_ADMIN_URL );
372 372
 		return EE_Registry::instance()->CAP->current_user_can('ee_read_transaction', 'espresso_transactions_view_transaction') ? '<a class="ee-status-color-' . $this->_transaction_details['status'] . '" href="'.$view_lnk_url.'" title="' . esc_attr( $this->_transaction_details['title_attr'] ) . '">' . $item->get_i18n_datetime( 'REG_date' ) . '</a>' : $item->get_i18n_datetime( 'REG_date' );
373 373
 	}
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
 		} else {
418 418
 			return __( 'There is no ticket on this registration', 'event_espresso' );
419 419
 		}
420
-    }
420
+	}
421 421
 
422 422
 
423 423
 
Please login to merge, or discard this patch.
admin_pages/registrations/help_tours/Contact_List_Help_Tour.class.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 /**
@@ -153,57 +153,57 @@  discard block
 block discarded – undo
153 153
 
154 154
 
155 155
 	protected function _start() {
156
-		$content = '<h3>' . __('Contact List', 'event_espresso') . '</h3>';
157
-		$content .= '<p>' . __('This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
156
+		$content = '<h3>'.__('Contact List', 'event_espresso').'</h3>';
157
+		$content .= '<p>'.__('This tour of the Contact List page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
158 158
 		return $content;
159 159
 	}
160 160
 
161 161
 	protected function _attendee_id_stop() {
162
-		return '<p>' . __('View ID for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
162
+		return '<p>'.__('View ID for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
163 163
 	}
164 164
 
165 165
 	protected function _attendee_name_stop() {
166
-		return '<p>' . __('View first name for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
166
+		return '<p>'.__('View first name for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
167 167
 	}
168 168
 
169 169
 	protected function _att_lname_stop() {
170
-		return '<p>' . __('View last name for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
170
+		return '<p>'.__('View last name for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
171 171
 	}
172 172
 
173 173
 	protected function _att_email_stop() {
174
-		return '<p>' . __('View email address for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
174
+		return '<p>'.__('View email address for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
175 175
 	}
176 176
 
177 177
 	protected function _att_phone_stop() {
178
-		return '<p>' . __('View phone number for registrants.', 'event_espresso') . '</p>';
178
+		return '<p>'.__('View phone number for registrants.', 'event_espresso').'</p>';
179 179
 	}
180 180
 
181 181
 	protected function _att_address_stop() {
182
-		return '<p>' . __('View address for registrants.', 'event_espresso') . '</p>';
182
+		return '<p>'.__('View address for registrants.', 'event_espresso').'</p>';
183 183
 	}
184 184
 
185 185
 	protected function _att_city_stop() {
186
-		return '<p>' . __('View city for registrants.', 'event_espresso') . '</p>';
186
+		return '<p>'.__('View city for registrants.', 'event_espresso').'</p>';
187 187
 	}
188 188
 
189 189
 	protected function _sta_id_stop() {
190
-		return '<p>' . __('View state/province for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
190
+		return '<p>'.__('View state/province for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
191 191
 	}
192 192
 
193 193
 	protected function _cnt_iso_stop() {
194
-		return '<p>' . __('View country for registrants. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
194
+		return '<p>'.__('View country for registrants. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
195 195
 	}
196 196
 
197 197
 	protected function _bulkactions_stop() {
198
-		return '<p>' . __('Perform a bulk action to multiple registrants.', 'event_espresso') . '</p>';
198
+		return '<p>'.__('Perform a bulk action to multiple registrants.', 'event_espresso').'</p>';
199 199
 	}
200 200
 
201 201
 	protected function _search_stop() {
202
-		return '<p>' . __('Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', 'event_espresso') . '</p>';
202
+		return '<p>'.__('Search through contacts. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, and Registration Code.', 'event_espresso').'</p>';
203 203
 	}
204 204
 
205 205
 	protected function _contact_list_csv_export_stop() {
206
-		return '<p>' . __('Export your contact list to a CSV file.', 'event_espresso') . '</p>';
206
+		return '<p>'.__('Export your contact list to a CSV file.', 'event_espresso').'</p>';
207 207
 	}
208 208
 
209 209
 }
210 210
\ No newline at end of file
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.
admin_pages/registrations/help_tours/Event_Checkin_Help_Tour.class.php 2 patches
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	protected function _set_tour_properties() {
33 33
 		$this->_label = __('Event Check-in Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
34
+		if (isset($this->_req_data['event_id']))
35 35
 			$this->_slug = 'event-checkin-overview-joyride';
36 36
 		else
37 37
 			$this->_slug = 'all-event-checkin-overview-joyride';
@@ -183,73 +183,73 @@  discard block
 block discarded – undo
183 183
 
184 184
 
185 185
 	protected function _start() {
186
-		$content = '<h3>' . __('Event Check-in', 'event_espresso') . '</h3>';
187
-		if ( isset( $this->_req_data['event_id'] ) ) {
188
-			$content .= '<p>' . __('This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', 'event_espresso') . '</p>';
186
+		$content = '<h3>'.__('Event Check-in', 'event_espresso').'</h3>';
187
+		if (isset($this->_req_data['event_id'])) {
188
+			$content .= '<p>'.__('This tour of the Event Check-in page will go over different areas of the screen to help you understand what they are used for.<br /><br /> Note: You are currently viewing the check-in for a specific event so you can toggle the check-in status for attendees.', 'event_espresso').'</p>';
189 189
 		} else {
190
-			$content .= '<p>' . __('This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', 'event_espresso') . '</p>';
190
+			$content .= '<p>'.__('This tour of the event check-in page will go over different areas of the screen to help you understand what they are used for. <br /><br /> Note: You must select an event from the dropdown menu before you can toggle the check-in status for an attendee.', 'event_espresso').'</p>';
191 191
 		}
192 192
 		return $content;
193 193
 	}
194 194
 
195 195
 	protected function _reg_count_stop() {
196
-		return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
196
+		return '<p>'.__('View registration number.', 'event_espresso').'</p>';
197 197
 	}
198 198
 
199 199
 	protected function _attendee_name_stop() {
200
-		return '<p>' . __('View name of registrant. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
200
+		return '<p>'.__('View name of registrant. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
201 201
 	}
202 202
 
203 203
 	protected function _attendee_email_stop() {
204
-		return '<p>' . __('View email address for a registrant.', 'event_espresso') . '</p>';
204
+		return '<p>'.__('View email address for a registrant.', 'event_espresso').'</p>';
205 205
 	}
206 206
 
207 207
 	protected function _reg_date_stop() {
208
-		return '<p>' . __('View registration date. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
208
+		return '<p>'.__('View registration date. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
209 209
 	}
210 210
 
211 211
 	protected function _reg_code_stop() {
212
-		return '<p>' . __('View registration code. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
212
+		return '<p>'.__('View registration code. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
213 213
 	}
214 214
 
215 215
 	protected function _reg_final_price_stop() {
216
-		return '<p>' . __('View price for ticket.', 'event_espresso') . '</p>';
216
+		return '<p>'.__('View price for ticket.', 'event_espresso').'</p>';
217 217
 	}
218 218
 
219 219
 	protected function _txn_paid_stop() {
220
-		return '<p>' . __('View if registrant has paid for ticket.', 'event_espresso') . '</p>';
220
+		return '<p>'.__('View if registrant has paid for ticket.', 'event_espresso').'</p>';
221 221
 	}
222 222
 
223 223
 	protected function _txn_total_stop() {
224
-		return '<p>' . __('View total amount paid.', 'event_espresso') . '</p>';
224
+		return '<p>'.__('View total amount paid.', 'event_espresso').'</p>';
225 225
 	}
226 226
 
227 227
 	protected function _prc_name_stop() {
228
-		return '<p>' . __('View type of ticket.', 'event_espresso') . '</p>';
228
+		return '<p>'.__('View type of ticket.', 'event_espresso').'</p>';
229 229
 	}
230 230
 
231 231
 	protected function _actions_stop() {
232
-		return '<p>' . __('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso') . '</p>';
232
+		return '<p>'.__('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso').'</p>';
233 233
 	}
234 234
 
235 235
 	protected function _legend_stop() {
236
-		return '<p>' . __('This is the legend that describes the different check-in statuses. Also shows available status for registrations.', 'event_espresso') . '</p>';
236
+		return '<p>'.__('This is the legend that describes the different check-in statuses. Also shows available status for registrations.', 'event_espresso').'</p>';
237 237
 	}
238 238
 	
239 239
 	protected function _bulkactions_stop() {
240
-		return '<p>' . __('Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', 'event_espresso') . '</p>';
240
+		return '<p>'.__('Perform a bulk action to multiple registrations (only available when viewing check-in for a specific event).', 'event_espresso').'</p>';
241 241
 	}
242 242
 
243 243
 	protected function _event_selector_stop() {
244
-		return '<p>' . __('Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', 'event_espresso') . '</p>';
244
+		return '<p>'.__('Select an event from this dropdown and click the filter button to see the check-in registration list for a specific event. You will then be able to toggle the check-in status for a registration.', 'event_espresso').'</p>';
245 245
 	}
246 246
 
247 247
 	protected function _dtt_selector_stop() {
248
-		return '<p>' . __('This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', 'event_espresso') . '</p>';
248
+		return '<p>'.__('This dropdown shows you the date and time that a displayed registration is attached to. You can switch to a different event by selecting another date and clicking on the filter button. You can also switch out of this view by clicking on the reset filters button.', 'event_espresso').'</p>';
249 249
 	}
250 250
 
251 251
 	protected function _search_stop() {
252
-		return '<p>' . __('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso') . '</p>';
252
+		return '<p>'.__('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso').'</p>';
253 253
 	}
254 254
 
255 255
 }
256 256
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 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
@@ -31,10 +32,11 @@  discard block
 block discarded – undo
31 32
 
32 33
 	protected function _set_tour_properties() {
33 34
 		$this->_label = __('Event Check-in Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
35
-			$this->_slug = 'event-checkin-overview-joyride';
36
-		else
37
-			$this->_slug = 'all-event-checkin-overview-joyride';
35
+		if ( isset( $this->_req_data['event_id'] ) ) {
36
+					$this->_slug = 'event-checkin-overview-joyride';
37
+		} else {
38
+					$this->_slug = 'all-event-checkin-overview-joyride';
39
+		}
38 40
 	}
39 41
 
40 42
 
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Details_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 /**
@@ -99,32 +99,32 @@  discard block
 block discarded – undo
99 99
 
100 100
 
101 101
 	protected function _start() {
102
-		$content = '<h3>' . __('Registration Details', 'event_espresso') . '</h3>';
103
-		$content .= '<p>' . __('This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
102
+		$content = '<h3>'.__('Registration Details', 'event_espresso').'</h3>';
103
+		$content .= '<p>'.__('This tour of the Registration Details page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
104 104
 		return $content;
105 105
 	}
106 106
 
107 107
 	protected function _reg_date_title() {
108
-		return '<p>' . __('This is the date that the registration occurred on.') . '</p>';
108
+		return '<p>'.__('This is the date that the registration occurred on.').'</p>';
109 109
 	}
110 110
 	
111 111
 	protected function _reg_details_stop() {
112
-		return '<p>' . __('The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', 'event_espresso') . '</p>';
112
+		return '<p>'.__('The buttons below allow you to perform an action with a registration. The options are Approved, Not Approved, Declined, and Cancelled.', 'event_espresso').'</p>';
113 113
 	}
114 114
 
115 115
 	protected function _reg_details_table() {
116
-		return '<p>' . __('The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', 'event_espresso') . '</p>';
116
+		return '<p>'.__('The registration items area displays various information including Line Item ID, Event Name, Event Date, Ticket Option, Price, Quantity, Line Total, Sales Tax, and the Grand Total.', 'event_espresso').'</p>';
117 117
 	}
118 118
 
119 119
 	protected function _display_additional_info_stop() {
120
-		return '<p>' . __('You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', 'event_espresso') . '</p>';
120
+		return '<p>'.__('You can view additional information about the registration by clicking on the link below. Examples of available information includes Registration ID, IP Address, and User Agent.', 'event_espresso').'</p>';
121 121
 	}
122 122
 
123 123
 	protected function _edit_reg_question_stop() {
124
-		return '<p>' . __('View the answers to your custom questions below.', 'event_espresso') . '</p>';
124
+		return '<p>'.__('View the answers to your custom questions below.', 'event_espresso').'</p>';
125 125
 	}
126 126
 
127 127
 	protected function _attendee_details_stop() {
128
-		return '<p>' . __('View details on the registrant attached to this registration.', 'event_espresso') . '</p>';
128
+		return '<p>'.__('View details on the registrant attached to this registration.', 'event_espresso').'</p>';
129 129
 	}
130 130
 }
131 131
\ No newline at end of file
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.
registrations/help_tours/Registration_Overview_Help_Tour.class.php 2 patches
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 /**
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 	protected function _set_tour_properties() {
33 33
 		$this->_label = __('Registrations Overview Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
34
+		if (isset($this->_req_data['event_id']))
35 35
 			$this->_slug = 'registration-per-event-overview-joyride';
36 36
 		else
37 37
 			$this->_slug = 'registration-overview-joyride';
@@ -174,69 +174,69 @@  discard block
 block discarded – undo
174 174
 
175 175
 
176 176
 	protected function _start() {
177
-		$content = '<h3>' . __('Registration Overview', 'event_espresso') . '</h3>';
178
-		if ( isset( $this->_req_data['event_id'] ) ) {
179
-			$content .= '<p>' . __('An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.', 'event_espresso') . '</p>';
177
+		$content = '<h3>'.__('Registration Overview', 'event_espresso').'</h3>';
178
+		if (isset($this->_req_data['event_id'])) {
179
+			$content .= '<p>'.__('An introduction to the Registration Overview page for a single event. This view is pretty much the same as the default overview registration page except you are only seeing registrations for a specific event.  There are also some changes to the available columns in this view.', 'event_espresso').'</p>';
180 180
 		} else {
181
-			$content .= '<p>' . __('This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
181
+			$content .= '<p>'.__('This tour of the Registration Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
182 182
 		}
183 183
 		return $content;
184 184
 	}
185 185
 
186 186
 	protected function _reg_id_stop() {
187
-		return '<p>' . __('View the registration ID. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
187
+		return '<p>'.__('View the registration ID. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
188 188
 	}
189 189
 
190 190
 	protected function _reg_count_stop() {
191
-		return '<p>' . __('View registration number.', 'event_espresso') . '</p>';
191
+		return '<p>'.__('View registration number.', 'event_espresso').'</p>';
192 192
 	}
193 193
 
194 194
 	protected function _attendee_name_stop() {
195
-		return '<p>' . __('View the name of the registrant. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
195
+		return '<p>'.__('View the name of the registrant. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
196 196
 	}
197 197
 
198 198
 	protected function _reg_date_stop() {
199
-		return '<p>' . __('View registration date. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
199
+		return '<p>'.__('View registration date. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
200 200
 	}
201 201
 
202 202
 	protected function _event_name_stop() {
203
-		return '<p>' . __('View the name of the event. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
203
+		return '<p>'.__('View the name of the event. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
204 204
 	}
205 205
 
206 206
 	protected function _dtt_evt_start_stop() {
207
-		return '<p>' . __('View the date of the event. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
207
+		return '<p>'.__('View the date of the event. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
208 208
 	}
209 209
 
210 210
 	protected function _reg_code_stop() {
211
-		return '<p>' . __('View registration code for a registrant.', 'event_espresso') . '</p>';
211
+		return '<p>'.__('View registration code for a registrant.', 'event_espresso').'</p>';
212 212
 	}
213 213
 
214 214
 	protected function _txn_total_stop() {
215
-		return '<p>' . __('View price of registration.', 'event_espresso') . '</p>';
215
+		return '<p>'.__('View price of registration.', 'event_espresso').'</p>';
216 216
 	}
217 217
 
218 218
 	protected function _actions_stop() {
219
-		return '<p>' . __('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso') . '</p>';
219
+		return '<p>'.__('Perform an action to a registration. See legend in bottom left corner.', 'event_espresso').'</p>';
220 220
 	}
221 221
 
222 222
 	protected function _legend_stop() {
223
-		return '<p>' . __('This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', 'event_espresso') . '</p>';
223
+		return '<p>'.__('This is the legend that describes the actions available in the actions column. Also shows available statuses for a registration.', 'event_espresso').'</p>';
224 224
 	}
225 225
 
226 226
 	protected function _views_stop() {
227
-		return '<p>' . __('You can select different views by time period or look at registrations which have been moved to the trash.') . '</p>';
227
+		return '<p>'.__('You can select different views by time period or look at registrations which have been moved to the trash.').'</p>';
228 228
 	}
229 229
 
230 230
 	protected function _bulkactions_stop() {
231
-		return '<p>' . __('Perform a bulk action to multiple registrations.', 'event_espresso') . '</p>';
231
+		return '<p>'.__('Perform a bulk action to multiple registrations.', 'event_espresso').'</p>';
232 232
 	}
233 233
 
234 234
 	protected function _stop_about_filters() {
235
-		return '<p>' . __('Registrations can be filtered by date, categories, or status.', 'event_espresso') . '</p>';
235
+		return '<p>'.__('Registrations can be filtered by date, categories, or status.', 'event_espresso').'</p>';
236 236
 	}
237 237
 	
238 238
 	protected function _search_stop() {
239
-		return '<p>' . __('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso') . '</p>';
239
+		return '<p>'.__('Search through registrations. The following sources will be searched: Event Name, Event Description, First Name, Last Name, Biography, Email Address, Address, Comments, Notes, Registration Final Price, Registration Code, Registration Group Size, Ticket Name, and Ticket Description.', 'event_espresso').'</p>';
240 240
 	}
241 241
 
242 242
 }
243 243
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 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
@@ -31,10 +32,11 @@  discard block
 block discarded – undo
31 32
 
32 33
 	protected function _set_tour_properties() {
33 34
 		$this->_label = __('Registrations Overview Tour', 'event_espresso');
34
-		if ( isset( $this->_req_data['event_id'] ) )
35
-			$this->_slug = 'registration-per-event-overview-joyride';
36
-		else
37
-			$this->_slug = 'registration-overview-joyride';
35
+		if ( isset( $this->_req_data['event_id'] ) ) {
36
+					$this->_slug = 'registration-per-event-overview-joyride';
37
+		} else {
38
+					$this->_slug = 'registration-overview-joyride';
39
+		}
38 40
 	}
39 41
 
40 42
 
Please login to merge, or discard this patch.
registrations/help_tours/Registration_Reports_Help_Tour.class.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 /**
@@ -60,17 +60,17 @@  discard block
 block discarded – undo
60 60
 	}
61 61
 
62 62
 	protected function _start() {
63
-		$content = '<h3>' . __('Registration Reports', 'event_espresso') . '</h3>';
64
-		$content .= '<p>' . __('This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
63
+		$content = '<h3>'.__('Registration Reports', 'event_espresso').'</h3>';
64
+		$content .= '<p>'.__('This tour of the Registration Reports page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
65 65
 		return $content;
66 66
 	}
67 67
 
68 68
 	protected function _reg_per_day_report_stop() {
69
-		return '<p>' . __('This graph shows registrations for each day.', 'event_espresso') . '</p>';
69
+		return '<p>'.__('This graph shows registrations for each day.', 'event_espresso').'</p>';
70 70
 	}
71 71
 
72 72
 	protected function _reg_per_event_report_stop() {
73
-		return '<p>' . __('This graph shows registrations for each event.', 'event_espresso') . '</p>';
73
+		return '<p>'.__('This graph shows registrations for each event.', 'event_espresso').'</p>';
74 74
 	}
75 75
 
76 76
 }
77 77
\ No newline at end of file
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.
admin_pages/registrations/help_tours/Registration_View_Help_Tour.class.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 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
 /**
@@ -97,39 +97,39 @@  discard block
 block discarded – undo
97 97
 
98 98
 
99 99
 	protected function _start() {
100
-		$content = '<h3>' . __('Welcome to the Registration Details page!', 'event_espresso') . '</h3>';
101
-		$content .= '<p>' . __('An introduction to the registration details page', 'event_espresso') . '</p>';
100
+		$content = '<h3>'.__('Welcome to the Registration Details page!', 'event_espresso').'</h3>';
101
+		$content .= '<p>'.__('An introduction to the registration details page', 'event_espresso').'</p>';
102 102
 		return $content;
103 103
 	}
104 104
 
105 105
 
106 106
 	protected function _reg_date_title() {
107
-		return '<p>' . __('About the reg date') . '</p>';
107
+		return '<p>'.__('About the reg date').'</p>';
108 108
 	}
109 109
 
110 110
 	
111 111
 
112 112
 	protected function _reg_details_stop() {
113
-		return '<p>' . __('About the reg details area (pending, buttons they can push and what happens)', 'event_espresso') . '</p>';
113
+		return '<p>'.__('About the reg details area (pending, buttons they can push and what happens)', 'event_espresso').'</p>';
114 114
 	}
115 115
 
116 116
 
117 117
 	protected function _reg_details_table() {
118
-		return '<p>' . __('about the registration details metabox', 'event_espresso') . '</p>';
118
+		return '<p>'.__('about the registration details metabox', 'event_espresso').'</p>';
119 119
 	}
120 120
 
121 121
 
122 122
 	protected function _display_additional_info_stop() {
123
-		return '<p>' . __('what happens when they click this link?  What\'s it here for', 'event_espresso') . '</p>';
123
+		return '<p>'.__('what happens when they click this link?  What\'s it here for', 'event_espresso').'</p>';
124 124
 	}
125 125
 
126 126
 
127 127
 	protected function _attendee_details_stop() {
128
-		return '<p>' . __('details on the registrant attached to this registration', 'event_espresso') . '</p>';
128
+		return '<p>'.__('details on the registrant attached to this registration', 'event_espresso').'</p>';
129 129
 	}
130 130
 
131 131
 
132 132
 	protected function _edit_reg_question_stop() {
133
-		return '<p>' . __('info about how they can edit the questions related to this registration here', 'event_espresso') . '</p>';
133
+		return '<p>'.__('info about how they can edit the questions related to this registration here', 'event_espresso').'</p>';
134 134
 	}
135 135
 }
136 136
\ No newline at end of file
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.
admin_pages/registrations/qtips/Registration_List_Table_Tips.lib.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
 				'content' => $this->_registration_trash_message(),
37 37
 				),
38 38
 			1 => array(
39
-				'content_id' => 'registration-status-' . EEM_Registration::status_id_approved,
40
-				'target' => '.reg-status-' . EEM_Registration::status_id_approved,
39
+				'content_id' => 'registration-status-'.EEM_Registration::status_id_approved,
40
+				'target' => '.reg-status-'.EEM_Registration::status_id_approved,
41 41
 				'content' => $this->_registration_status_legend(EEM_Registration::status_id_approved),
42 42
 				'options' => array(
43 43
 					'position' => array(
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 					)
47 47
 				),
48 48
 			2 => array(
49
-				'content_id' => 'registration-status-' . EEM_Registration::status_id_pending_payment,
50
-				'target' => '.reg-status-' . EEM_Registration::status_id_pending_payment,
49
+				'content_id' => 'registration-status-'.EEM_Registration::status_id_pending_payment,
50
+				'target' => '.reg-status-'.EEM_Registration::status_id_pending_payment,
51 51
 				'content' => $this->_registration_status_legend(EEM_Registration::status_id_pending_payment),
52 52
 				'options' => array(
53 53
 					'position' => array(
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
 					)
57 57
 				),
58 58
 			3 => array(
59
-				'content_id' => 'registration-status-' . EEM_Registration::status_id_not_approved,
60
-				'target' => '.reg-status-' . EEM_Registration::status_id_not_approved,
59
+				'content_id' => 'registration-status-'.EEM_Registration::status_id_not_approved,
60
+				'target' => '.reg-status-'.EEM_Registration::status_id_not_approved,
61 61
 				'content' => $this->_registration_status_legend(EEM_Registration::status_id_not_approved),
62 62
 				'options' => array(
63 63
 					'position' => array(
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 					)
67 67
 				),
68 68
 			4 => array(
69
-				'content_id' => 'registration-status-' . EEM_Registration::status_id_declined,
70
-				'target' => '.reg-status-' . EEM_Registration::status_id_declined,
69
+				'content_id' => 'registration-status-'.EEM_Registration::status_id_declined,
70
+				'target' => '.reg-status-'.EEM_Registration::status_id_declined,
71 71
 				'content' => $this->_registration_status_legend(EEM_Registration::status_id_declined),
72 72
 				'options' => array(
73 73
 					'position' => array(
@@ -76,8 +76,8 @@  discard block
 block discarded – undo
76 76
 					)
77 77
 				),
78 78
 			5 => array(
79
-				'content_id' => 'registration-status-' . EEM_Registration::status_id_cancelled,
80
-				'target' => '.reg-status-' . EEM_Registration::status_id_cancelled,
79
+				'content_id' => 'registration-status-'.EEM_Registration::status_id_cancelled,
80
+				'target' => '.reg-status-'.EEM_Registration::status_id_cancelled,
81 81
 				'content' => $this->_registration_status_legend(EEM_Registration::status_id_cancelled),
82 82
 				'options' => array(
83 83
 					'position' => array(
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
 
93 93
 	private function _registration_trash_message() {
94
-		return '<p>' . __('This lock-icon means that this registration cannot be trashed.  Registrations that belong to a transaction that has payments cannot be trashed.  If you wish to trash this registration then you must delete all payments attached to the related transaction first.', 'event_espresso') . '</p>';
94
+		return '<p>'.__('This lock-icon means that this registration cannot be trashed.  Registrations that belong to a transaction that has payments cannot be trashed.  If you wish to trash this registration then you must delete all payments attached to the related transaction first.', 'event_espresso').'</p>';
95 95
 	}
96 96
 
97 97
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	 * @param  EEM_Registration constant $status What status is set (by class)
104 104
 	 * @return string         The status legend with the related status highlighted
105 105
 	 */
106
-	private function _registration_status_legend( $status ) {
106
+	private function _registration_status_legend($status) {
107 107
 
108 108
 		$status_array = array(
109 109
 			'approved_status' => EEM_Registration::status_id_approved,
@@ -113,6 +113,6 @@  discard block
 block discarded – undo
113 113
 			'cancelled_status' => EEM_Registration::status_id_cancelled
114 114
 			);
115 115
 
116
-		return EEH_Template::status_legend( $status_array, $status );
116
+		return EEH_Template::status_legend($status_array, $status);
117 117
 	}
118 118
 }
119 119
\ No newline at end of file
Please login to merge, or discard this patch.