Completed
Branch FET-7988-evertec-needs (20e248)
by
unknown
1119:58 queued 1106:57
created
payment_declined/EE_Messages_Email_Payment_Declined_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 class EE_Messages_Email_Payment_Validator extends EE_Messages_Validator {
31 31
 
32 32
 
33
-	public function __construct( $fields, $context ) {
33
+	public function __construct($fields, $context) {
34 34
 		$this->_m_name = 'email';
35 35
 		$this->_mt_name = 'payment';
36 36
 
37
-		parent::__construct( $fields, $context );
37
+		parent::__construct($fields, $context);
38 38
 	}
39 39
 
40 40
 	/**
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
 		//modify just event_list
47 47
 		$new_config['event_list'] = array(
48
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
48
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
49 49
 			);
50 50
 		$new_config['ticket_list'] = array(
51 51
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
52 52
 			);
53 53
 		$new_config['content'] = array(
54
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
54
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
55 55
 			);
56
-		$this->_MSGR->set_validator_config( $new_config );
56
+		$this->_MSGR->set_validator_config($new_config);
57 57
 
58
-		if ( $this->_context != 'admin' )
58
+		if ($this->_context != 'admin')
59 59
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
60 60
 
61 61
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * Event Espresso
@@ -49,8 +50,9 @@  discard block
 block discarded – undo
49 50
 			);
50 51
 		$this->_MSGR->set_validator_config( $new_config );
51 52
 
52
-		if ( $this->_context != 'admin' )
53
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
53
+		if ( $this->_context != 'admin' ) {
54
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
55
+		}
54 56
 
55 57
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
56 58
 	}
Please login to merge, or discard this patch.
message_type/payment_declined/EE_Payment_Declined_message_type.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
payment_failed/EE_Messages_Email_Payment_Failed_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 class EE_Messages_Email_Payment_Validator extends EE_Messages_Validator {
31 31
 
32 32
 
33
-	public function __construct( $fields, $context ) {
33
+	public function __construct($fields, $context) {
34 34
 		$this->_m_name = 'email';
35 35
 		$this->_mt_name = 'payment';
36 36
 
37
-		parent::__construct( $fields, $context );
37
+		parent::__construct($fields, $context);
38 38
 	}
39 39
 
40 40
 	/**
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
 		//modify just event_list
47 47
 		$new_config['event_list'] = array(
48
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
48
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
49 49
 			);
50 50
 		$new_config['ticket_list'] = array(
51 51
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
52 52
 			);
53 53
 		$new_config['content'] = array(
54
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
54
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
55 55
 			);
56
-		$this->_MSGR->set_validator_config( $new_config );
56
+		$this->_MSGR->set_validator_config($new_config);
57 57
 
58
-		if ( $this->_context != 'admin' )
58
+		if ($this->_context != 'admin')
59 59
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
60 60
 
61 61
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * Event Espresso
@@ -49,8 +50,9 @@  discard block
 block discarded – undo
49 50
 			);
50 51
 		$this->_MSGR->set_validator_config( $new_config );
51 52
 
52
-		if ( $this->_context != 'admin' )
53
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
53
+		if ( $this->_context != 'admin' ) {
54
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
55
+		}
54 56
 
55 57
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
56 58
 	}
Please login to merge, or discard this patch.
message_type/payment_failed/EE_Payment_Failed_message_type.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
payment_reminder/EE_Messages_Email_Payment_Reminder_Validator.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 class EE_Messages_Email_Payment_Validator extends EE_Messages_Validator {
31 31
 
32 32
 
33
-	public function __construct( $fields, $context ) {
33
+	public function __construct($fields, $context) {
34 34
 		$this->_m_name = 'email';
35 35
 		$this->_mt_name = 'payment';
36 36
 
37
-		parent::__construct( $fields, $context );
37
+		parent::__construct($fields, $context);
38 38
 	}
39 39
 
40 40
 	/**
@@ -45,17 +45,17 @@  discard block
 block discarded – undo
45 45
 
46 46
 		//modify just event_list
47 47
 		$new_config['event_list'] = array(
48
-			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization','recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
48
+			'shortcodes' => array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'recipient_details', 'recipient_list', 'event_author', 'primary_registration_details', 'primary_registration_list')
49 49
 			);
50 50
 		$new_config['ticket_list'] = array(
51 51
 			'shortcodes' => array('event_list', 'attendee_list', 'ticket', 'datetime_list', 'recipient_details', 'transaction')
52 52
 			);
53 53
 		$new_config['content'] = array(
54
-			'shortcodes' => array('event_list','attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
54
+			'shortcodes' => array('event_list', 'attendee_list', 'ticket_list', 'organization', 'recipient_details', 'recipient_list', 'transaction', 'primary_registration_details', 'primary_registration_list', 'messenger')
55 55
 			);
56
-		$this->_MSGR->set_validator_config( $new_config );
56
+		$this->_MSGR->set_validator_config($new_config);
57 57
 
58
-		if ( $this->_context != 'admin' )
58
+		if ($this->_context != 'admin')
59 59
 			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
60 60
 
61 61
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
Please login to merge, or discard this patch.
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
4 4
 	exit('NO direct script access allowed');
5
+}
5 6
 
6 7
 /**
7 8
  * Event Espresso
@@ -49,8 +50,9 @@  discard block
 block discarded – undo
49 50
 			);
50 51
 		$this->_MSGR->set_validator_config( $new_config );
51 52
 
52
-		if ( $this->_context != 'admin' )
53
-			$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
53
+		if ( $this->_context != 'admin' ) {
54
+					$this->_valid_shortcodes_modifier[$this->_context]['event_list'] = array('event', 'attendee_list', 'ticket_list', 'datetime_list', 'venue', 'organization', 'event_author', 'primary_registration_details', 'primary_registration_list', 'recipient_details', 'recipient_list');
55
+		}
54 56
 
55 57
 		$this->_specific_shortcode_excludes['content'] = array('[DISPLAY_PDF_URL]', '[DISPLAY_PDF_BUTTON]');
56 58
 	}
Please login to merge, or discard this patch.
message_type/payment_reminder/EE_Payment_Reminder_message_type.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION') )
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('NO direct script access allowed');
5 5
 
6 6
 /**
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
events_archive_caff/templates/admin-event-list-settings.template.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2
-$values = EEH_Form_Fields::prep_answer_options( array(
3
-	array( 'id' => 1, 'text' => __('Yes', 'event_espresso')),
4
-	array( 'id' => 0, 'text' => __('No', 'event_espresso'))
2
+$values = EEH_Form_Fields::prep_answer_options(array(
3
+	array('id' => 1, 'text' => __('Yes', 'event_espresso')),
4
+	array('id' => 0, 'text' => __('No', 'event_espresso'))
5 5
 ));
6 6
 
7
-$description = EEH_Form_Fields::prep_answer_options( array(
8
-	array( 'id' => 0, 'text' => __('none', 'event_espresso')),
9
-	array( 'id' => 1, 'text' => __('excerpt (short desc)', 'event_espresso')),
10
-	array( 'id' => 2, 'text' => __('full description', 'event_espresso'))
7
+$description = EEH_Form_Fields::prep_answer_options(array(
8
+	array('id' => 0, 'text' => __('none', 'event_espresso')),
9
+	array('id' => 1, 'text' => __('excerpt (short desc)', 'event_espresso')),
10
+	array('id' => 2, 'text' => __('full description', 'event_espresso'))
11 11
 ));
12 12
 
13
-add_filter( 'FHEE__EEH_Form_Fields__label_html', '__return_empty_string' ); 
13
+add_filter('FHEE__EEH_Form_Fields__label_html', '__return_empty_string'); 
14 14
 ?>
15 15
 
16 16
 
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
 			<tr>
25 25
 				<th>
26 26
 					<label for="event_listings_url">
27
-						<?php _e('Event Listings URL', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('event_listings_url_info');?>
27
+						<?php _e('Event Listings URL', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('event_listings_url_info'); ?>
28 28
 					</label>
29 29
 				</th>
30 30
 				<td>
31
-					<a id="event_listings_url" class="ee-admin-settings-hdr-lnk small-text" href="<?php echo home_url('/') . __('events', 'event_espresso'); ?>"><?php  echo home_url('/') . __('events', 'event_espresso'); ?></a>
31
+					<a id="event_listings_url" class="ee-admin-settings-hdr-lnk small-text" href="<?php echo home_url('/').__('events', 'event_espresso'); ?>"><?php  echo home_url('/').__('events', 'event_espresso'); ?></a>
32 32
 				</td>
33 33
 			</tr>
34 34
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 					</label>
40 40
 				</th>
41 41
 				<td>
42
-				<?php echo EEH_Form_Fields::select( 'display_status_banner', $display_status_banner, $values, 'EED_Events_Archive_display_status_banner', 'EED_Events_Archive_display_status_banner' );?>
42
+				<?php echo EEH_Form_Fields::select('display_status_banner', $display_status_banner, $values, 'EED_Events_Archive_display_status_banner', 'EED_Events_Archive_display_status_banner'); ?>
43 43
 					<p class="description"><?php _e('Selecting "Yes" will inject an Event Status banner with the title whenever Events are displaying on the events archive page.', 'event_espresso'); ?></p>
44 44
 				</td>
45 45
 			</tr>
@@ -47,55 +47,55 @@  discard block
 block discarded – undo
47 47
 			<tr>
48 48
 				<th>
49 49
 					<label for="EED_Events_Archive_display_description">
50
-						<?php _e('Display Description', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_description_info');?>
50
+						<?php _e('Display Description', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_description_info'); ?>
51 51
 					</label>
52 52
 				</th>
53 53
 				<td>
54
-					<?php echo EEH_Form_Fields::select( 'description', $display_description, $description, 'EED_Events_Archive_display_description', 'EED_Events_Archive_display_description' );?>
54
+					<?php echo EEH_Form_Fields::select('description', $display_description, $description, 'EED_Events_Archive_display_description', 'EED_Events_Archive_display_description'); ?>
55 55
 				</td>
56 56
 			</tr>
57 57
 
58 58
 			<tr>
59 59
 				<th>
60 60
 					<label for="EED_Events_Archive_display_ticket_selector">
61
-						<?php _e('Display Ticket Selector', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_ticket_selector_info');?>
61
+						<?php _e('Display Ticket Selector', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_ticket_selector_info'); ?>
62 62
 					</label>
63 63
 				</th>
64 64
 				<td>
65
-					<?php echo EEH_Form_Fields::select( 'ticket_selector', $display_ticket_selector, $values, 'EED_Events_Archive_display_ticket_selector', 'EED_Events_Archive_display_ticket_selector' );?>
65
+					<?php echo EEH_Form_Fields::select('ticket_selector', $display_ticket_selector, $values, 'EED_Events_Archive_display_ticket_selector', 'EED_Events_Archive_display_ticket_selector'); ?>
66 66
 				</td>
67 67
 			</tr>
68 68
 
69 69
 			<tr>
70 70
 				<th>
71 71
 					<label for="EED_Events_Archive_display_datetimes">
72
-						<?php _e('Display Datetimes', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_datetimes_info');?>
72
+						<?php _e('Display Datetimes', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_datetimes_info'); ?>
73 73
 					</label>
74 74
 				</th>
75 75
 				<td>
76
-					<?php echo EEH_Form_Fields::select( 'venue_details', $display_datetimes, $values, 'EED_Events_Archive_display_datetimes', 'EED_Events_Archive_display_datetimes' );?>
76
+					<?php echo EEH_Form_Fields::select('venue_details', $display_datetimes, $values, 'EED_Events_Archive_display_datetimes', 'EED_Events_Archive_display_datetimes'); ?>
77 77
 				</td>
78 78
 			</tr>
79 79
 
80 80
 			<tr>
81 81
 				<th>
82 82
 					<label for="EED_Events_Archive_display_venue">
83
-						<?php _e('Display Venue Details', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_venue_details_info');?>
83
+						<?php _e('Display Venue Details', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_venue_details_info'); ?>
84 84
 					</label>
85 85
 				</th>
86 86
 				<td>
87
-					<?php echo EEH_Form_Fields::select( 'display_venue', $display_venue, $values, 'EED_Events_Archive_display_venue', 'EED_Events_Archive_display_venue' );?>
87
+					<?php echo EEH_Form_Fields::select('display_venue', $display_venue, $values, 'EED_Events_Archive_display_venue', 'EED_Events_Archive_display_venue'); ?>
88 88
 				</td>
89 89
 			</tr>
90 90
 
91 91
 			<tr>
92 92
 				<th>
93 93
 					<label for="EED_Events_Archive_display_expired_events">
94
-						<?php _e('Display Expired Events', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_expired_events_info');?>
94
+						<?php _e('Display Expired Events', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_expired_events_info'); ?>
95 95
 					</label>
96 96
 				</th>
97 97
 				<td>
98
-					<?php echo EEH_Form_Fields::select( 'expired_events', $display_expired_events, $values, 'EED_Events_Archive_display_expired_events', 'EED_Events_Archive_display_expired_events' );?>
98
+					<?php echo EEH_Form_Fields::select('expired_events', $display_expired_events, $values, 'EED_Events_Archive_display_expired_events', 'EED_Events_Archive_display_expired_events'); ?>
99 99
 				</td>
100 100
 			</tr>
101 101
 			
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 				</label>
107 107
 			</th>
108 108
 			<td>
109
-				<?php echo EEH_Form_Fields::select( 'reset_event_list_settings', 0, $values, 'EED_Events_Archive_reset_event_list_settings', 'EED_Events_Archive_reset_event_list_settings' );?>
109
+				<?php echo EEH_Form_Fields::select('reset_event_list_settings', 0, $values, 'EED_Events_Archive_reset_event_list_settings', 'EED_Events_Archive_reset_event_list_settings'); ?>
110 110
 			</td>
111 111
 		</tr>
112 112
 
Please login to merge, or discard this patch.
caffeinated/payment_methods/Mijireh/EE_PMT_Mijireh.pm.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION'))
3
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
4 4
 	exit('No direct script access allowed');
5 5
 
6 6
 /**
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  *
26 26
  * ------------------------------------------------------------------------
27 27
  */
28
-class EE_PMT_Mijireh extends EE_PMT_Base{
28
+class EE_PMT_Mijireh extends EE_PMT_Base {
29 29
 
30 30
 
31 31
 
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 		require_once($this->file_folder().'EEG_Mijireh.gateway.php');
39 39
 		$this->_gateway = new EEG_Mijireh();
40 40
 		$this->_pretty_name = __("Mijireh", 'event_espresso');
41
-		$this->_default_description = __( 'After clicking "Finalize Registration", you will be able to enter your billing information and complete your payment.', 'event_espresso' );
41
+		$this->_default_description = __('After clicking "Finalize Registration", you will be able to enter your billing information and complete your payment.', 'event_espresso');
42 42
 		parent::__construct($pm_instance);
43
-		$this->_default_button_url = $this->file_url() . 'lib' . DS . 'mijireh-checkout-logo.png';
43
+		$this->_default_button_url = $this->file_url().'lib'.DS.'mijireh-checkout-logo.png';
44 44
 	}
45 45
 
46 46
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 * @see EE_PMT_Base::help_tabs_config()
51 51
 	 * @return array
52 52
 	 */
53
-	public function help_tabs_config(){
53
+	public function help_tabs_config() {
54 54
 		return array(
55 55
 			$this->get_help_tab_name() => array(
56 56
 						'title' => __('Mijireh Settings', 'event_espresso'),
@@ -69,14 +69,14 @@  discard block
 block discarded – undo
69 69
 		$form = new EE_Payment_Method_Form(array(
70 70
 			'extra_meta_inputs'=>array(
71 71
 				'access_key'=>new EE_Text_Input(array(
72
-					'html_label_text'=>  sprintf(__("Mijireh Access Key %s", 'event_espresso'),  $this->get_help_tab_link()),
72
+					'html_label_text'=>  sprintf(__("Mijireh Access Key %s", 'event_espresso'), $this->get_help_tab_link()),
73 73
 					'required' => true
74 74
 				)),
75 75
 			),
76 76
 			'exclude'=>array('PMD_debug_mode'),
77 77
 		));
78
-		$form->add_subsections( array(
79
-			'slurper_area' => new EE_Form_Section_HTML_From_Template( $this->file_folder().DS.'templates'.DS.'mijireh_settings_after_form.template.php' )
78
+		$form->add_subsections(array(
79
+			'slurper_area' => new EE_Form_Section_HTML_From_Template($this->file_folder().DS.'templates'.DS.'mijireh_settings_after_form.template.php')
80 80
 		));
81 81
 		return $form;
82 82
 	}
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	 * @param \EE_Transaction $transaction
89 89
 	 * @return NULL
90 90
 	 */
91
-	public function generate_new_billing_form( EE_Transaction $transaction = NULL ) {
91
+	public function generate_new_billing_form(EE_Transaction $transaction = NULL) {
92 92
 		return NULL;
93 93
 	}
94 94
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (!defined('EVENT_ESPRESSO_VERSION'))
3
+if (!defined('EVENT_ESPRESSO_VERSION')) {
4 4
 	exit('No direct script access allowed');
5
+}
5 6
 /**
6 7
  * Event Espresso
7 8
  *
Please login to merge, or discard this patch.
core/CPTs/EE_CPT_Event_Strategy.core.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
 	 * @param 	array 	$arguments
40 40
 	 * @return 	\EE_CPT_Event_Strategy
41 41
 	 */
42
-	public function __construct( $arguments = array() ) {
43
-		$this->CPT = isset( $arguments['CPT'] ) ? $arguments['CPT'] : NULL;
44
-		$WP_Query = isset( $arguments['WP_Query'] ) ? $arguments['WP_Query'] : NULL;
42
+	public function __construct($arguments = array()) {
43
+		$this->CPT = isset($arguments['CPT']) ? $arguments['CPT'] : NULL;
44
+		$WP_Query = isset($arguments['WP_Query']) ? $arguments['WP_Query'] : NULL;
45 45
 
46 46
 		// !!!!!!!!!!  IMPORTANT !!!!!!!!!!!!
47 47
 		// here's the list of available filters in the WP_Query object
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
 		// 'posts_fields'
56 56
 		// 'posts_join'
57 57
 		$this->_add_filters();
58
-		if ( $WP_Query instanceof WP_Query ) {
59
-			$WP_Query->is_espresso_event_single = is_singular() && isset( $WP_Query->query->post_type ) && $WP_Query->query->post_type == 'espresso_events' ? TRUE : FALSE;
58
+		if ($WP_Query instanceof WP_Query) {
59
+			$WP_Query->is_espresso_event_single = is_singular() && isset($WP_Query->query->post_type) && $WP_Query->query->post_type == 'espresso_events' ? TRUE : FALSE;
60 60
 			$WP_Query->is_espresso_event_archive = is_post_type_archive('espresso_events') ? TRUE : FALSE;
61
-			$WP_Query->is_espresso_event_taxonomy = is_tax( 'espresso_event_categories' ) ? TRUE : FALSE;
61
+			$WP_Query->is_espresso_event_taxonomy = is_tax('espresso_event_categories') ? TRUE : FALSE;
62 62
 		}
63 63
 
64 64
 	}
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
 	 * (which will get removed in case the next call to get_posts ISN'T
71 71
 	 * for event CPTs)
72 72
 	 */
73
-	protected function _add_filters(){
74
-		add_filter( 'posts_fields', array( $this, 'posts_fields' ), 1, 2 );
75
-		add_filter( 'posts_join', array( $this, 'posts_join' ), 1, 2 );
76
-		add_filter( 'posts_where', array( $this, 'posts_where' ), 10, 2 );
77
-		add_filter( 'the_posts', array( $this, 'the_posts' ), 1, 2 );
78
-		add_filter( 'posts_orderby', array( $this, 'posts_orderby' ), 1, 2 );
79
-		add_filter( 'posts_groupby', array( $this, 'posts_groupby' ), 1, 2 );
73
+	protected function _add_filters() {
74
+		add_filter('posts_fields', array($this, 'posts_fields'), 1, 2);
75
+		add_filter('posts_join', array($this, 'posts_join'), 1, 2);
76
+		add_filter('posts_where', array($this, 'posts_where'), 10, 2);
77
+		add_filter('the_posts', array($this, 'the_posts'), 1, 2);
78
+		add_filter('posts_orderby', array($this, 'posts_orderby'), 1, 2);
79
+		add_filter('posts_groupby', array($this, 'posts_groupby'), 1, 2);
80 80
 	}
81 81
 
82 82
 
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
 	 * This is to avoid applying this CPT strategy for other posts or CPTs (eg,
87 87
 	 * we don't want to join to the datetime table when querying for venues, do we!?)
88 88
 	 */
89
-	protected function _remove_filters(){
90
-		remove_filter( 'posts_fields', array( $this, 'posts_fields' ), 1, 2 );
91
-		remove_filter( 'posts_join', array( $this, 'posts_join' ), 1, 2 );
92
-		remove_filter( 'posts_where', array( $this, 'posts_where' ), 10, 2 );
93
-		remove_filter( 'the_posts', array( $this, 'the_posts' ), 1, 2 );
94
-		remove_filter( 'posts_orderby', array( $this, 'posts_orderby' ), 1, 2 );
95
-		remove_filter( 'posts_groupby', array( $this, 'posts_groupby' ), 1, 2 );
89
+	protected function _remove_filters() {
90
+		remove_filter('posts_fields', array($this, 'posts_fields'), 1, 2);
91
+		remove_filter('posts_join', array($this, 'posts_join'), 1, 2);
92
+		remove_filter('posts_where', array($this, 'posts_where'), 10, 2);
93
+		remove_filter('the_posts', array($this, 'the_posts'), 1, 2);
94
+		remove_filter('posts_orderby', array($this, 'posts_orderby'), 1, 2);
95
+		remove_filter('posts_groupby', array($this, 'posts_groupby'), 1, 2);
96 96
 	}
97 97
 
98 98
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 	 * @param WP_Query $wp_query
106 106
 	 * @return    string
107 107
 	 */
108
-	public function posts_fields( $SQL, WP_Query $wp_query ) {
108
+	public function posts_fields($SQL, WP_Query $wp_query) {
109 109
 		if (
110 110
 			$wp_query instanceof WP_Query
111 111
 			&&
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 			)
117 117
 		) {
118 118
 			// adds something like ", wp_esp_datetime.* " to WP Query SELECT statement
119
-			$SQL .= ', ' . EEM_Datetime::instance()->table() . '.* ' ;
119
+			$SQL .= ', '.EEM_Datetime::instance()->table().'.* ';
120 120
 		}
121 121
 		return $SQL;
122 122
 	}
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * @internal  param \WP_Query $WP_Query
133 133
 	 * @return    string
134 134
 	 */
135
-	public function posts_join( $SQL, WP_Query $wp_query ) {
135
+	public function posts_join($SQL, WP_Query $wp_query) {
136 136
 		if (
137 137
 			$wp_query instanceof WP_Query
138 138
 			&&
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 			)
144 144
 		) {
145 145
 			// adds something like " LEFT JOIN wp_esp_datetime ON ( wp_esp_datetime.EVT_ID = wp_posts.ID ) " to WP Query JOIN statement
146
-			$SQL .= ' INNER JOIN ' . EEM_Datetime::instance()->table() . ' ON ( ' . EEM_Event::instance()->table() . '.ID = ' . EEM_Datetime::instance()->table() . '.' . EEM_Event::instance()->primary_key_name() . ' ) ';
146
+			$SQL .= ' INNER JOIN '.EEM_Datetime::instance()->table().' ON ( '.EEM_Event::instance()->table().'.ID = '.EEM_Datetime::instance()->table().'.'.EEM_Event::instance()->primary_key_name().' ) ';
147 147
 		}
148 148
 		return $SQL;
149 149
 	}
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * @param WP_Query $wp_query
159 159
 	 * @return    string
160 160
 	 */
161
-	public function posts_where( $SQL, WP_Query $wp_query ) {
161
+	public function posts_where($SQL, WP_Query $wp_query) {
162 162
 //		global $wpdb;
163 163
 		if (
164 164
 			$wp_query instanceof WP_Query
@@ -168,8 +168,8 @@  discard block
 block discarded – undo
168 168
 				|| $wp_query->is_espresso_event_taxonomy
169 169
 			)
170 170
 		) {
171
-			if ( ! isset( EE_Registry::instance()->CFG->template_settings->EED_Events_Archive ) || ! isset( EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->display_expired_events ) || ! EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->display_expired_events ) {
172
-				$SQL .=  ' AND ' . EEM_Datetime::instance()->table() . '.DTT_EVT_end > "' . current_time( 'mysql', TRUE ) . '" ';
171
+			if ( ! isset(EE_Registry::instance()->CFG->template_settings->EED_Events_Archive) || ! isset(EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->display_expired_events) || ! EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->display_expired_events) {
172
+				$SQL .= ' AND '.EEM_Datetime::instance()->table().'.DTT_EVT_end > "'.current_time('mysql', TRUE).'" ';
173 173
 			}
174 174
 		}
175 175
 		return $SQL;
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 	 * @param 	WP_Query $wp_query
186 186
 	 * @return 	string
187 187
 	 */
188
-	public function posts_orderby( $SQL, WP_Query $wp_query ) {
188
+	public function posts_orderby($SQL, WP_Query $wp_query) {
189 189
 		if (
190 190
 			$wp_query instanceof WP_Query
191 191
 			&&
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 				|| $wp_query->is_espresso_event_taxonomy
195 195
 			)
196 196
 		) {
197
-			$SQL = EEM_Datetime::instance()->table() . '.DTT_EVT_start ASC';
197
+			$SQL = EEM_Datetime::instance()->table().'.DTT_EVT_start ASC';
198 198
 		}
199 199
 		return $SQL;
200 200
 	}
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 	 * @param WP_Query $wp_query
210 210
 	 * @return    string
211 211
 	 */
212
-	public function posts_groupby( $SQL, WP_Query $wp_query ) {
212
+	public function posts_groupby($SQL, WP_Query $wp_query) {
213 213
 		if (
214 214
 			$wp_query instanceof WP_Query
215 215
 			&&
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 			// we're joining to the datetimes table, where there can be MANY datetimes for a single event, but we want to only show each event only once
223 223
 			// (whereas if we didn't group them by the post's ID, then we would end up with many repeats)
224 224
 			global $wpdb;
225
-			$SQL = $wpdb->posts . '.ID';
225
+			$SQL = $wpdb->posts.'.ID';
226 226
 		}
227 227
 		return $SQL;
228 228
 	}
@@ -237,8 +237,8 @@  discard block
 block discarded – undo
237 237
 	 * @param WP_Query $wp_query
238 238
 	 * @return    array
239 239
 	 */
240
-	public function the_posts( $posts, WP_Query $wp_query ) {
241
-		if ( $wp_query instanceof WP_Query && isset( $wp_query->query_vars['post_type'] ) && $wp_query->query_vars['post_type'] == 'espresso_events' ) {
240
+	public function the_posts($posts, WP_Query $wp_query) {
241
+		if ($wp_query instanceof WP_Query && isset($wp_query->query_vars['post_type']) && $wp_query->query_vars['post_type'] == 'espresso_events') {
242 242
 			// automagically load the EEH_Event_View helper so that it's functions are available
243 243
 			EE_Registry::instance()->load_helper('Event_View');
244 244
 		}
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
 	 * @param      $single
258 258
 	 * @return    string
259 259
 	 */
260
-	public function get_EE_post_type_metadata( $meta_value = NULL, $post_id, $meta_key, $single ) {
260
+	public function get_EE_post_type_metadata($meta_value = NULL, $post_id, $meta_key, $single) {
261 261
 		return $meta_value;
262 262
 	}
263 263
 
Please login to merge, or discard this patch.