Completed
Branch BETA-4.9-messages-queue-fixed (cf2209)
by
unknown
32:34 queued 17:09
created
caffeinated/admin/extend/events/help_tabs/import_page.help_tab.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,18 +2,18 @@
 block discarded – undo
2 2
 <p>
3 3
 <?php _e('The importer can be used to import event information into Event Espresso using a CSV file.', 'event_espresso'); ?>
4 4
 </p>
5
-<p><strong><?php _e("Importing from other Event Espresso 4 Sites", 'event_espresso');?></strong></p>
5
+<p><strong><?php _e("Importing from other Event Espresso 4 Sites", 'event_espresso'); ?></strong></p>
6 6
 <p>
7 7
 <?php _e('To import Event Espresso data from another Event Espresso 4 install, export a CSV file from the admin Events overview page, or anywhere you can generate a CSV export file from. Then upload that file here (regardless of what type of information was exported).', 'event_espresso'); ?>
8 8
 </p>
9 9
 <p>
10 10
 <?php _e('Note: its possible that data from the other site have the same IDs as data in this site. The importer recognizes that this data is from a different database and inserts new items for each item in the CSV file, regardless of whether its ID matches that of an item in this site\'s database or not. However, the importer also remembers the mapping from the old site\'s database to this site\'s database, and on subsequent CSV importers from that site, the data in this database will be updated instead of re-inserting new items.', 'event_espresso'); ?>
11 11
 </p>
12
-<p><strong><?php _e("Importing from this Site", 'event_espresso');?></strong></p>
13
-<p><?php _e("You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", 'event_espresso');?></p>
12
+<p><strong><?php _e("Importing from this Site", 'event_espresso'); ?></strong></p>
13
+<p><?php _e("You may want to export data from this site, modify it (or modify the database), and re-import it. When this is done, the importer recognizes that the data is from this site\'s database and updates the records (instead of inserting new items like it would have, had the CSV data been from a different site).", 'event_espresso'); ?></p>
14 14
 
15
-	<p><strong><?php _e("Notes about Generating your own CSV Import Files", "event_espresso");?></strong></p>
16
-	<p><?php _e("If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", "event_espresso");?></p>
17
-	<p><?php _e("The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", "event_espresso");?></p>
18
-	<p><?php _e("In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", "event_espresso");?></p>
19
-	<p><?php _e("Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", "event_espresso");?></p>
20 15
\ No newline at end of file
16
+	<p><strong><?php _e("Notes about Generating your own CSV Import Files", "event_espresso"); ?></strong></p>
17
+	<p><?php _e("If you think you could save time entering data into a CSV file, you can use the sample import file below. Note that creating your own CSV file is more complicated than in Event Espresso 3.1 because of the more advanced data structure, and so we recommend creating/editing your events using the normal web-interface.", "event_espresso"); ?></p>
18
+	<p><?php _e("The export file is just an export of an event, or if you do not have any events in your system, it will only contain column headers. Do not change those column headers. Add as many rows as you like. ", "event_espresso"); ?></p>
19
+	<p><?php _e("In the ID columns (columns ending in '_ID'), you should enter 'temporary IDs', which are unique numbers/words that identify that item, which can be used later when you want to refer to that item. (For example, if you assign an event's EVT_ID to be a temporary id of 'my-event-1', then use that same phrase 'my-event-1' to refer to that event in the Datetime model's EVT_ID column)", "event_espresso"); ?></p>
20
+	<p><?php _e("Also note, you do NOT have to enter info in for each model. (You can, for example, only enter in Term_Taxonomies and Term model data)", "event_espresso"); ?></p>
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
core/db_models/fields/EE_Boolean_Field.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2
-require_once( EE_MODELS . 'fields/EE_Integer_Field.php');
3
-class EE_Boolean_Field extends EE_Integer_Field{
2
+require_once(EE_MODELS.'fields/EE_Integer_Field.php');
3
+class EE_Boolean_Field extends EE_Integer_Field {
4 4
 	function prepare_for_set($value_inputted_for_field_on_model_object) {
5
-		if ($value_inputted_for_field_on_model_object){
5
+		if ($value_inputted_for_field_on_model_object) {
6 6
 			return true;
7
-		}else{
7
+		} else {
8 8
 			return false;
9 9
 		}
10 10
 	}
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	 * @return boolean
15 15
 	 */
16 16
 	function prepare_for_set_from_db($value_inputted_for_field_on_model_object) {
17
-		return intval( $value_inputted_for_field_on_model_object ) ? true : false;
17
+		return intval($value_inputted_for_field_on_model_object) ? true : false;
18 18
 	}
19 19
 	
20 20
 	/**
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 	 * @param boolean $value_on_field_to_be_outputted
23 23
 	 * @return string Yes or No
24 24
 	 */
25
-	function prepare_for_pretty_echoing( $value_on_field_to_be_outputted ) {
25
+	function prepare_for_pretty_echoing($value_on_field_to_be_outputted) {
26 26
 		return apply_filters( 
27 27
 			'FHEE__EE_Boolean_Field__prepare_for_pretty_echoing__return',
28
-			$value_on_field_to_be_outputted ? __( 'Yes', 'event_espresso' ) : __( 'No', 'event_espresso' ),
28
+			$value_on_field_to_be_outputted ? __('Yes', 'event_espresso') : __('No', 'event_espresso'),
29 29
 			$value_on_field_to_be_outputted
30 30
 		);
31 31
 	}
Please login to merge, or discard this patch.
core/db_classes/EE_Payment.class.php 1 patch
Spacing   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1
-<?php if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) {
2
-	exit( 'No direct script access allowed' );
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3 3
 }
4 4
 /**
5 5
  * Event Espresso
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  * @subpackage            includes/classes/EE_Payment.class.php
23 23
  * @author                Brent Christensen
24 24
  */
25
-class EE_Payment extends EE_Base_Class implements EEI_Payment{
25
+class EE_Payment extends EE_Base_Class implements EEI_Payment {
26 26
 
27 27
 	/**
28 28
 	 *
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
 	 *                             		    date_format and the second value is the time format
34 34
 	 * @return EE_Attendee
35 35
 	 */
36
-	public static function new_instance( $props_n_values = array(), $timezone = null, $date_formats = array() ) {
37
-		$has_object = parent::_check_for_object( $props_n_values, __CLASS__ );
38
-		return $has_object ? $has_object : new self( $props_n_values, false, $timezone, $date_formats );
36
+	public static function new_instance($props_n_values = array(), $timezone = null, $date_formats = array()) {
37
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
38
+		return $has_object ? $has_object : new self($props_n_values, false, $timezone, $date_formats);
39 39
 	}
40 40
 
41 41
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 	 *                          		the website will be used.
47 47
 	 * @return EE_Attendee
48 48
 	 */
49
-	public static function new_instance_from_db( $props_n_values = array(), $timezone = null ) {
50
-		return new self( $props_n_values, TRUE, $timezone );
49
+	public static function new_instance_from_db($props_n_values = array(), $timezone = null) {
50
+		return new self($props_n_values, TRUE, $timezone);
51 51
 	}
52 52
 
53 53
 
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 	 * @access        public
59 59
 	 * @param int $TXN_ID
60 60
 	 */
61
-	public function set_transaction_id( $TXN_ID = 0 ) {
62
-		$this->set( 'TXN_ID', $TXN_ID );
61
+	public function set_transaction_id($TXN_ID = 0) {
62
+		$this->set('TXN_ID', $TXN_ID);
63 63
 	}
64 64
 
65 65
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 * @return EE_Transaction
70 70
 	 */
71 71
 	public function transaction() {
72
-		return $this->get_first_related( 'Transaction' );
72
+		return $this->get_first_related('Transaction');
73 73
 	}
74 74
 
75 75
 
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
 	 * @access        public
81 81
 	 * @param        string $STS_ID
82 82
 	 */
83
-	public function set_status( $STS_ID = '' ) {
84
-		$this->set( 'STS_ID', $STS_ID );
83
+	public function set_status($STS_ID = '') {
84
+		$this->set('STS_ID', $STS_ID);
85 85
 	}
86 86
 
87 87
 
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
 	 * @access        public
93 93
 	 * @param        int $timestamp
94 94
 	 */
95
-	public function set_timestamp( $timestamp = 0 ) {
96
-		$this->set( 'PAY_timestamp', $timestamp );
95
+	public function set_timestamp($timestamp = 0) {
96
+		$this->set('PAY_timestamp', $timestamp);
97 97
 	}
98 98
 
99 99
 
@@ -104,8 +104,8 @@  discard block
 block discarded – undo
104 104
 	* 		@access		public
105 105
 	*		@param		string		$PAY_source
106 106
 	*/
107
-	public function set_source( $PAY_source = '' ) {
108
-		$this->set('PAY_source',$PAY_source);
107
+	public function set_source($PAY_source = '') {
108
+		$this->set('PAY_source', $PAY_source);
109 109
 	}
110 110
 
111 111
 
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
 	 * @access        public
117 117
 	 * @param float $amount
118 118
 	 */
119
-	public function set_amount( $amount = 0.00 ) {
120
-		$this->set( 'PAY_amount', $amount );
119
+	public function set_amount($amount = 0.00) {
120
+		$this->set('PAY_amount', $amount);
121 121
 	}
122 122
 
123 123
 
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
 	 * @access        public
129 129
 	 * @param        string $gateway_response
130 130
 	 */
131
-	public function set_gateway_response( $gateway_response = '' ) {
132
-		$this->set( 'PAY_gateway_response', $gateway_response );
131
+	public function set_gateway_response($gateway_response = '') {
132
+		$this->set('PAY_gateway_response', $gateway_response);
133 133
 	}
134 134
 	/**
135 135
 	 * Returns the name of the paymetn method used on this payment (previously known merely as 'gateway')
@@ -138,12 +138,12 @@  discard block
 block discarded – undo
138 138
 	 * @deprecated
139 139
 	 * @return string
140 140
 	 */
141
-	public function gateway(){
142
-		EE_Error::doing_it_wrong('EE_Payment::gateway', __( 'The method EE_Payment::gateway() has been deprecated. Consider instead using EE_Payment::payment_method()->name()', 'event_espresso' ), '4.6.0' );
143
-		if( $this->payment_method() ){
141
+	public function gateway() {
142
+		EE_Error::doing_it_wrong('EE_Payment::gateway', __('The method EE_Payment::gateway() has been deprecated. Consider instead using EE_Payment::payment_method()->name()', 'event_espresso'), '4.6.0');
143
+		if ($this->payment_method()) {
144 144
 			return $this->payment_method()->name();
145
-		}else{
146
-			return __( 'Unknown', 'event_espresso' );
145
+		} else {
146
+			return __('Unknown', 'event_espresso');
147 147
 		}
148 148
 	}
149 149
 
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
 	 * @access        public
156 156
 	 * @param        string $txn_id_chq_nmbr
157 157
 	 */
158
-	public function set_txn_id_chq_nmbr( $txn_id_chq_nmbr = '' ) {
159
-		$this->set( 'PAY_txn_id_chq_nmbr', $txn_id_chq_nmbr );
158
+	public function set_txn_id_chq_nmbr($txn_id_chq_nmbr = '') {
159
+		$this->set('PAY_txn_id_chq_nmbr', $txn_id_chq_nmbr);
160 160
 	}
161 161
 
162 162
 
@@ -167,8 +167,8 @@  discard block
 block discarded – undo
167 167
 	 * @access        public
168 168
 	 * @param        string $po_number
169 169
 	 */
170
-	public function set_po_number( $po_number = '' ) {
171
-		$this->set( 'PAY_po_number', $po_number );
170
+	public function set_po_number($po_number = '') {
171
+		$this->set('PAY_po_number', $po_number);
172 172
 	}
173 173
 
174 174
 
@@ -179,8 +179,8 @@  discard block
 block discarded – undo
179 179
 	 * @access        public
180 180
 	 * @param        string $extra_accntng
181 181
 	 */
182
-	public function set_extra_accntng( $extra_accntng = '' ) {
183
-		$this->set( 'PAY_extra_accntng', $extra_accntng );
182
+	public function set_extra_accntng($extra_accntng = '') {
183
+		$this->set('PAY_extra_accntng', $extra_accntng);
184 184
 	}
185 185
 
186 186
 
@@ -191,10 +191,10 @@  discard block
 block discarded – undo
191 191
 	 * @access        public
192 192
 	 * @param        bool $via_admin
193 193
 	 */
194
-	public function set_payment_made_via_admin( $via_admin = FALSE ) {
195
-		if($via_admin){
196
-			$this->set('PAY_source',  EEM_Payment_Method::scope_admin);
197
-		}else{
194
+	public function set_payment_made_via_admin($via_admin = FALSE) {
195
+		if ($via_admin) {
196
+			$this->set('PAY_source', EEM_Payment_Method::scope_admin);
197
+		} else {
198 198
 			$this->set('PAY_source', EEM_Payment_Method::scope_cart);
199 199
 		}
200 200
 
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
 	 * @access        public
209 209
 	 * @param        string $details
210 210
 	 */
211
-	public function set_details( $details = '' ) {
212
-		if ( is_array( $details ) ) {
213
-			array_walk_recursive( $details, array( $this, '_strip_all_tags_within_array' ));
211
+	public function set_details($details = '') {
212
+		if (is_array($details)) {
213
+			array_walk_recursive($details, array($this, '_strip_all_tags_within_array'));
214 214
 		} else {
215
-			$details = wp_strip_all_tags( $details );
215
+			$details = wp_strip_all_tags($details);
216 216
 		}
217
-		$this->set( 'PAY_details', $details );
217
+		$this->set('PAY_details', $details);
218 218
 	}
219 219
 
220 220
 	/**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 	 * @access        public
241 241
 	 */
242 242
 	public function TXN_ID() {
243
-		return $this->get( 'TXN_ID' );
243
+		return $this->get('TXN_ID');
244 244
 	}
245 245
 
246 246
 
@@ -271,8 +271,8 @@  discard block
 block discarded – undo
271 271
 	 * @param null $date_or_time
272 272
 	 * @return string
273 273
 	 */
274
-	public function timestamp( $dt_frmt = '', $tm_frmt = '', $date_or_time = NULL ) {
275
-		return $this->get_datetime('PAY_timestamp', $dt_frmt, $tm_frmt, $date_or_time );
274
+	public function timestamp($dt_frmt = '', $tm_frmt = '', $date_or_time = NULL) {
275
+		return $this->get_datetime('PAY_timestamp', $dt_frmt, $tm_frmt, $date_or_time);
276 276
 	}
277 277
 
278 278
 
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 	 * @return float
294 294
 	 */
295 295
 	public function amount() {
296
-		return $this->get( 'PAY_amount' );
296
+		return $this->get('PAY_amount');
297 297
 	}
298 298
 
299 299
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	 * @return mixed
303 303
 	 */
304 304
 	public function amount_no_code() {
305
-		return $this->get_pretty( 'PAY_amount', 'no_currency_code' );
305
+		return $this->get_pretty('PAY_amount', 'no_currency_code');
306 306
 	}
307 307
 
308 308
 
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
 	 * @access        public
313 313
 	 */
314 314
 	public function gateway_response() {
315
-		return $this->get( 'PAY_gateway_response' );
315
+		return $this->get('PAY_gateway_response');
316 316
 	}
317 317
 
318 318
 
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 	 * @access        public
323 323
 	 */
324 324
 	public function txn_id_chq_nmbr() {
325
-		return $this->get( 'PAY_txn_id_chq_nmbr' );
325
+		return $this->get('PAY_txn_id_chq_nmbr');
326 326
 	}
327 327
 
328 328
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 	 * @access        public
333 333
 	 */
334 334
 	public function po_number() {
335
-		return $this->get( 'PAY_po_number' );
335
+		return $this->get('PAY_po_number');
336 336
 	}
337 337
 
338 338
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
 	 * @access        public
343 343
 	 */
344 344
 	public function extra_accntng() {
345
-		return $this->get( 'PAY_extra_accntng' );
345
+		return $this->get('PAY_extra_accntng');
346 346
 	}
347 347
 
348 348
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 	 * @access        public
363 363
 	 */
364 364
 	public function details() {
365
-		return $this->get( 'PAY_details' );
365
+		return $this->get('PAY_details');
366 366
 	}
367 367
 
368 368
 
@@ -391,8 +391,8 @@  discard block
 block discarded – undo
391 391
 	 * @param bool $show_icons
392 392
 	 * @return void
393 393
 	 */
394
-	public function e_pretty_status( $show_icons = FALSE ) {
395
-		echo $this->pretty_status( $show_icons );
394
+	public function e_pretty_status($show_icons = FALSE) {
395
+		echo $this->pretty_status($show_icons);
396 396
 	}
397 397
 
398 398
 
@@ -402,10 +402,10 @@  discard block
 block discarded – undo
402 402
 	 * @param bool $show_icons
403 403
 	 * @return string
404 404
 	 */
405
-	public function pretty_status( $show_icons = FALSE ) {
406
-		$status = EEM_Status::instance()->localized_status( array( $this->STS_ID() => __( 'unknown', 'event_espresso' ) ), FALSE, 'sentence' );
405
+	public function pretty_status($show_icons = FALSE) {
406
+		$status = EEM_Status::instance()->localized_status(array($this->STS_ID() => __('unknown', 'event_espresso')), FALSE, 'sentence');
407 407
 		$icon = '';
408
-		switch ( $this->STS_ID() ) {
408
+		switch ($this->STS_ID()) {
409 409
 			case EEM_Payment::status_id_approved:
410 410
 				$icon = $show_icons ? '<span class="dashicons dashicons-yes ee-icon-size-24 green-text"></span>' : '';
411 411
 				break;
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 				$icon = $show_icons ? '<span class="dashicons dashicons-no ee-icon-size-16 red-text"></span>' : '';
420 420
 				break;
421 421
 		}
422
-		return $icon . $status[ $this->STS_ID() ];
422
+		return $icon.$status[$this->STS_ID()];
423 423
 	}
424 424
 
425 425
 
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
 	 * @return boolean whether the payment is approved or not
431 431
 	 */
432 432
 	public function is_approved() {
433
-		return $this->status_is( EEM_Payment::status_id_approved );
433
+		return $this->status_is(EEM_Payment::status_id_approved);
434 434
 	}
435 435
 
436 436
 
@@ -442,8 +442,8 @@  discard block
 block discarded – undo
442 442
 	 *                       one of the status_id_* on the EEM_Payment model
443 443
 	 * @return boolean whether the status of this payment equals the status id
444 444
 	 */
445
-	protected function status_is( $STS_ID ) {
446
-		if ( $STS_ID == $this->STS_ID() ) {
445
+	protected function status_is($STS_ID) {
446
+		if ($STS_ID == $this->STS_ID()) {
447 447
 			return TRUE;
448 448
 		} else {
449 449
 			return FALSE;
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
 	 * @return boolean whether the payment is pending or not
458 458
 	 */
459 459
 	public function is_pending() {
460
-		return $this->status_is( EEM_Payment::status_id_pending );
460
+		return $this->status_is(EEM_Payment::status_id_pending);
461 461
 	}
462 462
 
463 463
 
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
 	 * @return boolean
468 468
 	 */
469 469
 	public function is_cancelled() {
470
-		return $this->status_is( EEM_Payment::status_id_cancelled );
470
+		return $this->status_is(EEM_Payment::status_id_cancelled);
471 471
 	}
472 472
 
473 473
 
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 	 * @return boolean
478 478
 	 */
479 479
 	public function is_declined() {
480
-		return $this->status_is( EEM_Payment::status_id_declined );
480
+		return $this->status_is(EEM_Payment::status_id_declined);
481 481
 	}
482 482
 
483 483
 
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 	 * @return boolean
488 488
 	 */
489 489
 	public function is_failed() {
490
-		return $this->status_is( EEM_Payment::status_id_failed );
490
+		return $this->status_is(EEM_Payment::status_id_failed);
491 491
 	}
492 492
 
493 493
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 	 * @return EE_Status
508 508
 	 */
509 509
 	public function status_obj() {
510
-		return $this->get_first_related( 'Status' );
510
+		return $this->get_first_related('Status');
511 511
 	}
512 512
 
513 513
 
@@ -517,8 +517,8 @@  discard block
 block discarded – undo
517 517
 	 * @param array $query_params like EEM_Base::get_all
518 518
 	 * @return EE_Extra_Meta
519 519
 	 */
520
-	public function extra_meta( $query_params = array() ) {
521
-		return $this->get_many_related( 'Extra_Meta', $query_params );
520
+	public function extra_meta($query_params = array()) {
521
+		return $this->get_many_related('Extra_Meta', $query_params);
522 522
 	}
523 523
 
524 524
 
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 	 * offline ones, dont' create payments)
530 530
 	 * @return EE_Payment_Method
531 531
 	 */
532
-	function payment_method(){
532
+	function payment_method() {
533 533
 		return $this->get_first_related('Payment_Method');
534 534
 	}
535 535
 
@@ -546,12 +546,12 @@  discard block
 block discarded – undo
546 546
 	 * @param string $inside_form_html
547 547
 	 * @return string html
548 548
 	 */
549
-	function redirect_form( $inside_form_html = NULL ) {
549
+	function redirect_form($inside_form_html = NULL) {
550 550
 		$redirect_url = $this->redirect_url();
551
-		if ( ! empty( $redirect_url )) {
551
+		if ( ! empty($redirect_url)) {
552 552
 			EE_Registry::instance()->load_helper('HTML');
553 553
 			// what ? no inner form content?
554
-			if( $inside_form_html === NULL ) {
554
+			if ($inside_form_html === NULL) {
555 555
 				$inside_form_html = EEH_HTML::p(
556 556
 					sprintf(
557 557
 						__('If you are not automatically redirected to the payment website within 10 seconds... %1$s %2$s Click Here %3$s', 'event_espresso'),
@@ -569,17 +569,17 @@  discard block
 block discarded – undo
569 569
 			);
570 570
 			//if it's a GET request, we need to remove all the GET params in the querystring
571 571
 			//and put them into the form instead
572
-			if( $method == 'GET' ) {
573
-				$querystring = parse_url( $redirect_url, PHP_URL_QUERY );
572
+			if ($method == 'GET') {
573
+				$querystring = parse_url($redirect_url, PHP_URL_QUERY);
574 574
 				$get_params = null;
575
-				parse_str( $querystring, $get_params );
576
-				$inside_form_html .= $this->_args_as_inputs( $get_params );
577
-				$redirect_url = str_replace( '?' . $querystring, '', $redirect_url );
575
+				parse_str($querystring, $get_params);
576
+				$inside_form_html .= $this->_args_as_inputs($get_params);
577
+				$redirect_url = str_replace('?'.$querystring, '', $redirect_url);
578 578
 			}
579
-			$form = EEH_HTML::nl(1) . '<form method="' . $method . '" name="gateway_form" action="' . $redirect_url . '">';
580
-			$form .= EEH_HTML::nl(1) . $this->redirect_args_as_inputs();
579
+			$form = EEH_HTML::nl(1).'<form method="'.$method.'" name="gateway_form" action="'.$redirect_url.'">';
580
+			$form .= EEH_HTML::nl(1).$this->redirect_args_as_inputs();
581 581
 			$form .= $inside_form_html;
582
-			$form .= EEH_HTML::nl(-1) . '</form>' . EEH_HTML::nl(-1);
582
+			$form .= EEH_HTML::nl(-1).'</form>'.EEH_HTML::nl(-1);
583 583
 			return $form;
584 584
 		} else {
585 585
 			return NULL;
@@ -594,8 +594,8 @@  discard block
 block discarded – undo
594 594
 	 * and returns the html as a string
595 595
 	 * @return string
596 596
 	 */
597
-	function redirect_args_as_inputs(){
598
-		return $this->_args_as_inputs( $this->redirect_args() );
597
+	function redirect_args_as_inputs() {
598
+		return $this->_args_as_inputs($this->redirect_args());
599 599
 	}
600 600
 	
601 601
 	/**
@@ -604,12 +604,12 @@  discard block
 block discarded – undo
604 604
 	 * @param array $args key-value pairs
605 605
 	 * @return string
606 606
 	 */
607
-	protected function _args_as_inputs( $args ) {
607
+	protected function _args_as_inputs($args) {
608 608
 		$html = '';
609
-		if( $args !== NULL && is_array( $args )) {
609
+		if ($args !== NULL && is_array($args)) {
610 610
 			EE_Registry::instance()->load_helper('HTML');
611
-			foreach( $args as $name => $value){
612
-				$html .= EEH_HTML::nl(0) . '<input type="hidden" name="' . $name . '" value="' . esc_attr( $value ) . '"/>';
611
+			foreach ($args as $name => $value) {
612
+				$html .= EEH_HTML::nl(0).'<input type="hidden" name="'.$name.'" value="'.esc_attr($value).'"/>';
613 613
 			}
614 614
 		}
615 615
 		return $html;
@@ -624,7 +624,7 @@  discard block
 block discarded – undo
624 624
 	 * object itself)
625 625
 	 * @return string for the currency code
626 626
 	 */
627
-	public function currency_code(){
627
+	public function currency_code() {
628 628
 		return EE_Config::instance()->currency->code;
629 629
 	}
630 630
 
@@ -638,14 +638,14 @@  discard block
 block discarded – undo
638 638
 	 * @access        private
639 639
 	 * @param        mixed $item
640 640
 	 */
641
-	private function _strip_all_tags_within_array( &$item ) {
642
-		if( is_object( $item ) ) {
641
+	private function _strip_all_tags_within_array(&$item) {
642
+		if (is_object($item)) {
643 643
 			$item = (array) $item;
644 644
 		}
645
-		if( is_array( $item ) ){
646
-			array_walk_recursive( $item, array( $this, '_strip_all_tags_within_array' ) );
647
-		}else{
648
-			$item = wp_strip_all_tags( $item );
645
+		if (is_array($item)) {
646
+			array_walk_recursive($item, array($this, '_strip_all_tags_within_array'));
647
+		} else {
648
+			$item = wp_strip_all_tags($item);
649 649
 		}
650 650
 	}
651 651
 
@@ -654,13 +654,13 @@  discard block
 block discarded – undo
654 654
 	 * is approved and was created during this request). False otherwise.
655 655
 	 * @return boolean
656 656
 	 */
657
-	public function just_approved(){
658
-		EE_Registry::instance()->load_helper( 'Array' );
659
-		$original_status =EEH_Array::is_set( $this->_props_n_values_provided_in_constructor, 'STS_ID', $this->get_model()->field_settings_for( 'STS_ID' )->get_default_value() );
657
+	public function just_approved() {
658
+		EE_Registry::instance()->load_helper('Array');
659
+		$original_status = EEH_Array::is_set($this->_props_n_values_provided_in_constructor, 'STS_ID', $this->get_model()->field_settings_for('STS_ID')->get_default_value());
660 660
 		$current_status = $this->status();
661
-		if( $original_status !== EEM_Payment::status_id_approved && $current_status === EEM_Payment::status_id_approved ){
661
+		if ($original_status !== EEM_Payment::status_id_approved && $current_status === EEM_Payment::status_id_approved) {
662 662
 			return TRUE;
663
-		}else{
663
+		} else {
664 664
 			return FALSE;
665 665
 		}
666 666
 	}
@@ -672,11 +672,11 @@  discard block
 block discarded – undo
672 672
 	 * @param string         $extra_cache_ref This allows the user to specify an extra cache ref for the given property (in cases where the same property may be used for different outputs - i.e. datetime, money etc.)
673 673
 	 * @return mixed
674 674
 	 */
675
-	public function get_pretty($field_name, $extra_cache_ref = NULL){
676
-		if( $field_name == 'PAY_gateway' ){
675
+	public function get_pretty($field_name, $extra_cache_ref = NULL) {
676
+		if ($field_name == 'PAY_gateway') {
677 677
 			return $this->gateway();
678 678
 		}
679
-		return  $this->_get_cached_property( $field_name, TRUE, $extra_cache_ref );
679
+		return  $this->_get_cached_property($field_name, TRUE, $extra_cache_ref);
680 680
 	}
681 681
 
682 682
 
@@ -686,8 +686,8 @@  discard block
 block discarded – undo
686 686
 	 * @param array $query_params like EEM_Base::get_all
687 687
 	 * @return EE_Registration_Payment[]
688 688
 	 */
689
-	public function registration_payments( $query_params = array() ) {
690
-		return $this->get_many_related( 'Registration_Payment', $query_params );
689
+	public function registration_payments($query_params = array()) {
690
+		return $this->get_many_related('Registration_Payment', $query_params);
691 691
 	}
692 692
 
693 693
 
Please login to merge, or discard this patch.
modules/batch/EED_Batch.module.php 1 patch
Spacing   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@  discard block
 block discarded – undo
17 17
  * @since		 	   4.8.30.rc.007
18 18
  *
19 19
  */
20
-if( !defined( 'EVENT_ESPRESSO_VERSION' ) ) {
21
-	exit( 'No direct script access allowed' );
20
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
21
+	exit('No direct script access allowed');
22 22
 }
23 23
 
24
-define( 'BATCH_URL', plugin_dir_url( __FILE__ ) );
24
+define('BATCH_URL', plugin_dir_url(__FILE__));
25 25
 
26
-class EED_Batch extends EED_Module{
26
+class EED_Batch extends EED_Module {
27 27
 	
28 28
 	/**
29 29
 	 * Possibly value for $_REQUEST[ 'batch' ]. Indicates to run a job that
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
 	public static function set_hooks() {
71 71
 		//because this is a possibel attack vector, let's have this disabled until 
72 72
 		//we at least have a real use for it on the frontend
73
-		if( apply_filters( 'FHEE__EED_Batch__set_hooks__enable_frontend_batch', false ) ) {
74
-			add_action( 'wp_enqueue_scripts', array( self::instance(), 'enqueue_scripts' ) );
75
-			add_filter( 'template_include', array( self::instance(), 'override_template' ), 99 );
73
+		if (apply_filters('FHEE__EED_Batch__set_hooks__enable_frontend_batch', false)) {
74
+			add_action('wp_enqueue_scripts', array(self::instance(), 'enqueue_scripts'));
75
+			add_filter('template_include', array(self::instance(), 'override_template'), 99);
76 76
 		}
77 77
 	}
78 78
 	
@@ -80,28 +80,28 @@  discard block
 block discarded – undo
80 80
 	 * Initializes some hooks for the admin in order to run batch jobs
81 81
 	 */
82 82
 	public static function set_hooks_admin() {
83
-		add_action( 'admin_menu', array( self::instance(), 'register_admin_pages' ) );
84
-		add_action( 'admin_enqueue_scripts', array( self::instance(), 'enqueue_scripts' ) );
83
+		add_action('admin_menu', array(self::instance(), 'register_admin_pages'));
84
+		add_action('admin_enqueue_scripts', array(self::instance(), 'enqueue_scripts'));
85 85
 		
86 86
 		//ajax
87
-		add_action('wp_ajax_espresso_batch_continue',array(self::instance(),'batch_continue'));
88
-		add_action('wp_ajax_espresso_batch_cleanup',array(self::instance(),'batch_cleanup'));
89
-		add_action('wp_ajax_nopriv_espresso_batch_continue',array(self::instance(),'batch_continue'));
90
-		add_action('wp_ajax_nopriv_espresso_batch_cleanup',array(self::instance(),'batch_cleanup'));
87
+		add_action('wp_ajax_espresso_batch_continue', array(self::instance(), 'batch_continue'));
88
+		add_action('wp_ajax_espresso_batch_cleanup', array(self::instance(), 'batch_cleanup'));
89
+		add_action('wp_ajax_nopriv_espresso_batch_continue', array(self::instance(), 'batch_continue'));
90
+		add_action('wp_ajax_nopriv_espresso_batch_cleanup', array(self::instance(), 'batch_cleanup'));
91 91
 	}
92 92
 	
93 93
 	/**
94 94
 	 * Enqueues batch scripts on the frontend or admin, and creates a job
95 95
 	 */
96 96
 	public function enqueue_scripts() { 
97
-		if( isset( $_REQUEST[ 'espresso_batch' ] ) 
97
+		if (isset($_REQUEST['espresso_batch']) 
98 98
 			|| 
99 99
 			( 
100
-				isset( $_REQUEST[ 'page' ] )
101
-				&& $_REQUEST[ 'page' ] == 'espresso_batch'
100
+				isset($_REQUEST['page'])
101
+				&& $_REQUEST['page'] == 'espresso_batch'
102 102
 			) 
103 103
 		) { 
104
-			switch( $this->batch_request_type() ) {
104
+			switch ($this->batch_request_type()) {
105 105
 				case self::batch_job:
106 106
 					$this->enqueue_scripts_styles_batch_create();
107 107
 					break;
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
 	 */
118 118
 	public function enqueue_scripts_styles_batch_create() {	
119 119
 		$job_response = $this->_enqueue_batch_job_scripts_and_styles_and_start_job();
120
-		wp_enqueue_script( 'batch_runner_init', BATCH_URL . '/assets/batch_runner_init.js', array( 'batch_runner' ), EVENT_ESPRESSO_VERSION, true );
121
-		wp_localize_script( 'batch_runner_init', 'ee_job_response', $job_response->to_array() );
122
-		wp_localize_script( 'batch_runner_init', 'ee_job_i18n', 
120
+		wp_enqueue_script('batch_runner_init', BATCH_URL.'/assets/batch_runner_init.js', array('batch_runner'), EVENT_ESPRESSO_VERSION, true);
121
+		wp_localize_script('batch_runner_init', 'ee_job_response', $job_response->to_array());
122
+		wp_localize_script('batch_runner_init', 'ee_job_i18n', 
123 123
 			array(
124
-				'return_url' => $_REQUEST['return_url' ],
124
+				'return_url' => $_REQUEST['return_url'],
125 125
 			));
126 126
 	}
127 127
 	
@@ -131,15 +131,15 @@  discard block
 block discarded – undo
131 131
 	public function enqueue_scripts_styles_batch_file_create() {
132 132
 		//creates a job based on the request variable
133 133
 		$job_response = $this->_enqueue_batch_job_scripts_and_styles_and_start_job();
134
-		wp_enqueue_script( 'batch_file_runner_init', BATCH_URL . '/assets/batch_file_runner_init.js', array( 'batch_runner' ), EVENT_ESPRESSO_VERSION, true );
135
-		wp_localize_script( 'batch_file_runner_init', 'ee_job_response', $job_response->to_array() );
136
-		wp_localize_script( 'batch_file_runner_init', 'ee_job_i18n', 
134
+		wp_enqueue_script('batch_file_runner_init', BATCH_URL.'/assets/batch_file_runner_init.js', array('batch_runner'), EVENT_ESPRESSO_VERSION, true);
135
+		wp_localize_script('batch_file_runner_init', 'ee_job_response', $job_response->to_array());
136
+		wp_localize_script('batch_file_runner_init', 'ee_job_i18n', 
137 137
 				array(
138 138
 					'download_and_redirecting' => sprintf( 
139 139
 							__('File Generation complete. Downloading, and %1$sredirecting%2$s...', 'event_espresso'),
140
-							'<a href="' . $_REQUEST['return_url' ] .'">',
140
+							'<a href="'.$_REQUEST['return_url'].'">',
141 141
 							'</a>' ),
142
-					'return_url' => $_REQUEST['return_url' ],
142
+					'return_url' => $_REQUEST['return_url'],
143 143
 				));
144 144
 	}
145 145
 	
@@ -150,18 +150,18 @@  discard block
 block discarded – undo
150 150
 	 * @return \EventEspressoBatchRequest\Helpers\JobStepResponse
151 151
 	 */
152 152
 	protected function _enqueue_batch_job_scripts_and_styles_and_start_job() {
153
-		wp_register_script( 'progress_bar', EE_PLUGIN_DIR_URL . 'core/libraries/batch/Assets/progress_bar.js', array( 'jquery' ) );
154
-		wp_enqueue_style( 'progress_bar', EE_PLUGIN_DIR_URL . 'core/libraries/batch/Assets/progress_bar.css', array(), EVENT_ESPRESSO_VERSION );
155
-		wp_enqueue_script( 'batch_runner', EE_PLUGIN_DIR_URL . 'core/libraries/batch/Assets/batch_runner.js', array( 'progress_bar' ));
153
+		wp_register_script('progress_bar', EE_PLUGIN_DIR_URL.'core/libraries/batch/Assets/progress_bar.js', array('jquery'));
154
+		wp_enqueue_style('progress_bar', EE_PLUGIN_DIR_URL.'core/libraries/batch/Assets/progress_bar.css', array(), EVENT_ESPRESSO_VERSION);
155
+		wp_enqueue_script('batch_runner', EE_PLUGIN_DIR_URL.'core/libraries/batch/Assets/batch_runner.js', array('progress_bar'));
156 156
 		//just copy the bits of EE admin's eei18n that we need in the JS
157
-		wp_localize_script( 'batch_runner', 'eei18n', array( 'ajax_url' => WP_AJAX_URL, 'is_admin' => (bool)is_admin() ) );
158
-		$job_handler_classname = stripslashes( $_GET[ 'job_handler' ] );
157
+		wp_localize_script('batch_runner', 'eei18n', array('ajax_url' => WP_AJAX_URL, 'is_admin' => (bool) is_admin()));
158
+		$job_handler_classname = stripslashes($_GET['job_handler']);
159 159
 		$request_data = array_diff_key( 
160 160
 				$_REQUEST, 
161
-				array_flip( array( 'action',  'page', 'ee', 'batch' ) ) );
161
+				array_flip(array('action', 'page', 'ee', 'batch')) );
162 162
 		$batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
163 163
 		//eg 'EventEspressoBatchRequest\JobHandlers\RegistrationsReport'
164
-		$job_response = $batch_runner->create_job( $job_handler_classname, $request_data );
164
+		$job_response = $batch_runner->create_job($job_handler_classname, $request_data);
165 165
 		//remember the response for later. We need it to display the page body
166 166
 		$this->_job_step_response = $job_response;
167 167
 		return $job_response;
@@ -172,9 +172,9 @@  discard block
 block discarded – undo
172 172
 	 * @param string $template
173 173
 	 * @return string
174 174
 	 */
175
-	public function override_template( $template ) {
176
-		if( isset( $_REQUEST[ 'espresso_batch' ] ) && isset( $_REQUEST[ 'batch' ] ) ) {
177
-			return EE_MODULES . 'batch' . DS . 'templates' . DS . 'batch_frontend_wrapper.template.html';
175
+	public function override_template($template) {
176
+		if (isset($_REQUEST['espresso_batch']) && isset($_REQUEST['batch'])) {
177
+			return EE_MODULES.'batch'.DS.'templates'.DS.'batch_frontend_wrapper.template.html';
178 178
 		}
179 179
 		return $template;
180 180
 	}
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
 	public function register_admin_pages() {
186 186
 		add_submenu_page( 
187 187
 			'', //parent slug. we don't want this to actually appear in the menu
188
-			__( 'Batch Job', 'event_espresso' ), //page title
188
+			__('Batch Job', 'event_espresso'), //page title
189 189
 			'n/a', //menu title
190 190
 			'read', //we want this page to actually be accessible to anyone,  
191 191
 			'espresso_batch', //menu slug
192
-			array( self::instance(), 'show_admin_page' )
192
+			array(self::instance(), 'show_admin_page')
193 193
 		);
194 194
 	}
195 195
 	
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
 	 */
200 200
 	public function show_admin_page() { 
201 201
 		echo EEH_Template::locate_template( 
202
-			EE_MODULES . 'batch' . DS . 'templates' . DS . 'batch_wrapper.template.html', 
203
-			array( 'batch_request_type' => $this->batch_request_type() )
202
+			EE_MODULES.'batch'.DS.'templates'.DS.'batch_wrapper.template.html', 
203
+			array('batch_request_type' => $this->batch_request_type())
204 204
 		);
205 205
 	}
206 206
 	
@@ -208,10 +208,10 @@  discard block
 block discarded – undo
208 208
 	 * Receives ajax calls for continuing a job
209 209
 	 */
210 210
 	public function batch_continue() {
211
-		$job_id = sanitize_text_field( $_REQUEST[ 'job_id' ] );
211
+		$job_id = sanitize_text_field($_REQUEST['job_id']);
212 212
 		$batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
213
-		$response_obj = $batch_runner->continue_job( $job_id);
214
-		$this->_return_json( $response_obj->to_array() );
213
+		$response_obj = $batch_runner->continue_job($job_id);
214
+		$this->_return_json($response_obj->to_array());
215 215
 	}
216 216
 	
217 217
 	/**
@@ -219,10 +219,10 @@  discard block
 block discarded – undo
219 219
 	 * @return type
220 220
 	 */
221 221
 	public function batch_cleanup() {
222
-		$job_id = sanitize_text_field( $_REQUEST[ 'job_id' ] );
222
+		$job_id = sanitize_text_field($_REQUEST['job_id']);
223 223
 		$batch_runner = new EventEspressoBatchRequest\BatchRequestProcessor();
224
-		$response_obj = $batch_runner->cleanup_job( $job_id );
225
-		$this->_return_json( $response_obj->to_array() );
224
+		$response_obj = $batch_runner->cleanup_job($job_id);
225
+		$this->_return_json($response_obj->to_array());
226 226
 	}
227 227
 	
228 228
 	
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
 	 *	'isEEajax' => true,//indicates this is a response from EE
239 239
 	 * )
240 240
 	 */
241
-	protected function _return_json( $data ) {
241
+	protected function _return_json($data) {
242 242
 		$json = array(
243 243
 			'notices' => EE_Error::get_notices(),
244 244
 			'data' => $data,
@@ -247,13 +247,13 @@  discard block
 block discarded – undo
247 247
 
248 248
 
249 249
 		// make sure there are no php errors or headers_sent.  Then we can set correct json header.
250
-		if ( NULL === error_get_last() || ! headers_sent() ) {
250
+		if (NULL === error_get_last() || ! headers_sent()) {
251 251
 			header('Content-Type: application/json; charset=UTF-8');
252 252
 		}	
253
-		if( function_exists( 'wp_json_encode' ) ) {
254
-			echo wp_json_encode( $json );
253
+		if (function_exists('wp_json_encode')) {
254
+			echo wp_json_encode($json);
255 255
 		} else {
256
-			echo json_encode( $json );
256
+			echo json_encode($json);
257 257
 		}
258 258
 		exit();
259 259
 	}
@@ -270,16 +270,16 @@  discard block
 block discarded – undo
270 270
 	 * @return string: EED_Batch::batch_job, EED_Batch::batch_file_job, EED_Batch::batch_not_job
271 271
 	 */
272 272
 	public function batch_request_type() {
273
-		if( $this->_batch_request_type === null ) {
274
-			if( isset( $_GET[ 'batch' ] ) ) {
275
-				if( $_GET[ 'batch' ] == self::batch_job ) {
273
+		if ($this->_batch_request_type === null) {
274
+			if (isset($_GET['batch'])) {
275
+				if ($_GET['batch'] == self::batch_job) {
276 276
 					$this->_batch_request_type = self::batch_job;
277
-				} elseif( $_GET[ 'batch' ] == self::batch_file_job ) {
277
+				} elseif ($_GET['batch'] == self::batch_file_job) {
278 278
 					$this->_batch_request_type = self::batch_file_job;
279 279
 				}
280 280
 			}
281 281
 			//if we didn't find that it was a batch request, indicate it wasn't
282
-			if( $this->_batch_request_type === null ) {
282
+			if ($this->_batch_request_type === null) {
283 283
 				$this->_batch_request_type = self::batch_not_job;
284 284
 			}
285 285
 		}
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	 * Unnecessary
291 291
 	 * @param type $WP
292 292
 	 */
293
-	public function run( $WP ) {
293
+	public function run($WP) {
294 294
 		
295 295
 	}
296 296
 
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_system_stati_page.template.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 
8 8
 function ee_resurse_into_array($data) {
9 9
 	if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {//is_object($incomplete_class) actually returns false, hence why we check for it
10
-		$data = (array)$data;
10
+		$data = (array) $data;
11 11
 	}
12 12
 	if (is_array($data)) {
13 13
 		if (EEH_Array::is_associative_array($data)) {
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 						?>
20 20
 						<tr>
21 21
 							<td>
22
-								<?php echo $data_key;?>
22
+								<?php echo $data_key; ?>
23 23
 							</td>
24 24
 							<td>
25
-								<?php ee_resurse_into_array($data_values);?>
25
+								<?php ee_resurse_into_array($data_values); ?>
26 26
 							</td>
27 27
 						</tr>
28 28
 						<?php
@@ -36,31 +36,31 @@  discard block
 block discarded – undo
36 36
 			<ul>
37 37
 				<?php
38 38
 				foreach ($data as $datum) {
39
-					echo "<li>";ee_resurse_into_array($datum);echo "</li>";
39
+					echo "<li>"; ee_resurse_into_array($datum); echo "</li>";
40 40
 				}?>
41 41
 			</ul>
42 42
 			<?php
43 43
 		}
44
-	}else {
44
+	} else {
45 45
 		//simple value
46 46
 		echo $data;
47 47
 	}
48 48
 }
49 49
 ?>
50 50
 <h1>
51
-	<?php _e("System Information", "event_espresso");?>
51
+	<?php _e("System Information", "event_espresso"); ?>
52 52
 </h1>
53 53
 <div class="padding">
54
-	<h2><?php _e("Raw System Data", "event_espresso");?></h2>
54
+	<h2><?php _e("Raw System Data", "event_espresso"); ?></h2>
55 55
 	<textarea class="system_status_info">
56 56
 		<?php print_r($system_stati)?>
57 57
 	</textarea>
58
-	<h2><?php _e("System Data (formatted)", "event_espresso");?></h2>
58
+	<h2><?php _e("System Data (formatted)", "event_espresso"); ?></h2>
59 59
 	<table class="widefat">
60 60
 		<?php
61 61
 		foreach ($system_stati as $status_category_slug => $data) {
62 62
 			if (is_object($data)) {
63
-				$data = (array)$data;
63
+				$data = (array) $data;
64 64
 			}
65 65
 			?>
66 66
 			<thead>
Please login to merge, or discard this patch.
messages/templates/ee_msg_details_main_edit_meta_box.template.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <div id="admin-primary-mbox-dv" class="admin-primary-mbox-dv">
2 2
 
3
-	<h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name . ' Custom Template' : ''; ?></h3>
3
+	<h3 class="admin-primary-mbox-h4"><?php echo isset($event_name) ? $event_name.' Custom Template' : ''; ?></h3>
4 4
 		<input type="hidden" id="ee-msg-current-context" name="MTP_context" value="<?php echo $context; ?>"  />
5 5
 		<!-- if this is not a global template then let's show the name and description fields -->
6
-		<?php if ( ! $MTP->is_global() ) : ?>
6
+		<?php if ( ! $MTP->is_global()) : ?>
7 7
 			<div class="non-global-mtp-fields">
8 8
 				<p>
9 9
 					<?php _e('This is a custom template.  Custom Templates have an editable name and description to help you differentiate between templates.', 'event_espresso'); ?>
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 		<?php endif; ?>
26 26
 		<!-- we need to loop through the template_fields so we know our structure -->
27 27
 		<?php
28
-		if ( isset($template_fields) && !empty($template_fields) && !is_wp_error($template_fields) ) {
28
+		if (isset($template_fields) && ! empty($template_fields) && ! is_wp_error($template_fields)) {
29 29
 				echo $template_fields;
30 30
 		} else {
31 31
 			?>
Please login to merge, or discard this patch.