Completed
Branch BUG-10202-persistent-admin-not... (c53290)
by
unknown
79:56 queued 68:48
created
public/Espresso_Arabica_2014/functions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@  discard block
 block discarded – undo
9 9
  * @ link			http://www.eventespresso.com
10 10
  * @ version		4+
11 11
  */
12
-define( 'EE_THEME_FUNCTIONS_LOADED', TRUE );
12
+define('EE_THEME_FUNCTIONS_LOADED', TRUE);
13 13
 
14
-if ( ! function_exists( 'espresso_pagination' ) ) {
14
+if ( ! function_exists('espresso_pagination')) {
15 15
 	/**
16 16
 	 *    espresso_pagination
17 17
 	 *
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
 		$big = 999999999; // need an unlikely integer
24 24
 		$pagination = paginate_links(
25 25
 			array(
26
-				'base'         => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
26
+				'base'         => str_replace($big, '%#%', esc_url(get_pagenum_link($big))),
27 27
 				'format'       => '?paged=%#%',
28
-				'current'      => max( 1, get_query_var( 'paged' ) ),
28
+				'current'      => max(1, get_query_var('paged')),
29 29
 				'total'        => $wp_query->max_num_pages,
30 30
 				'show_all'     => true,
31 31
 				'end_size'     => 10,
32 32
 				'mid_size'     => 6,
33 33
 				'prev_next'    => true,
34
-				'prev_text'    => __( '‹ PREV', 'event_espresso' ),
35
-				'next_text'    => __( 'NEXT ›', 'event_espresso' ),
34
+				'prev_text'    => __('‹ PREV', 'event_espresso'),
35
+				'next_text'    => __('NEXT ›', 'event_espresso'),
36 36
 				'type'         => 'plain',
37 37
 				'add_args'     => false,
38 38
 				'add_fragment' => ''
39 39
 			)
40 40
 		);
41
-		echo ! empty( $pagination ) ? '<div class="ee-pagination-dv clear">' . $pagination . '</div>' : '';
41
+		echo ! empty($pagination) ? '<div class="ee-pagination-dv clear">'.$pagination.'</div>' : '';
42 42
 	}
43 43
 }
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-venues.php 2 patches
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,11 @@  discard block
 block discarded – undo
40 40
 		<?php echo do_shortcode( $venue_description ); ?>
41 41
 	</p>
42 42
 		<?php endif;  ?>
43
-	<?php else : ?>
44
-		<?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE ); ?>
43
+	<?php else {
44
+	: ?>
45
+		<?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE );
46
+}
47
+?>
45 48
 		<?php if ( $venue_excerpt ) : ?>
46 49
 	<p>
47 50
 		<strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/>
@@ -53,12 +56,15 @@  discard block
 block discarded – undo
53 56
 <!-- .espresso-venue-dv -->
54 57
 <?php
55 58
 do_action( 'AHEE_event_details_after_venue_details', $post );
56
-else :
59
+else {
60
+	:
57 61
 	if ( espresso_venue_is_password_protected() ) :
58 62
 ?>
59 63
 	<div class="espresso-venue-dv  espresso-password-protected-venue-dv" >
60 64
 		<h3 class="event-venues-h3 ee-event-h3">
61
-			<?php _e( 'Location', 'event_espresso' );?>
65
+			<?php _e( 'Location', 'event_espresso' );
66
+}
67
+?>
62 68
 		</h3>
63 69
 		<?php echo espresso_password_protected_venue_form(); ?>
64 70
 	</div>
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -1,69 +1,69 @@
 block discarded – undo
1 1
 <?php
2 2
 //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
3 3
 if (
4
-	( is_single() && espresso_display_venue_in_event_details() )
5
-	|| ( is_archive() && espresso_display_venue_in_event_list() )
4
+	(is_single() && espresso_display_venue_in_event_details())
5
+	|| (is_archive() && espresso_display_venue_in_event_list())
6 6
 ) :
7 7
 	global $post;
8
-	do_action( 'AHEE_event_details_before_venue_details', $post );
9
-	$venue_name = espresso_venue_name( 0, 'details', FALSE );
10
-	if ( empty( $venue_name ) && espresso_is_venue_private() ) {
11
-		do_action( 'AHEE_event_details_after_venue_details', $post );
8
+	do_action('AHEE_event_details_before_venue_details', $post);
9
+	$venue_name = espresso_venue_name(0, 'details', FALSE);
10
+	if (empty($venue_name) && espresso_is_venue_private()) {
11
+		do_action('AHEE_event_details_after_venue_details', $post);
12 12
 		return '';
13 13
 	}
14 14
 ?>
15 15
 
16 16
 <div class="espresso-venue-dv<?php echo espresso_is_venue_private() ? ' espresso-private-venue-dv' : ''; ?>">
17 17
 	<h3 class="event-venues-h3 ee-event-h3">
18
-		<?php _e( 'Location', 'event_espresso' ); ?>
18
+		<?php _e('Location', 'event_espresso'); ?>
19 19
 	</h3>
20
-	<h4><strong><?php _e( 'Venue:', 'event_espresso' ); ?></strong>&nbsp;&nbsp; <strong> <?php echo $venue_name; ?></strong></h4>
20
+	<h4><strong><?php _e('Venue:', 'event_espresso'); ?></strong>&nbsp;&nbsp; <strong> <?php echo $venue_name; ?></strong></h4>
21 21
 	<p><span class="smaller-text tags-links"><?php echo espresso_venue_categories(); ?></span></p>
22
-<?php  if ( $venue_phone = espresso_venue_phone( $post->ID, FALSE )) : ?>
22
+<?php  if ($venue_phone = espresso_venue_phone($post->ID, FALSE)) : ?>
23 23
 	<p>
24
-		<span class="small-text"><strong><?php _e( 'Venue Phone:', 'event_espresso' ); ?></strong></span> <?php echo $venue_phone; ?>
24
+		<span class="small-text"><strong><?php _e('Venue Phone:', 'event_espresso'); ?></strong></span> <?php echo $venue_phone; ?>
25 25
 	</p>
26
-<?php endif;  ?>
27
-<?php if ( $venue_website = espresso_venue_website( $post->ID, FALSE )) : ?>
26
+<?php endif; ?>
27
+<?php if ($venue_website = espresso_venue_website($post->ID, FALSE)) : ?>
28 28
 	<p>
29
-		<span class="small-text"><strong><?php _e( 'Venue Website:', 'event_espresso' ); ?></strong></span> <?php echo $venue_website; ?>
29
+		<span class="small-text"><strong><?php _e('Venue Website:', 'event_espresso'); ?></strong></span> <?php echo $venue_website; ?>
30 30
 	</p>
31 31
 <?php endif; ?>
32
-<?php  if ( espresso_venue_has_address( $post->ID )) : ?>
33
-	<strong><span class="dashicons dashicons-location-alt"></span><?php _e( 'Address:', 'event_espresso' ); ?></strong>
34
-	<?php espresso_venue_address( 'inline' ); ?>
35
-	<?php espresso_venue_gmap( $post->ID ); ?>
32
+<?php  if (espresso_venue_has_address($post->ID)) : ?>
33
+	<strong><span class="dashicons dashicons-location-alt"></span><?php _e('Address:', 'event_espresso'); ?></strong>
34
+	<?php espresso_venue_address('inline'); ?>
35
+	<?php espresso_venue_gmap($post->ID); ?>
36 36
 	<div class="clear"><br/></div>
37
-<?php endif;  ?>
37
+<?php endif; ?>
38 38
 
39
-	<?php $VNU_ID = espresso_venue_id( $post->ID ); ?>
40
-	<?php if ( is_single() ) : ?>
41
-		<?php $venue_description = espresso_venue_description( $VNU_ID, FALSE ); ?>
42
-		<?php if ( $venue_description ) : ?>
39
+	<?php $VNU_ID = espresso_venue_id($post->ID); ?>
40
+	<?php if (is_single()) : ?>
41
+		<?php $venue_description = espresso_venue_description($VNU_ID, FALSE); ?>
42
+		<?php if ($venue_description) : ?>
43 43
 	<p>
44
-		<strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/>
45
-		<?php echo do_shortcode( $venue_description ); ?>
44
+		<strong><?php _e('Description:', 'event_espresso'); ?></strong><br/>
45
+		<?php echo do_shortcode($venue_description); ?>
46 46
 	</p>
47
-		<?php endif;  ?>
47
+		<?php endif; ?>
48 48
 	<?php else : ?>
49
-		<?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE ); ?>
50
-		<?php if ( $venue_excerpt ) : ?>
49
+		<?php $venue_excerpt = espresso_venue_excerpt($VNU_ID, FALSE); ?>
50
+		<?php if ($venue_excerpt) : ?>
51 51
 	<p>
52
-		<strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/>
52
+		<strong><?php _e('Description:', 'event_espresso'); ?></strong><br/>
53 53
 		<?php echo $venue_excerpt; ?>
54 54
 	</p>
55
-			<?php endif;  ?>
56
-		<?php endif;  ?>
55
+			<?php endif; ?>
56
+		<?php endif; ?>
57 57
 </div>
58 58
 <!-- .espresso-venue-dv -->
59 59
 <?php
60
-do_action( 'AHEE_event_details_after_venue_details', $post );
60
+do_action('AHEE_event_details_after_venue_details', $post);
61 61
 else :
62
-	if ( espresso_venue_is_password_protected() ) :
62
+	if (espresso_venue_is_password_protected()) :
63 63
 ?>
64 64
 	<div class="espresso-venue-dv  espresso-password-protected-venue-dv" >
65 65
 		<h3 class="event-venues-h3 ee-event-h3">
66
-			<?php _e( 'Location', 'event_espresso' );?>
66
+			<?php _e('Location', 'event_espresso'); ?>
67 67
 		</h3>
68 68
 		<?php echo espresso_password_protected_venue_form(); ?>
69 69
 	</div>
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Year_Input.input.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION'))
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('No direct script access allowed');
4 4
 
5 5
 /**
@@ -24,18 +24,18 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * ------------------------------------------------------------------------
26 26
  */
27
-class EE_Year_Input extends EE_Select_Input{
27
+class EE_Year_Input extends EE_Select_Input {
28 28
 
29
-	function __construct( $input_settings = array(), $four_digit_year = true, $years_behind = 100, $years_ahead = 0 ){
30
-		if($four_digit_year){
29
+	function __construct($input_settings = array(), $four_digit_year = true, $years_behind = 100, $years_ahead = 0) {
30
+		if ($four_digit_year) {
31 31
 			$current_year_int = intval(date('Y'));
32
-		}else{
32
+		} else {
33 33
 			$current_year_int = intval(date('y'));
34 34
 		}
35 35
 		$answer_options = array();
36
-		for( $start = $current_year_int - $years_behind; $start <= ($current_year_int + $years_ahead); $start++){
36
+		for ($start = $current_year_int - $years_behind; $start <= ($current_year_int + $years_ahead); $start++) {
37 37
 			$answer_options[$start] = $start;
38 38
 		}
39
-		parent::__construct( $answer_options, $input_settings );
39
+		parent::__construct($answer_options, $input_settings);
40 40
 	}
41 41
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION'))
2
+if (!defined('EVENT_ESPRESSO_VERSION')) {
3 3
 	exit('No direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
@@ -29,7 +30,7 @@  discard block
 block discarded – undo
29 30
 	function __construct( $input_settings = array(), $four_digit_year = true, $years_behind = 100, $years_ahead = 0 ){
30 31
 		if($four_digit_year){
31 32
 			$current_year_int = intval(date('Y'));
32
-		}else{
33
+		} else{
33 34
 			$current_year_int = intval(date('y'));
34 35
 		}
35 36
 		$answer_options = array();
Please login to merge, or discard this patch.
admin_pages/messages/qtips/EE_Message_List_Table_Tips.lib.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 	protected function _set_tips_array() {
19 19
 		$this->_qtipsa = array(
20 20
 			0 => array(
21
-				'content_id' => 'message_status-' . EEM_Message::status_sent,
22
-				'target' => '.msg-status-' . EEM_Message::status_sent,
23
-				'content' => $this->_message_status_legend( EEM_Message::status_sent ),
21
+				'content_id' => 'message_status-'.EEM_Message::status_sent,
22
+				'target' => '.msg-status-'.EEM_Message::status_sent,
23
+				'content' => $this->_message_status_legend(EEM_Message::status_sent),
24 24
 				'options' => array(
25 25
 					'position' => array(
26 26
 						'target' => 'mouse',
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
 					)
29 29
 				),
30 30
 			1 => array(
31
-				'content_id' => 'message_status-' . EEM_Message::status_idle,
32
-				'target' => '.msg-status-' . EEM_Message::status_idle,
33
-				'content' => $this->_message_status_legend( EEM_Message::status_idle ),
31
+				'content_id' => 'message_status-'.EEM_Message::status_idle,
32
+				'target' => '.msg-status-'.EEM_Message::status_idle,
33
+				'content' => $this->_message_status_legend(EEM_Message::status_idle),
34 34
 				'options' => array(
35 35
 					'position' => array(
36 36
 						'target' => 'mouse',
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 					)
39 39
 				),
40 40
 			2 => array(
41
-				'content_id' => 'message_status-' . EEM_Message::status_failed,
42
-				'target' => '.msg-status-' . EEM_Message::status_failed,
43
-				'content' => $this->_message_status_legend( EEM_Message::status_failed ),
41
+				'content_id' => 'message_status-'.EEM_Message::status_failed,
42
+				'target' => '.msg-status-'.EEM_Message::status_failed,
43
+				'content' => $this->_message_status_legend(EEM_Message::status_failed),
44 44
 				'options' => array(
45 45
 					'position' => array(
46 46
 						'target' => 'mouse',
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
 					)
49 49
 				),
50 50
 			3 => array(
51
-				'content_id' => 'message_status-' . EEM_Message::status_resend,
52
-				'target' => '.msg-status-' . EEM_Message::status_resend,
53
-				'content' => $this->_message_status_legend( EEM_Message::status_resend ),
51
+				'content_id' => 'message_status-'.EEM_Message::status_resend,
52
+				'target' => '.msg-status-'.EEM_Message::status_resend,
53
+				'content' => $this->_message_status_legend(EEM_Message::status_resend),
54 54
 				'options' => array(
55 55
 					'position' => array(
56 56
 						'target' => 'mouse',
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
 					)
59 59
 				),
60 60
 			4 => array(
61
-				'content_id' => 'message_status-' . EEM_Message::status_incomplete,
62
-				'target' => '.msg-status-' . EEM_Message::status_incomplete,
63
-				'content' => $this->_message_status_legend( EEM_Message::status_incomplete ),
61
+				'content_id' => 'message_status-'.EEM_Message::status_incomplete,
62
+				'target' => '.msg-status-'.EEM_Message::status_incomplete,
63
+				'content' => $this->_message_status_legend(EEM_Message::status_incomplete),
64 64
 				'options' => array(
65 65
 					'position' => array(
66 66
 						'target' => 'mouse',
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
 					)
69 69
 				),
70 70
 			5 => array(
71
-				'content_id' => 'message_status-' . EEM_Message::status_retry,
72
-				'target' => '.msg-status-' . EEM_Message::status_retry,
73
-				'content' => $this->_message_status_legend( EEM_Message::status_retry ),
71
+				'content_id' => 'message_status-'.EEM_Message::status_retry,
72
+				'target' => '.msg-status-'.EEM_Message::status_retry,
73
+				'content' => $this->_message_status_legend(EEM_Message::status_retry),
74 74
 				'options' => array(
75 75
 					'position' => array(
76 76
 						'target' => 'mouse',
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
 					)
79 79
 				),
80 80
 			6 => array(
81
-				'content_id' => 'message_status-' . EEM_Message::status_debug_only,
82
-				'target' => '.msg-status-' . EEM_Message::status_debug_only,
83
-				'content' => $this->_message_status_legend( EEM_Message::status_debug_only ),
81
+				'content_id' => 'message_status-'.EEM_Message::status_debug_only,
82
+				'target' => '.msg-status-'.EEM_Message::status_debug_only,
83
+				'content' => $this->_message_status_legend(EEM_Message::status_debug_only),
84 84
 				'options' => array(
85 85
 					'position' => array(
86 86
 						'target' => 'mouse',
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 	 * @param  EEM_Message constant $status What status is set (by class)
100 100
 	 * @return string         The status legend with the related status highlighted
101 101
 	 */
102
-	private function _message_status_legend( $status ) {
102
+	private function _message_status_legend($status) {
103 103
 
104 104
 		$status_array = array(
105 105
 			'sent_status' => EEM_Message::status_sent,
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
 			'retry_status' => EEM_Message::status_retry,
111 111
 			);
112 112
 
113
-		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
113
+		if (defined('WP_DEBUG') && WP_DEBUG) {
114 114
 			$status_array['debug_only_status'] = EEM_Message::status_debug_only;
115 115
 		}
116 116
 
117
-		return EEH_Template::status_legend( $status_array, $status );
117
+		return EEH_Template::status_legend($status_array, $status);
118 118
 	}
119 119
 }
120 120
\ No newline at end of file
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_Text_Area_Input.input.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  *
9 9
  * This input has a default validation strategy of plaintext (which can be removed after construction)
10 10
  */
11
-class EE_Text_Area_Input extends EE_Form_Input_Base{
11
+class EE_Text_Area_Input extends EE_Form_Input_Base {
12 12
 
13 13
 
14 14
 	protected $_rows = 2;
@@ -18,28 +18,28 @@  discard block
 block discarded – undo
18 18
 	 * sets the rows property on this input
19 19
 	 * @param int $rows
20 20
 	 */
21
-	public function set_rows( $rows ) {
21
+	public function set_rows($rows) {
22 22
 		$this->_rows = $rows;
23 23
 	}
24 24
 	/**
25 25
 	 * sets the cols html property on this input
26 26
 	 * @param int $cols
27 27
 	 */
28
-	public function set_cols( $cols ) {
28
+	public function set_cols($cols) {
29 29
 		$this->_cols = $cols;
30 30
 	}
31 31
 	/**
32 32
 	 *
33 33
 	 * @return int
34 34
 	 */
35
-	public function get_rows(){
35
+	public function get_rows() {
36 36
 		return $this->_rows;
37 37
 	}
38 38
 	/**
39 39
 	 *
40 40
 	 * @return int
41 41
 	 */
42
-	public function get_cols(){
42
+	public function get_cols() {
43 43
 		return $this->_cols;
44 44
 	}
45 45
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		
58 58
 		//if the input hasn't specifically mentioned a more lenient validation strategy, 
59 59
 		//apply plaintext validation strategy
60
-		if( ! $this->has_validation_strategy( 
60
+		if ( ! $this->has_validation_strategy( 
61 61
 				array(
62 62
 					'EE_Full_HTML_Validation_Strategy',
63 63
 					'EE_Simple_HTML_Validation_Strategy'
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 		) {
67 67
 			//by default we use the plaintext validation. If you want something else,
68 68
 			//just remove it after the input is constructed :P using EE_Form_Input_Base::remove_validation_strategy()
69
-			$this->_add_validation_strategy( new EE_Plaintext_Validation_Strategy() );
69
+			$this->_add_validation_strategy(new EE_Plaintext_Validation_Strategy());
70 70
 		}
71 71
 	}
72 72
 }
Please login to merge, or discard this patch.
help_tabs/registration_form_reg_form_settings.help_tab.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,15 +3,15 @@
 block discarded – undo
3 3
 <?php _e('This page shows options for Email Validation, the EE "Bot Trap" and reCAPTCHA which can help prevent SPAM registrations on your site.', 'event_espresso'); ?>
4 4
 </p>
5 5
 <div id="email_validation_info">
6
-<p><strong><?php _e('Email Validation', 'event_espresso');?></strong></p>
6
+<p><strong><?php _e('Email Validation', 'event_espresso'); ?></strong></p>
7 7
 <p><?php _e("Validating an email address is extremely difficult to do correctly. Your server's configuration, as well as your own tolerances and needs, can affect the type of validation needed. We offer different types of validation so that you can control how strict your registration form responds to entered email addresses. If you are receiving too many bogus email addresses, then you can try the WordPress Default validation setting. If you find that the form validation is blocking a valid email address you can try the Basic setting, or if available, the International validation settings.", 'event_espresso'); ?>
8 8
 </p>
9
-<p><strong><?php _e('Validation Options:', 'event_espresso' );?></strong></p>
9
+<p><strong><?php _e('Validation Options:', 'event_espresso'); ?></strong></p>
10 10
 <ul>
11 11
 <li>
12 12
 	<?php _e('"Basic" - only checks that an email address follows the most basic structure guidelines ( ie: [email protected] ). Will work with the widest range of email addresses but will also allow the most garbage through.', 'event_espresso'); ?></li>
13 13
 <li>
14
-	<?php _e('"WordPress Default" - uses built in WordPress email validation, but does not support unicode characters (ie: international characters from non-latin based languages).','event_espresso'); ?></li>
14
+	<?php _e('"WordPress Default" - uses built in WordPress email validation, but does not support unicode characters (ie: international characters from non-latin based languages).', 'event_espresso'); ?></li>
15 15
 <li>
16 16
 	<?php _e('"International" - supports unicode characters but may not be supported by all server configurations. Try this first if you need to international language support, but drop back down to "Basic" if your server configuration conflicts.', 'event_espresso'); ?>
17 17
 </li>
Please login to merge, or discard this patch.
core/middleware/EE_Middleware.core.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @access 	public
44 44
 	 * @param 	\EEI_Request_Decorator $request_stack
45 45
 	 */
46
-	public function __construct( EEI_Request_Decorator $request_stack ) {
46
+	public function __construct(EEI_Request_Decorator $request_stack) {
47 47
 		$this->_request_stack = $request_stack;
48 48
 	}
49 49
 
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
 	 * @param 	EE_Response $response
58 58
 	 * @return 	EE_Response
59 59
 	 */
60
-	protected function process_request_stack( EE_Request $request, EE_Response $response ) {
60
+	protected function process_request_stack(EE_Request $request, EE_Response $response) {
61 61
 		$this->_request = $request;
62 62
 		$this->_response = $response;
63
-		if ( ! $this->_response->request_terminated() ) {
64
-			$this->_response = $this->_request_stack->handle_request( $this->_request, $this->_response );
63
+		if ( ! $this->_response->request_terminated()) {
64
+			$this->_response = $this->_request_stack->handle_request($this->_request, $this->_response);
65 65
 		}
66 66
 		return $this->_response;
67 67
 	}
Please login to merge, or discard this patch.
core/middleware/EE_Alpha_Banner_Warning.core.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 	 * @param 	EE_Response $response
22 22
 	 * @return 	EE_Response
23 23
 	 */
24
-	public function handle_request( EE_Request $request, EE_Response $response ) {
24
+	public function handle_request(EE_Request $request, EE_Response $response) {
25 25
 		$this->_request = $request;
26 26
 		$this->_response = $response;
27 27
 		$this->display_alpha_banner_warning();
28
-		$this->_response = $this->process_request_stack( $this->_request, $this->_response );
28
+		$this->_response = $this->process_request_stack($this->_request, $this->_response);
29 29
 		return $this->_response;
30 30
 	}
31 31
 
@@ -41,22 +41,22 @@  discard block
 block discarded – undo
41 41
 	 */
42 42
 	public function display_alpha_banner_warning() {
43 43
 		// skip AJAX requests
44
-		if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
44
+		if (defined('DOING_AJAX') && DOING_AJAX) {
45 45
 			return;
46 46
 		}
47 47
 		// skip stable releases
48
-		if ( strpos( EVENT_ESPRESSO_VERSION, '.alpha' ) === false ) {
48
+		if (strpos(EVENT_ESPRESSO_VERSION, '.alpha') === false) {
49 49
 			return;
50 50
 		}
51 51
 		// post release candidate warning
52
-		if ( is_admin() ) {
53
-			add_action( 'admin_notices', array( $this, 'alpha_banner_admin_notice' ), -999 );
52
+		if (is_admin()) {
53
+			add_action('admin_notices', array($this, 'alpha_banner_admin_notice'), -999);
54 54
 		} else {
55 55
 			// site admin has authorized use of non-stable release candidate for production
56
-			if ( defined( 'ALLOW_NON_STABLE_RELEASE_ON_LIVE_SITE' ) && ALLOW_NON_STABLE_RELEASE_ON_LIVE_SITE ) {
56
+			if (defined('ALLOW_NON_STABLE_RELEASE_ON_LIVE_SITE') && ALLOW_NON_STABLE_RELEASE_ON_LIVE_SITE) {
57 57
 				return;
58 58
 			}
59
-			add_action( 'shutdown', array( $this, 'alpha_banner_warning_notice' ), 10 );
59
+			add_action('shutdown', array($this, 'alpha_banner_warning_notice'), 10);
60 60
 		}
61 61
 	}
62 62
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	public function alpha_banner_admin_notice() {
73 73
 		EE_Error::add_attention(
74 74
 			sprintf(
75
-				__( 'This version of Event Espresso is for testing and/or evaluation purposes only. It is %1$snot%2$s considered a stable release and should therefore %1$snot%2$s be activated on a live or production website.', 'event_espresso' ),
75
+				__('This version of Event Espresso is for testing and/or evaluation purposes only. It is %1$snot%2$s considered a stable release and should therefore %1$snot%2$s be activated on a live or production website.', 'event_espresso'),
76 76
 				'<strong>',
77 77
 				'</strong>'
78 78
 			),
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public function alpha_banner_warning_notice() {
93 93
 		printf(
94
-			__( '%1$sThis version of Event Espresso is for testing and/or evaluation purposes only. It is %2$snot%3$s considered a stable release and should therefore %2$snot%3$s be activated on a live or production website.%4$s', 'event_espresso' ),
94
+			__('%1$sThis version of Event Espresso is for testing and/or evaluation purposes only. It is %2$snot%3$s considered a stable release and should therefore %2$snot%3$s be activated on a live or production website.%4$s', 'event_espresso'),
95 95
 			'<div id="ee-release-candidate-notice-dv" class="ee-really-important-notice-dv"><p>',
96 96
 			'<strong>',
97 97
 			'</strong>',
Please login to merge, or discard this patch.
core/request_stack/EE_Request_Stack.core.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @param 	EEI_Request_Decorator $application
44 44
 	 * @param 	array $middlewares
45 45
 	 */
46
-	public function __construct( EEI_Request_Decorator $application, $middlewares = array() ) {
46
+	public function __construct(EEI_Request_Decorator $application, $middlewares = array()) {
47 47
 		$this->_application = $application;
48 48
 		$this->_middlewares = $middlewares;
49 49
 	}
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
 	 * @param 	EE_Response $response
56 56
 	 * @return 	EE_Response
57 57
 	 */
58
-	public function handle_request( EE_Request $request, EE_Response $response ) {
58
+	public function handle_request(EE_Request $request, EE_Response $response) {
59 59
 		$this->_request = $request;
60 60
 		$this->_response = $response;
61
-		return $this->_application->handle_request( $request, $response );
61
+		return $this->_application->handle_request($request, $response);
62 62
 	}
63 63
 
64 64
 
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
 	 * after the request stack has been fully processed
70 70
 	 */
71 71
 	public function handle_response() {
72
-		foreach ( $this->_middlewares as $middleware ) {
73
-			if ( $middleware instanceof EEI_Request_Stack_Core_App ) {
74
-				$middleware->handle_response( $this->_request, $this->_response );
72
+		foreach ($this->_middlewares as $middleware) {
73
+			if ($middleware instanceof EEI_Request_Stack_Core_App) {
74
+				$middleware->handle_response($this->_request, $this->_response);
75 75
 				// exit loop since we should be done
76 76
 				// (also in case someone has accidentally labeled multiple apps as the EEI_Request_Stack_Core_App )
77 77
 				break;
Please login to merge, or discard this patch.