Completed
Branch FET-9593-collection-loader-man... (8bd595)
by
unknown
328:26 queued 314:10
created
payment_methods/Aim/help_tabs/payment_methods_overview_aim.help_tab.php 1 patch
Spacing   +5 added lines, -5 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
 <p><strong><?php _e('Authorize.net AIM Settings', 'event_espresso'); ?></strong></p>
9 9
 <ul>
@@ -28,16 +28,16 @@  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
-	<strong><?php _e( 'Server', 'event_espresso');?></strong>
40
-	<?php _e( 'Use this setting to change the server where Authorize.net AIM requests are sent. Change this to "Authorize.net/Akamai" before June 30th 2016 to verify your server wil work with Authorize.net\'s servers which will be in use after that date.', 'event_espresso' );?>
39
+	<strong><?php _e('Server', 'event_espresso'); ?></strong>
40
+	<?php _e('Use this setting to change the server where Authorize.net AIM requests are sent. Change this to "Authorize.net/Akamai" before June 30th 2016 to verify your server wil work with Authorize.net\'s servers which will be in use after that date.', 'event_espresso'); ?>
41 41
 </li>
42 42
 <li>
43 43
 <strong><?php _e('Button Image URL', 'event_espresso'); ?></strong><br />
Please login to merge, or discard this patch.
core/db_models/EEM_Transaction.model.php 1 patch
Spacing   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {exit('No direct script access allowed');}
2
-require_once ( EE_MODELS . 'EEM_Base.model.php' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {exit('No direct script access allowed'); }
2
+require_once (EE_MODELS.'EEM_Base.model.php');
3 3
 /**
4 4
  *
5 5
  * Transaction Model
@@ -67,36 +67,36 @@  discard block
 block discarded – undo
67 67
 	 * @return EEM_Transaction
68 68
 	 * @throws \EE_Error
69 69
 	 */
70
-	protected function __construct( $timezone ) {
71
-		$this->singular_item = __('Transaction','event_espresso');
72
-		$this->plural_item = __('Transactions','event_espresso');
70
+	protected function __construct($timezone) {
71
+		$this->singular_item = __('Transaction', 'event_espresso');
72
+		$this->plural_item = __('Transactions', 'event_espresso');
73 73
 
74 74
 		$this->_tables = array(
75
-			'TransactionTable'=>new EE_Primary_Table('esp_transaction','TXN_ID')
75
+			'TransactionTable'=>new EE_Primary_Table('esp_transaction', 'TXN_ID')
76 76
 		);
77 77
 		$this->_fields = array(
78 78
 			'TransactionTable'=>array(
79
-				'TXN_ID'=>new EE_Primary_Key_Int_Field('TXN_ID', __('Transaction ID','event_espresso')),
80
-				'TXN_timestamp'=>new EE_Datetime_Field('TXN_timestamp', __('date when transaction was created','event_espresso'), false, time(), $timezone ),
81
-				'TXN_total'=>new EE_Money_Field('TXN_total', __('Total value of Transaction','event_espresso'), false, 0),
82
-				'TXN_paid'=>new EE_Money_Field('TXN_paid', __('Amount paid towards transaction to date','event_espresso'), false, 0),
83
-				'STS_ID'=>new EE_Foreign_Key_String_Field('STS_ID', __('Status ID','event_espresso'), false, EEM_Transaction::failed_status_code, 'Status'),
84
-				'TXN_session_data'=>new EE_Serialized_Text_Field('TXN_session_data', __('Serialized session data','event_espresso'), true, ''),
85
-				'TXN_hash_salt'=>new EE_Plain_Text_Field('TXN_hash_salt', __('Transaction Hash Salt','event_espresso'), true, ''),
79
+				'TXN_ID'=>new EE_Primary_Key_Int_Field('TXN_ID', __('Transaction ID', 'event_espresso')),
80
+				'TXN_timestamp'=>new EE_Datetime_Field('TXN_timestamp', __('date when transaction was created', 'event_espresso'), false, time(), $timezone),
81
+				'TXN_total'=>new EE_Money_Field('TXN_total', __('Total value of Transaction', 'event_espresso'), false, 0),
82
+				'TXN_paid'=>new EE_Money_Field('TXN_paid', __('Amount paid towards transaction to date', 'event_espresso'), false, 0),
83
+				'STS_ID'=>new EE_Foreign_Key_String_Field('STS_ID', __('Status ID', 'event_espresso'), false, EEM_Transaction::failed_status_code, 'Status'),
84
+				'TXN_session_data'=>new EE_Serialized_Text_Field('TXN_session_data', __('Serialized session data', 'event_espresso'), true, ''),
85
+				'TXN_hash_salt'=>new EE_Plain_Text_Field('TXN_hash_salt', __('Transaction Hash Salt', 'event_espresso'), true, ''),
86 86
 				'PMD_ID'=>new EE_Foreign_Key_Int_Field('PMD_ID', __("Last Used Payment Method", 'event_espresso'), true, NULL, 'Payment_Method'),
87
-				'TXN_reg_steps' => new EE_Serialized_Text_Field( 'TXN_reg_steps', __( 'Registration Steps', 'event_espresso' ), FALSE, array() ),
87
+				'TXN_reg_steps' => new EE_Serialized_Text_Field('TXN_reg_steps', __('Registration Steps', 'event_espresso'), FALSE, array()),
88 88
 			)
89 89
 		);
90 90
 		$this->_model_relations = array(
91 91
 			'Registration'=>new EE_Has_Many_Relation(),
92 92
 			'Payment'=>new EE_Has_Many_Relation(),
93 93
 			'Status'=>new EE_Belongs_To_Relation(),
94
-			'Line_Item'=>new EE_Has_Many_Relation(false),//you can delete a transaction without needing to delete its line items
94
+			'Line_Item'=>new EE_Has_Many_Relation(false), //you can delete a transaction without needing to delete its line items
95 95
 			'Payment_Method'=>new EE_Belongs_To_Relation(),
96 96
 			'Message' => new EE_Has_Many_Relation()
97 97
 		);
98 98
 		$this->_model_chain_to_wp_user = 'Registration.Event';
99
-		parent::__construct( $timezone );
99
+		parent::__construct($timezone);
100 100
 
101 101
 	}
102 102
 
@@ -107,22 +107,22 @@  discard block
 block discarded – undo
107 107
 	 * @param string $period
108 108
 	 * @return \stdClass[]
109 109
 	 */
110
-	public function get_revenue_per_day_report( $period = '-1 month' ) {
111
-		$sql_date = $this->convert_datetime_for_query( 'TXN_timestamp', date( 'Y-m-d H:i:s', strtotime( $period ) ), 'Y-m-d H:i:s', 'UTC' );
110
+	public function get_revenue_per_day_report($period = '-1 month') {
111
+		$sql_date = $this->convert_datetime_for_query('TXN_timestamp', date('Y-m-d H:i:s', strtotime($period)), 'Y-m-d H:i:s', 'UTC');
112 112
 
113
-		$query_interval = EEH_DTT_Helper::get_sql_query_interval_for_offset( $this->get_timezone(), 'TXN_timestamp' );
113
+		$query_interval = EEH_DTT_Helper::get_sql_query_interval_for_offset($this->get_timezone(), 'TXN_timestamp');
114 114
 		return $this->_get_all_wpdb_results(
115 115
 			array(
116 116
 				array(
117
-					'TXN_timestamp' => array( '>=', $sql_date )
117
+					'TXN_timestamp' => array('>=', $sql_date)
118 118
 				),
119 119
 				'group_by' => 'txnDate',
120
-				'order_by' => array( 'TXN_timestamp' => 'ASC' )
120
+				'order_by' => array('TXN_timestamp' => 'ASC')
121 121
 			),
122 122
 			OBJECT,
123 123
 			array(
124
-				'txnDate' => array( 'DATE(' . $query_interval . ')', '%s' ),
125
-				'revenue' => array( 'SUM(TransactionTable.TXN_paid)', '%d' )
124
+				'txnDate' => array('DATE('.$query_interval.')', '%s'),
125
+				'revenue' => array('SUM(TransactionTable.TXN_paid)', '%d')
126 126
 			)
127 127
 		);
128 128
 	}
@@ -137,18 +137,18 @@  discard block
 block discarded – undo
137 137
 	 * @throws \EE_Error
138 138
 	 * @return mixed
139 139
 	 */
140
-	public function get_revenue_per_event_report( $period = '-1 month' ) {
140
+	public function get_revenue_per_event_report($period = '-1 month') {
141 141
 		global $wpdb;
142
-		$transaction_table = $wpdb->prefix . 'esp_transaction';
143
-		$registration_table = $wpdb->prefix . 'esp_registration';
142
+		$transaction_table = $wpdb->prefix.'esp_transaction';
143
+		$registration_table = $wpdb->prefix.'esp_registration';
144 144
 		$event_table = $wpdb->posts;
145
-		$payment_table = $wpdb->prefix . 'esp_payment';
146
-		$sql_date = date( 'Y-m-d H:i:s', strtotime( $period ) );
145
+		$payment_table = $wpdb->prefix.'esp_payment';
146
+		$sql_date = date('Y-m-d H:i:s', strtotime($period));
147 147
 		$approved_payment_status = EEM_Payment::status_id_approved;
148 148
 		$extra_event_on_join = '';
149 149
 		//exclude events not authored by user if permissions in effect
150
-		if ( ! EE_Registry::instance()->CAP->current_user_can( 'ee_read_others_registrations', 'reg_per_event_report' ) ) {
151
-			$extra_event_on_join = ' AND Event.post_author = ' . get_current_user_id();
150
+		if ( ! EE_Registry::instance()->CAP->current_user_can('ee_read_others_registrations', 'reg_per_event_report')) {
151
+			$extra_event_on_join = ' AND Event.post_author = '.get_current_user_id();
152 152
 		}
153 153
 
154 154
 		return $wpdb->get_results(
@@ -188,10 +188,10 @@  discard block
 block discarded – undo
188 188
 	 * @param string $reg_url_link
189 189
 	 * @return EE_Transaction
190 190
 	 */
191
-	public function get_transaction_from_reg_url_link( $reg_url_link = '' ){
192
-		return $this->get_one( array(
191
+	public function get_transaction_from_reg_url_link($reg_url_link = '') {
192
+		return $this->get_one(array(
193 193
 			array(
194
-				'Registration.REG_url_link' => ! empty( $reg_url_link ) ? $reg_url_link : EE_Registry::instance()->REQ->get( 'e_reg_url_link', '' )
194
+				'Registration.REG_url_link' => ! empty($reg_url_link) ? $reg_url_link : EE_Registry::instance()->REQ->get('e_reg_url_link', '')
195 195
 			)
196 196
 		));
197 197
 	}
@@ -208,16 +208,16 @@  discard block
 block discarded – undo
208 208
 	 * @return boolean
209 209
 	 * @throws \EE_Error
210 210
 	 */
211
-	public function update_based_on_payments( $transaction_obj_or_id, $save_txn = TRUE ){
211
+	public function update_based_on_payments($transaction_obj_or_id, $save_txn = TRUE) {
212 212
 		EE_Error::doing_it_wrong(
213
-			__CLASS__ . '::' . __FUNCTION__,
214
-			sprintf( __( 'This method is deprecated. Please use "%s" instead', 'event_espresso' ), 'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()' ),
213
+			__CLASS__.'::'.__FUNCTION__,
214
+			sprintf(__('This method is deprecated. Please use "%s" instead', 'event_espresso'), 'EE_Transaction_Processor::update_transaction_and_registrations_after_checkout_or_payment()'),
215 215
 			'4.6.0'
216 216
 		);
217 217
 		/** @type EE_Transaction_Processor $transaction_processor */
218
-		$transaction_processor = EE_Registry::instance()->load_class( 'Transaction_Processor' );
218
+		$transaction_processor = EE_Registry::instance()->load_class('Transaction_Processor');
219 219
 		return $transaction_processor->update_transaction_and_registrations_after_checkout_or_payment(
220
-			$this->ensure_is_obj( $transaction_obj_or_id )
220
+			$this->ensure_is_obj($transaction_obj_or_id)
221 221
 		);
222 222
 	}
223 223
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 			array(
250 250
 				0 => array(
251 251
 					'STS_ID' => EEM_Transaction::failed_status_code,
252
-					'TXN_timestamp' => array( '<', time() - $time_to_leave_alone )
252
+					'TXN_timestamp' => array('<', time() - $time_to_leave_alone)
253 253
 				)
254 254
 			),
255 255
 			$time_to_leave_alone
@@ -262,29 +262,29 @@  discard block
 block discarded – undo
262 262
 		 */
263 263
 		$txn_ids = apply_filters(
264 264
 			'FHEE__EEM_Transaction__delete_junk_transactions__transaction_ids_to_delete',
265
-			EEM_Transaction::instance()->get_col( $ids_query, 'TXN_ID' ),
265
+			EEM_Transaction::instance()->get_col($ids_query, 'TXN_ID'),
266 266
 			$time_to_leave_alone
267 267
 		);
268 268
 		//now that we have the ids to delete
269
-		if ( ! empty( $txn_ids ) && is_array( $txn_ids ) ) {
269
+		if ( ! empty($txn_ids) && is_array($txn_ids)) {
270 270
 			// first, make sure these TXN's are removed the "ee_locked_transactions" array
271
-			EEM_Transaction::unset_locked_transactions( $txn_ids );
271
+			EEM_Transaction::unset_locked_transactions($txn_ids);
272 272
 			// let's get deletin'...
273 273
 			// Why no wpdb->prepare?  Because the data is trusted.
274 274
 			// We got the ids from the original query to get them FROM
275 275
 			// the db (which is sanitized) so no need to prepare them again.
276
-			$query   = '
276
+			$query = '
277 277
 				DELETE
278
-				FROM ' . $this->table() . '
278
+				FROM ' . $this->table().'
279 279
 				WHERE
280
-					TXN_ID IN ( ' . implode( ",", $txn_ids ) . ')';
281
-			$deleted = $wpdb->query( $query );
280
+					TXN_ID IN ( ' . implode(",", $txn_ids).')';
281
+			$deleted = $wpdb->query($query);
282 282
 		}
283
-		if ( $deleted ) {
283
+		if ($deleted) {
284 284
 			/**
285 285
 			 * Allows code to do something after the transactions have been deleted.
286 286
 			 */
287
-			do_action( 'AHEE__EEM_Transaction__delete_junk_transactions__successful_deletion', $txn_ids );
287
+			do_action('AHEE__EEM_Transaction__delete_junk_transactions__successful_deletion', $txn_ids);
288 288
 		}
289 289
 		return $deleted;
290 290
 	}
@@ -295,17 +295,17 @@  discard block
 block discarded – undo
295 295
 	 * @param array $transaction_IDs
296 296
 	 * @return bool
297 297
 	 */
298
-	public static function unset_locked_transactions( array $transaction_IDs ) {
299
-		$locked_transactions = get_option( 'ee_locked_transactions', array() );
298
+	public static function unset_locked_transactions(array $transaction_IDs) {
299
+		$locked_transactions = get_option('ee_locked_transactions', array());
300 300
 		$update = false;
301
-		foreach ( $transaction_IDs as $TXN_ID ) {
302
-			if ( isset( $locked_transactions[ $TXN_ID ] ) ) {
303
-				unset( $locked_transactions[ $TXN_ID ] );
301
+		foreach ($transaction_IDs as $TXN_ID) {
302
+			if (isset($locked_transactions[$TXN_ID])) {
303
+				unset($locked_transactions[$TXN_ID]);
304 304
 				$update = true;
305 305
 			}
306 306
 		}
307
-		if ( $update ) {
308
-			update_option( 'ee_locked_transactions', $locked_transactions );
307
+		if ($update) {
308
+			update_option('ee_locked_transactions', $locked_transactions);
309 309
 		}
310 310
 		return $update;
311 311
 	}
Please login to merge, or discard this patch.
core/exceptions/InvalidDataTypeException.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\Core\Exceptions;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 
8 8
 
@@ -27,19 +27,19 @@  discard block
 block discarded – undo
27 27
 	 * @param int        $code
28 28
 	 * @param \Exception $previous
29 29
 	 */
30
-	public function __construct( $var_name, $variable, $expected, $message = '', $code = 0, \Exception $previous = null ) {
31
-		if ( empty( $message ) ) {
30
+	public function __construct($var_name, $variable, $expected, $message = '', $code = 0, \Exception $previous = null) {
31
+		if (empty($message)) {
32 32
 			$message = sprintf(
33 33
 				__(
34 34
 					'The supplied data for "%1$s" was %2$s, but %3$s was expected.',
35 35
 					'event_espresso'
36 36
 				),
37 37
 				$var_name,
38
-				$this->addIndefiniteArticle( gettype( $variable ) ),
39
-				$this->addIndefiniteArticle( $expected )
38
+				$this->addIndefiniteArticle(gettype($variable)),
39
+				$this->addIndefiniteArticle($expected)
40 40
 			);
41 41
 		}
42
-		parent::__construct( $message, $code, $previous );
42
+		parent::__construct($message, $code, $previous);
43 43
 	}
44 44
 
45 45
 
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 	 * @param $string
49 49
 	 * @return string
50 50
 	 */
51
-	protected function addIndefiniteArticle( $string ) {
52
-		return ( stripos( 'aeiou', $string[0] ) !== false ? 'an ' : 'a ' ) . $string;
51
+	protected function addIndefiniteArticle($string) {
52
+		return (stripos('aeiou', $string[0]) !== false ? 'an ' : 'a ').$string;
53 53
 	}
54 54
 }
55 55
 // End of file InvalidDataTypeException.php
Please login to merge, or discard this patch.
core/exceptions/InvalidClassException.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\Core\Exceptions;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 
8 8
 
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
 	 * @param int        $code
26 26
 	 * @param \Exception $previous
27 27
 	 */
28
-	public function __construct( $class_name, $message = '', $code = 0, \Exception $previous = null ) {
29
-		if ( empty( $message ) ) {
28
+	public function __construct($class_name, $message = '', $code = 0, \Exception $previous = null) {
29
+		if (empty($message)) {
30 30
 			$message = sprintf(
31
-				__( 'The "%1$s" Class is either missing or invalid.', 'event_espresso' ),
31
+				__('The "%1$s" Class is either missing or invalid.', 'event_espresso'),
32 32
 				$class_name
33 33
 			);
34 34
 		}
35
-		parent::__construct( $message, $code, $previous );
35
+		parent::__construct($message, $code, $previous);
36 36
 	}
37 37
 
38 38
 }
Please login to merge, or discard this patch.
core/exceptions/InvalidInterfaceException.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\Core\Exceptions;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 
8 8
 
@@ -26,14 +26,14 @@  discard block
 block discarded – undo
26 26
 	 * @param int        $code
27 27
 	 * @param \Exception $previous
28 28
 	 */
29
-	public function __construct( $interface_name, $message = '', $code = 0, \Exception $previous = null ) {
30
-		if ( empty( $message ) ) {
29
+	public function __construct($interface_name, $message = '', $code = 0, \Exception $previous = null) {
30
+		if (empty($message)) {
31 31
 			$message = sprintf(
32
-				__( 'The "%1$s" Interface is either missing or invalid.', 'event_espresso' ),
32
+				__('The "%1$s" Interface is either missing or invalid.', 'event_espresso'),
33 33
 				$interface_name
34 34
 			);
35 35
 		}
36
-		parent::__construct( $message, $code, $previous );
36
+		parent::__construct($message, $code, $previous);
37 37
 	}
38 38
 
39 39
 }
Please login to merge, or discard this patch.
core/exceptions/InvalidFilePathException.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\Core\Exceptions;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 
8 8
 
@@ -25,19 +25,19 @@  discard block
 block discarded – undo
25 25
 	 * @param int        $code
26 26
 	 * @param \Exception $previous
27 27
 	 */
28
-	public function __construct( $file_path, $message = '', $code = 0, \Exception $previous = null ) {
29
-		if ( empty( $message ) ) {
28
+	public function __construct($file_path, $message = '', $code = 0, \Exception $previous = null) {
29
+		if (empty($message)) {
30 30
 			$message = sprintf(
31 31
 				__(
32 32
 					'The "%1$s" file is either missing or could not be read due to permissions. Please ensure that the following path is correct and verify that the file permissions are correct:%2$s %3$s',
33 33
 					'event_espresso'
34 34
 				),
35
-				basename( $file_path ),
35
+				basename($file_path),
36 36
 				'<br />',
37 37
 				$file_path
38 38
 			);
39 39
 		}
40
-		parent::__construct( $message, $code, $previous );
40
+		parent::__construct($message, $code, $previous);
41 41
 	}
42 42
 
43 43
 }
Please login to merge, or discard this patch.
core/exceptions/InvalidIdentifierException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\Core\Exceptions;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 /**
8 8
  * Class InvalidIdentifierException
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 	  * @param int        $code
24 24
 	  * @param \Exception $previous
25 25
 	  */
26
-	 public function __construct( $actual, $expected, $message = '', $code = 0, \Exception $previous = null ) {
27
-		 if ( empty( $message ) ) {
26
+	 public function __construct($actual, $expected, $message = '', $code = 0, \Exception $previous = null) {
27
+		 if (empty($message)) {
28 28
 			 $message = sprintf(
29 29
 				 __(
30 30
 					 'The supplied identifier "%1$s" is invalid. A value like "%2$s" was expected.',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 				 $expected
35 35
 			 );
36 36
 		 }
37
-		 parent::__construct( $message, $code, $previous );
37
+		 parent::__construct($message, $code, $previous);
38 38
 	 }
39 39
 
40 40
  }
Please login to merge, or discard this patch.
core/exceptions/InvalidEntityException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace EventEspresso\Core\Exceptions;
3 3
 
4
-if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
5
-	exit( 'No direct script access allowed' );
4
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
5
+	exit('No direct script access allowed');
6 6
 }
7 7
 /**
8 8
  * Class InvalidIdentifierException
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 	  * @param int        $code
24 24
 	  * @param \Exception $previous
25 25
 	  */
26
-	 public function __construct( $actual, $expected, $message = '', $code = 0, \Exception $previous = null ) {
27
-		 if ( empty( $message ) ) {
26
+	 public function __construct($actual, $expected, $message = '', $code = 0, \Exception $previous = null) {
27
+		 if (empty($message)) {
28 28
 			 $message = sprintf(
29 29
 				 __(
30 30
 					 'The supplied identifier "%1$s" is invalid. A value like "%2$s" was expected.',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 				 $expected
35 35
 			 );
36 36
 		 }
37
-		 parent::__construct( $message, $code, $previous );
37
+		 parent::__construct($message, $code, $previous);
38 38
 	 }
39 39
 
40 40
  }
Please login to merge, or discard this patch.
core/middleware/EE_Detect_Login.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -26,20 +26,20 @@  discard block
 block discarded – undo
26 26
 	 * @param    EE_Response $response
27 27
 	 * @return    EE_Response
28 28
 	 */
29
-	public function handle_request( EE_Request $request, EE_Response $response ) {
29
+	public function handle_request(EE_Request $request, EE_Response $response) {
30 30
 		$this->_request = $request;
31 31
 		$this->_response = $response;
32 32
 		global $pagenow;
33 33
 		if (
34 34
 			in_array(
35 35
 				$pagenow,
36
-				array( 'wp-login.php', 'wp-register.php' )
36
+				array('wp-login.php', 'wp-register.php')
37 37
 			)
38
-			&& ! $request->get( 'ee_load_on_login' )
38
+			&& ! $request->get('ee_load_on_login')
39 39
 		) {
40 40
 			$this->_response->terminate_request();
41 41
 		}
42
-		$this->_response = $this->process_request_stack( $this->_request, $this->_response );
42
+		$this->_response = $this->process_request_stack($this->_request, $this->_response);
43 43
 		return $this->_response;
44 44
 	}
45 45
 
Please login to merge, or discard this patch.