Completed
Branch ENH-9001-hhvm-max-input-vars (e4c045)
by
unknown
420:15 queued 404:38
created
core/request_stack/EE_Request_Stack_Builder.core.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
44 44
 	 * @return EE_Request_Stack_Builder
45 45
 	 */
46 46
 	public function unshift( /*$class_name, $args*/ ) {
47
-		if ( func_num_args() === 0 ) {
48
-			throw new InvalidArgumentException( "Missing argument(s) when calling unshift" );
47
+		if (func_num_args() === 0) {
48
+			throw new InvalidArgumentException("Missing argument(s) when calling unshift");
49 49
 		}
50 50
 		$middleware = func_get_args();
51 51
 		//$this->middleware_stack->unshift( $middleware );
52
-		array_unshift( $this->_middleware_stack, $middleware );
52
+		array_unshift($this->_middleware_stack, $middleware);
53 53
 		return $this;
54 54
 	}
55 55
 
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
 	 * @return EE_Request_Stack_Builder
67 67
 	 */
68 68
 	public function push( /*$class_name, $args...*/ ) {
69
-		if ( func_num_args() === 0 ) {
70
-			throw new InvalidArgumentException( "Missing argument(s) when calling push" );
69
+		if (func_num_args() === 0) {
70
+			throw new InvalidArgumentException("Missing argument(s) when calling push");
71 71
 		}
72 72
 		$middleware = func_get_args();
73 73
 		//$this->middleware_stack->push( $middleware );
74
-		array_push( $this->_middleware_stack, $middleware );
74
+		array_push($this->_middleware_stack, $middleware);
75 75
 		return $this;
76 76
 	}
77 77
 
@@ -84,20 +84,20 @@  discard block
 block discarded – undo
84 84
 	 * @param EEI_Request_Decorator $application
85 85
 	 * @return EE_Request_Stack
86 86
 	 */
87
-	public function resolve( EEI_Request_Decorator $application ) {
88
-		$middlewares = array( $application );
89
-		foreach ( $this->_middleware_stack as $middleware_args ) {
90
-			$class_name = array_shift( $middleware_args );
91
-			if ( is_callable( $class_name ) ) {
92
-				$application = $class_name( $application );
87
+	public function resolve(EEI_Request_Decorator $application) {
88
+		$middlewares = array($application);
89
+		foreach ($this->_middleware_stack as $middleware_args) {
90
+			$class_name = array_shift($middleware_args);
91
+			if (is_callable($class_name)) {
92
+				$application = $class_name($application);
93 93
 			} else {
94
-				array_unshift( $middleware_args, $application );
95
-				$reflection = new ReflectionClass( $class_name );
96
-				$application = $reflection->newInstanceArgs( $middleware_args );
94
+				array_unshift($middleware_args, $application);
95
+				$reflection = new ReflectionClass($class_name);
96
+				$application = $reflection->newInstanceArgs($middleware_args);
97 97
 			}
98
-			array_unshift( $middlewares, $application );
98
+			array_unshift($middlewares, $application);
99 99
 		}
100
-		return new EE_Request_Stack( $application, $middlewares );
100
+		return new EE_Request_Stack($application, $middlewares);
101 101
 	}
102 102
 
103 103
 
Please login to merge, or discard this patch.
core/request_stack/EE_Response.core.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @return \EE_Response
41 41
 	 */
42 42
 	public function __construct() {
43
-		$this->terminate_request( false );
43
+		$this->terminate_request(false);
44 44
 	}
45 45
 
46 46
 
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
 	 * @param $value
54 54
 	 * @return    void
55 55
 	 */
56
-	public function set_notice( $key, $value ) {
57
-		$this->_notice[ $key ] = $value;
56
+	public function set_notice($key, $value) {
57
+		$this->_notice[$key] = $value;
58 58
 	}
59 59
 
60 60
 
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
 	 * @param $key
67 67
 	 * @return    mixed
68 68
 	 */
69
-	public function get_notice( $key ) {
70
-		return isset( $this->_notice[ $key ] ) ? $this->_notice[ $key ] : NULL;
69
+	public function get_notice($key) {
70
+		return isset($this->_notice[$key]) ? $this->_notice[$key] : NULL;
71 71
 	}
72 72
 
73 73
 
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
 	 * @param $string
92 92
 	 * @param bool $append
93 93
 	 */
94
-	public function add_output( $string, $append = true ) {
95
-		$this->_output = $append ? $this->_output . $string : $string . $this->_output;
94
+	public function add_output($string, $append = true) {
95
+		$this->_output = $append ? $this->_output.$string : $string.$this->_output;
96 96
 	}
97 97
 
98 98
 
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
 	/**
122 122
 	 * @param boolean $request_terminated
123 123
 	 */
124
-	public function terminate_request( $request_terminated = true ) {
125
-		$this->request_terminated = filter_var( $request_terminated, FILTER_VALIDATE_BOOLEAN );
124
+	public function terminate_request($request_terminated = true) {
125
+		$this->request_terminated = filter_var($request_terminated, FILTER_VALIDATE_BOOLEAN);
126 126
 	}
127 127
 
128 128
 
Please login to merge, or discard this patch.
modules/event_single/EED_Event_Single.module.php 1 patch
Spacing   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 * @return EED_Event_Single
36 36
 	 */
37 37
 	public static function instance() {
38
-		return parent::get_instance( __CLASS__ );
38
+		return parent::get_instance(__CLASS__);
39 39
 	}
40 40
 
41 41
 
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 	 *  @return 	void
48 48
 	 */
49 49
 	public static function set_hooks() {
50
-		add_filter( 'FHEE_run_EE_wp', '__return_true' );
51
-		add_action( 'wp_loaded', array( 'EED_Event_Single', 'set_definitions' ), 2 );
52
-		EE_Config::register_route( __( 'event', 'event_espresso' ), 'Event_Single', 'run' );
50
+		add_filter('FHEE_run_EE_wp', '__return_true');
51
+		add_action('wp_loaded', array('EED_Event_Single', 'set_definitions'), 2);
52
+		EE_Config::register_route(__('event', 'event_espresso'), 'Event_Single', 'run');
53 53
 	}
54 54
 
55 55
 	/**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 *  @return 	void
60 60
 	 */
61 61
 	public static function set_hooks_admin() {
62
-		add_action( 'wp_loaded', array( 'EED_Event_Single', 'set_definitions' ), 2 );
62
+		add_action('wp_loaded', array('EED_Event_Single', 'set_definitions'), 2);
63 63
 	}
64 64
 
65 65
 
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
 	 * @return void
74 74
 	 */
75 75
 	public static function set_definitions() {
76
-		define( 'EVENT_SINGLE_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets' . DS );
77
-		define( 'EVENT_SINGLE_TEMPLATES_PATH', plugin_dir_path( __FILE__ ) . 'templates' . DS );
76
+		define('EVENT_SINGLE_ASSETS_URL', plugin_dir_url(__FILE__).'assets'.DS);
77
+		define('EVENT_SINGLE_TEMPLATES_PATH', plugin_dir_path(__FILE__).'templates'.DS);
78 78
 	}
79 79
 
80 80
 
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
 	 *
85 85
 	 * @void
86 86
 	 */
87
-	protected function set_config(){
88
-		$this->set_config_section( 'template_settings' );
89
-		$this->set_config_class( 'EE_Event_Single_Config' );
90
-		$this->set_config_name( 'EED_Event_Single' );
87
+	protected function set_config() {
88
+		$this->set_config_section('template_settings');
89
+		$this->set_config_class('EE_Event_Single_Config');
90
+		$this->set_config_name('EED_Event_Single');
91 91
 	}
92 92
 
93 93
 
@@ -100,35 +100,35 @@  discard block
 block discarded – undo
100 100
 	 * @param \EE_Event_Single_Config $config
101 101
 	 * @return \EE_Template_Part_Manager
102 102
 	 */
103
-	public function initialize_template_parts( EE_Event_Single_Config $config = null ) {
103
+	public function initialize_template_parts(EE_Event_Single_Config $config = null) {
104 104
 		$config = $config instanceof EE_Event_Single_Config ? $config : $this->config();
105 105
 		EEH_Autoloader::instance()->register_template_part_autoloaders();
106 106
 		$template_parts = new EE_Template_Part_Manager();
107 107
 		$template_parts->add_template_part(
108 108
 			'tickets',
109
-			__( 'Ticket Selector', 'event_espresso' ),
109
+			__('Ticket Selector', 'event_espresso'),
110 110
 			'content-espresso_events-tickets.php',
111 111
 			$config->display_order_tickets
112 112
 		);
113 113
 		$template_parts->add_template_part(
114 114
 			'datetimes',
115
-			__( 'Dates and Times', 'event_espresso' ),
115
+			__('Dates and Times', 'event_espresso'),
116 116
 			'content-espresso_events-datetimes.php',
117 117
 			$config->display_order_datetimes
118 118
 		);
119 119
 		$template_parts->add_template_part(
120 120
 			'event',
121
-			__( 'Event Description', 'event_espresso' ),
121
+			__('Event Description', 'event_espresso'),
122 122
 			'content-espresso_events-details.php',
123 123
 			$config->display_order_event
124 124
 		);
125 125
 		$template_parts->add_template_part(
126 126
 			'venue',
127
-			__( 'Venue Information', 'event_espresso' ),
127
+			__('Venue Information', 'event_espresso'),
128 128
 			'content-espresso_events-venues.php',
129 129
 			$config->display_order_venue
130 130
 		);
131
-		do_action( 'AHEE__EED_Event_Single__initialize_template_parts', $template_parts );
131
+		do_action('AHEE__EED_Event_Single__initialize_template_parts', $template_parts);
132 132
 		return $template_parts;
133 133
 	}
134 134
 
@@ -142,15 +142,15 @@  discard block
 block discarded – undo
142 142
 	 * @param WP $WP
143 143
 	 * @return    void
144 144
 	 */
145
-	public function run( $WP ) {
145
+	public function run($WP) {
146 146
 		// ensure valid EE_Events_Single_Config() object exists
147 147
 		$this->set_config();
148 148
 		// check what template is loaded
149
-		add_filter( 'template_include',  array( $this, 'template_include' ), 999, 1 );
150
-		add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' );
149
+		add_filter('template_include', array($this, 'template_include'), 999, 1);
150
+		add_filter('FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true');
151 151
 		// load css
152
-		add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 );
153
-		EE_Registry::instance()->load_helper( 'Venue_View' );
152
+		add_action('wp_enqueue_scripts', array($this, 'wp_enqueue_scripts'), 10);
153
+		EE_Registry::instance()->load_helper('Venue_View');
154 154
 	}
155 155
 
156 156
 
@@ -162,25 +162,25 @@  discard block
 block discarded – undo
162 162
 	 * @param 	string $template
163 163
 	 * @return 	string
164 164
 	 */
165
-	public function template_include( $template ) {
165
+	public function template_include($template) {
166 166
 		global $post;
167 167
 		/** @type EE_Event_Single_Config $config */
168 168
 		$config = $this->config();
169
-		if ( $config->display_status_banner_single ) {
170
-			add_filter( 'the_title', array( 'EED_Event_Single', 'the_title' ), 100, 2 );
169
+		if ($config->display_status_banner_single) {
170
+			add_filter('the_title', array('EED_Event_Single', 'the_title'), 100, 2);
171 171
 		}
172 172
 		// not a custom template?
173 173
 		if (
174 174
 			EE_Front_Controller::instance()->get_selected_template() != 'single-espresso_events.php'
175
-			&& ! post_password_required( $post )
175
+			&& ! post_password_required($post)
176 176
 		) {
177 177
 			EEH_Template::load_espresso_theme_functions();
178 178
 			// then add extra event data via hooks
179
-			add_action( 'loop_start', array( 'EED_Event_Single', 'loop_start' ));
180
-			add_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
181
-			add_action( 'loop_end', array( 'EED_Event_Single', 'loop_end' ));
179
+			add_action('loop_start', array('EED_Event_Single', 'loop_start'));
180
+			add_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
181
+			add_action('loop_end', array('EED_Event_Single', 'loop_end'));
182 182
 			// don't display entry meta because the existing theme will take car of that
183
-			add_filter( 'FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false' );
183
+			add_filter('FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false');
184 184
 		}
185 185
 		return $template;
186 186
 	}
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 	 * @param 	array $wp_query_array an array containing the WP_Query object
195 195
 	 * @return 	void
196 196
 	 */
197
-	public static function loop_start( $wp_query_array ) {
197
+	public static function loop_start($wp_query_array) {
198 198
 		global $post;
199
-		do_action( 'AHEE_event_details_before_post', $post, $wp_query_array );
199
+		do_action('AHEE_event_details_before_post', $post, $wp_query_array);
200 200
 	}
201 201
 
202 202
 
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
 	 * @param 	int 	$id
210 210
 	 * @return 	string
211 211
 	 */
212
-	public static function the_title( $title = '', $id = 0 ) {
212
+	public static function the_title($title = '', $id = 0) {
213 213
 		global $post;
214
-		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner( $post->ID ) . $title :  $title;
214
+		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner($post->ID).$title : $title;
215 215
 	}
216 216
 
217 217
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 	 * @param 	string 	$content
223 223
 	 * @return 	string
224 224
 	 */
225
-	public static function event_details( $content ) {
225
+	public static function event_details($content) {
226 226
 		global $post;
227 227
 		static $current_post_ID = 0;
228 228
 		if (
@@ -236,15 +236,15 @@  discard block
 block discarded – undo
236 236
 			// We want to allow those plugins to still do their thing and have access to our content, but depending on
237 237
 			// how your event content is being displayed (shortcode, CPT route, etc), this filter can get applied twice,
238 238
 			// so the following allows this filter to be applied multiple times, but only once for real
239
-			$current_post_ID = did_action( 'loop_start' ) ? $post->ID : 0;
240
-			if ( EE_Registry::instance()->CFG->template_settings->EED_Event_Single->use_sortable_display_order ) {
239
+			$current_post_ID = did_action('loop_start') ? $post->ID : 0;
240
+			if (EE_Registry::instance()->CFG->template_settings->EED_Event_Single->use_sortable_display_order) {
241 241
 				// we need to first remove this callback from being applied to the_content()
242 242
 				// (otherwise it will recurse and blow up the interweb)
243
-				remove_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
243
+				remove_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
244 244
 				EED_Event_Single::instance()->template_parts = EED_Event_Single::instance()->initialize_template_parts();
245
-				$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
246
-				$content = EED_Event_Single::instance()->template_parts->apply_template_part_filters( $content );
247
-				add_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
245
+				$content = EEH_Template::locate_template('content-espresso_events-details.php');
246
+				$content = EED_Event_Single::instance()->template_parts->apply_template_part_filters($content);
247
+				add_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
248 248
 			} else {
249 249
 				$content = EED_Event_Single::use_filterable_display_order();
250 250
 			}
@@ -265,19 +265,19 @@  discard block
 block discarded – undo
265 265
 		// it uses the_content() for displaying the $post->post_content
266 266
 		// so in order to load a template that uses the_content() from within a callback being used to filter the_content(),
267 267
 		// we need to first remove this callback from being applied to the_content() (otherwise it will recurse and blow up the interweb)
268
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
268
+		remove_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
269 269
 		//now add additional content
270
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_datetimes' ), 110, 1 );
271
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), 120, 1 );
272
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_venues' ), 130, 1 );
273
-		do_action( 'AHEE__EED_Event_Single__use_filterable_display_order__after_add_filters' );
270
+		add_filter('the_content', array('EED_Event_Single', 'event_datetimes'), 110, 1);
271
+		add_filter('the_content', array('EED_Event_Single', 'event_tickets'), 120, 1);
272
+		add_filter('the_content', array('EED_Event_Single', 'event_venues'), 130, 1);
273
+		do_action('AHEE__EED_Event_Single__use_filterable_display_order__after_add_filters');
274 274
 		// now load our template
275
-		$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
275
+		$content = EEH_Template::locate_template('content-espresso_events-details.php');
276 276
 		//now add our filter back in, plus some others
277
-		add_filter( 'the_content', array( 'EED_Event_Single', 'event_details' ), 100 );
278
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_datetimes' ), 110 );
279
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_tickets' ), 120 );
280
-		remove_filter( 'the_content', array( 'EED_Event_Single', 'event_venues' ), 130 );
277
+		add_filter('the_content', array('EED_Event_Single', 'event_details'), 100);
278
+		remove_filter('the_content', array('EED_Event_Single', 'event_datetimes'), 110);
279
+		remove_filter('the_content', array('EED_Event_Single', 'event_tickets'), 120);
280
+		remove_filter('the_content', array('EED_Event_Single', 'event_venues'), 130);
281 281
 		// we're not returning the $content directly because the template we are loading uses the_content (or the_excerpt)
282 282
 		return $content;
283 283
 	}
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
 	 * @param        string $content
292 292
 	 * @return        string
293 293
 	 */
294
-	public static function event_datetimes( $content ) {
295
-		return EEH_Template::locate_template( 'content-espresso_events-datetimes.php' ) . $content;
294
+	public static function event_datetimes($content) {
295
+		return EEH_Template::locate_template('content-espresso_events-datetimes.php').$content;
296 296
 	}
297 297
 
298 298
 
@@ -304,8 +304,8 @@  discard block
 block discarded – undo
304 304
 	 * @param        string $content
305 305
 	 * @return        string
306 306
 	 */
307
-	public static function event_tickets( $content ) {
308
-		return EEH_Template::locate_template( 'content-espresso_events-tickets.php' ) . $content;
307
+	public static function event_tickets($content) {
308
+		return EEH_Template::locate_template('content-espresso_events-tickets.php').$content;
309 309
 	}
310 310
 
311 311
 
@@ -317,8 +317,8 @@  discard block
 block discarded – undo
317 317
 	 * @param 	string $content
318 318
 	 * @return 	string
319 319
 	 */
320
-	public static function event_venue( $content ) {
321
-		return EED_Event_Single::event_venues( $content );
320
+	public static function event_venue($content) {
321
+		return EED_Event_Single::event_venues($content);
322 322
 	}
323 323
 
324 324
 
@@ -330,8 +330,8 @@  discard block
 block discarded – undo
330 330
 	 * @param        string $content
331 331
 	 * @return        string
332 332
 	 */
333
-	public static function event_venues( $content ) {
334
-		return $content . EEH_Template::locate_template( 'content-espresso_events-venues.php' );
333
+	public static function event_venues($content) {
334
+		return $content.EEH_Template::locate_template('content-espresso_events-venues.php');
335 335
 	}
336 336
 
337 337
 
@@ -343,9 +343,9 @@  discard block
 block discarded – undo
343 343
 	 * 	@param		array 	$wp_query_array an array containing the WP_Query object
344 344
 	 *  	@return 		void
345 345
 	 */
346
-	public static function loop_end( $wp_query_array ) {
346
+	public static function loop_end($wp_query_array) {
347 347
 		global $post;
348
-		do_action( 'AHEE_event_details_after_post', $post, $wp_query_array );
348
+		do_action('AHEE_event_details_after_post', $post, $wp_query_array);
349 349
 	}
350 350
 
351 351
 
@@ -358,18 +358,18 @@  discard block
 block discarded – undo
358 358
 	 */
359 359
 	public function wp_enqueue_scripts() {
360 360
 		// get some style
361
-		if ( apply_filters( 'FHEE_enable_default_espresso_css', TRUE ) && apply_filters( 'FHEE__EED_Event_Single__wp_enqueue_scripts__enable_css', TRUE )) {
362
-			EE_Registry::instance()->load_helper( 'File' );
361
+		if (apply_filters('FHEE_enable_default_espresso_css', TRUE) && apply_filters('FHEE__EED_Event_Single__wp_enqueue_scripts__enable_css', TRUE)) {
362
+			EE_Registry::instance()->load_helper('File');
363 363
 			// first check uploads folder
364
-			if ( is_readable( get_stylesheet_directory() . $this->theme . DS . 'style.css' )) {
365
-				wp_register_style( $this->theme, get_stylesheet_directory_uri() . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ));
364
+			if (is_readable(get_stylesheet_directory().$this->theme.DS.'style.css')) {
365
+				wp_register_style($this->theme, get_stylesheet_directory_uri().$this->theme.DS.'style.css', array('dashicons', 'espresso_default'));
366 366
 			} else {
367
-				wp_register_style( $this->theme, EE_TEMPLATES_URL . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ));
367
+				wp_register_style($this->theme, EE_TEMPLATES_URL.$this->theme.DS.'style.css', array('dashicons', 'espresso_default'));
368 368
 			}
369
-			wp_enqueue_script( $this->theme );
370
-			if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) {
371
-				EE_Registry::instance()->load_helper( 'Maps' );
372
-				add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 );
369
+			wp_enqueue_script($this->theme);
370
+			if (EE_Registry::instance()->CFG->map_settings->use_google_maps) {
371
+				EE_Registry::instance()->load_helper('Maps');
372
+				add_action('wp_enqueue_scripts', array('EEH_Maps', 'espresso_google_map_js'), 11);
373 373
 			}
374 374
 		}
375 375
 	}
@@ -388,12 +388,12 @@  discard block
 block discarded – undo
388 388
 	 *  @return 	bool
389 389
 	 */
390 390
 	public static function display_venue() {
391
-		EE_Registry::instance()->load_helper( 'Venue_View' );
391
+		EE_Registry::instance()->load_helper('Venue_View');
392 392
 		/** @type EE_Event_Single_Config $config */
393 393
 		$config = EED_Event_Single::instance()->config();
394
-		$display_venue= isset( $config->display_venue ) ? $config->display_venue : TRUE;
394
+		$display_venue = isset($config->display_venue) ? $config->display_venue : TRUE;
395 395
 		$venue_name = EEH_Venue_View::venue_name();
396
-		return $display_venue && ! empty( $venue_name ) ? TRUE : FALSE;
396
+		return $display_venue && ! empty($venue_name) ? TRUE : FALSE;
397 397
 	}
398 398
 
399 399
 
Please login to merge, or discard this patch.
modules/events_archive/EED_Events_Archive.module.php 1 patch
Spacing   +188 added lines, -188 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 * @return EED_Events_Archive
39 39
 	 */
40 40
 	public static function instance() {
41
-		return parent::get_instance( __CLASS__ );
41
+		return parent::get_instance(__CLASS__);
42 42
 	}
43 43
 
44 44
 
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 	 *  @return 	void
51 51
 	 */
52 52
 	public static function set_hooks() {
53
-		EE_Config::register_route( EE_Registry::instance()->CFG->core->event_cpt_slug, 'Events_Archive', 'run' );
54
-		EE_Config::register_route( 'event_list', 'Events_Archive', 'event_list' );
55
-		add_action( 'wp_loaded', array( 'EED_Events_Archive', 'set_definitions' ), 2 );
53
+		EE_Config::register_route(EE_Registry::instance()->CFG->core->event_cpt_slug, 'Events_Archive', 'run');
54
+		EE_Config::register_route('event_list', 'Events_Archive', 'event_list');
55
+		add_action('wp_loaded', array('EED_Events_Archive', 'set_definitions'), 2);
56 56
 	}
57 57
 
58 58
 	/**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 *  @return 	void
63 63
 	 */
64 64
 	public static function set_hooks_admin() {
65
-		add_action( 'wp_loaded', array( 'EED_Events_Archive', 'set_definitions' ), 2 );
65
+		add_action('wp_loaded', array('EED_Events_Archive', 'set_definitions'), 2);
66 66
 	}
67 67
 
68 68
 
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
 	 *  @return 	void
76 76
 	 */
77 77
 	public static function set_definitions() {
78
-		define( 'EVENTS_ARCHIVE_ASSETS_URL', plugin_dir_url( __FILE__ ) . 'assets' . DS );
79
-		define( 'EVENTS_ARCHIVE_TEMPLATES_PATH', str_replace( '\\', DS, plugin_dir_path( __FILE__ )) . 'templates' . DS );
78
+		define('EVENTS_ARCHIVE_ASSETS_URL', plugin_dir_url(__FILE__).'assets'.DS);
79
+		define('EVENTS_ARCHIVE_TEMPLATES_PATH', str_replace('\\', DS, plugin_dir_path(__FILE__)).'templates'.DS);
80 80
 	}
81 81
 
82 82
 
@@ -86,10 +86,10 @@  discard block
 block discarded – undo
86 86
 	 *
87 87
 	 * @return \EE_Events_Archive_Config
88 88
 	 */
89
-	protected function set_config(){
90
-		$this->set_config_section( 'template_settings' );
91
-		$this->set_config_class( 'EE_Events_Archive_Config' );
92
-		$this->set_config_name( 'EED_Events_Archive' );
89
+	protected function set_config() {
90
+		$this->set_config_section('template_settings');
91
+		$this->set_config_class('EE_Events_Archive_Config');
92
+		$this->set_config_name('EED_Events_Archive');
93 93
 	}
94 94
 
95 95
 
@@ -101,35 +101,35 @@  discard block
 block discarded – undo
101 101
 	 * @param \EE_Events_Archive_Config $config
102 102
 	 * @return \EE_Template_Part_Manager
103 103
 	 */
104
-	public function initialize_template_parts( EE_Events_Archive_Config $config = null ) {
104
+	public function initialize_template_parts(EE_Events_Archive_Config $config = null) {
105 105
 		$config = $config instanceof EE_Events_Archive_Config ? $config : $this->config();
106 106
 		EEH_Autoloader::instance()->register_template_part_autoloaders();
107 107
 		$template_parts = new EE_Template_Part_Manager();
108 108
 		$template_parts->add_template_part(
109 109
 			'tickets',
110
-			__( 'Ticket Selector', 'event_espresso' ),
110
+			__('Ticket Selector', 'event_espresso'),
111 111
 			'content-espresso_events-tickets.php',
112 112
 			$config->display_order_tickets
113 113
 		);
114 114
 		$template_parts->add_template_part(
115 115
 			'datetimes',
116
-			__( 'Dates and Times', 'event_espresso' ),
116
+			__('Dates and Times', 'event_espresso'),
117 117
 			'content-espresso_events-datetimes.php',
118 118
 			$config->display_order_datetimes
119 119
 		);
120 120
 		$template_parts->add_template_part(
121 121
 			'event',
122
-			__( 'Event Description', 'event_espresso' ),
122
+			__('Event Description', 'event_espresso'),
123 123
 			'content-espresso_events-details.php',
124 124
 			$config->display_order_event
125 125
 		);
126 126
 		$template_parts->add_template_part(
127 127
 			'venue',
128
-			__( 'Venue Information', 'event_espresso' ),
128
+			__('Venue Information', 'event_espresso'),
129 129
 			'content-espresso_events-venues.php',
130 130
 			$config->display_order_venue
131 131
 		);
132
-		do_action( 'AHEE__EED_Event_Archive__initialize_template_parts', $template_parts );
132
+		do_action('AHEE__EED_Event_Archive__initialize_template_parts', $template_parts);
133 133
 		return $template_parts;
134 134
 	}
135 135
 
@@ -142,8 +142,8 @@  discard block
 block discarded – undo
142 142
 	 * @param WP $WP
143 143
 	 * @return    void
144 144
 	 */
145
-	public function run( $WP ) {
146
-		do_action( 'AHEE__EED_Events_Archive__before_run' );
145
+	public function run($WP) {
146
+		do_action('AHEE__EED_Events_Archive__before_run');
147 147
 		// ensure valid EE_Events_Archive_Config() object exists
148 148
 		$this->set_config();
149 149
 		/** @type EE_Events_Archive_Config $config */
@@ -151,19 +151,19 @@  discard block
 block discarded – undo
151 151
 		// load other required components
152 152
 		$this->load_event_list_assets();
153 153
 		// filter the WP posts_join, posts_where, and posts_orderby SQL clauses
154
-		EE_Registry::instance()->load_helper( 'Event_Query' );
154
+		EE_Registry::instance()->load_helper('Event_Query');
155 155
 		//add query filters
156 156
 		EEH_Event_Query::add_query_filters();
157 157
 		// set params that will get used by the filters
158 158
 		EEH_Event_Query::set_query_params(
159
-			'', 	// month
160
-			'', 	// category
161
-			$config->display_expired_events, 	// show_expired
162
-			'start_date', 	// orderby
159
+			'', // month
160
+			'', // category
161
+			$config->display_expired_events, // show_expired
162
+			'start_date', // orderby
163 163
 			'ASC' 	// sort
164 164
 		);
165 165
 		// check what template is loaded
166
-		add_filter( 'template_include',  array( $this, 'template_include' ), 999, 1 );
166
+		add_filter('template_include', array($this, 'template_include'), 999, 1);
167 167
 	}
168 168
 
169 169
 
@@ -195,30 +195,30 @@  discard block
 block discarded – undo
195 195
 	 * @param string $template
196 196
 	 * @return    string
197 197
 	 */
198
-	public function template_include( $template = '' ) {
198
+	public function template_include($template = '') {
199 199
 		// don't add content filter for dedicated EE child themes or private posts
200
-		EE_Registry::instance()->load_helper( 'Template' );
201
-		if ( ! EEH_Template::is_espresso_theme() ) {
200
+		EE_Registry::instance()->load_helper('Template');
201
+		if ( ! EEH_Template::is_espresso_theme()) {
202 202
 			/** @type EE_Events_Archive_Config $config */
203 203
 			$config = $this->config();
204 204
 			// add status banner ?
205
-			if ( $config->display_status_banner ) {
206
-				add_filter( 'the_title', array( 'EED_Events_Archive', 'the_title' ), 100, 2 );
205
+			if ($config->display_status_banner) {
206
+				add_filter('the_title', array('EED_Events_Archive', 'the_title'), 100, 2);
207 207
 			}
208 208
 			// if NOT a custom template
209
-			if ( EE_Front_Controller::instance()->get_selected_template() != 'archive-espresso_events.php' ) {
209
+			if (EE_Front_Controller::instance()->get_selected_template() != 'archive-espresso_events.php') {
210 210
 				// don't display entry meta because the existing theme will take care of that
211
-				add_filter( 'FHEE__EED_Events_Archive__template_include__events_list_active', '__return_true' );
211
+				add_filter('FHEE__EED_Events_Archive__template_include__events_list_active', '__return_true');
212 212
 				// load functions.php file for the theme (loaded by WP if using child theme)
213 213
 				EEH_Template::load_espresso_theme_functions();
214 214
 				// because we don't know if the theme is using the_excerpt()
215
-				add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
215
+				add_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100, 1);
216 216
 				// or the_content
217
-				add_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
217
+				add_filter('the_content', array('EED_Events_Archive', 'event_details'), 100, 1);
218 218
 				// and just in case they are running get_the_excerpt() which DESTROYS things
219
-				add_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1, 1 );
219
+				add_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1, 1);
220 220
 				// don't display entry meta because the existing theme will take care of that
221
-				add_filter( 'FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false' );
221
+				add_filter('FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false');
222 222
 			}
223 223
 		}
224 224
 		return $template;
@@ -233,14 +233,14 @@  discard block
 block discarded – undo
233 233
 	 * 	@param		string 	$excerpt
234 234
 	 * 	@return 		string
235 235
 	 */
236
-	public static function get_the_excerpt( $excerpt = '' ) {
237
-		if ( post_password_required() ) {
236
+	public static function get_the_excerpt($excerpt = '') {
237
+		if (post_password_required()) {
238 238
 			return $excerpt;
239 239
 		}
240
-		if ( apply_filters( 'FHEE__EED_Events_Archive__get_the_excerpt__theme_uses_get_the_excerpt', false ) ) {
241
-			remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
242
-			remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
243
-			$excerpt = EED_Events_Archive::event_details( $excerpt );
240
+		if (apply_filters('FHEE__EED_Events_Archive__get_the_excerpt__theme_uses_get_the_excerpt', false)) {
241
+			remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
242
+			remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
243
+			$excerpt = EED_Events_Archive::event_details($excerpt);
244 244
 		}
245 245
 		return $excerpt;
246 246
 	}
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
 	 * @param 		string 		$id
256 256
 	 * @return 		string
257 257
 	 */
258
-	public static function the_title( $title = '', $id = '' ) {
258
+	public static function the_title($title = '', $id = '') {
259 259
 	global $post;
260
-	if ( $post instanceof WP_Post ) {
261
-		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner( $post->ID  ) . $title :  $title;
260
+	if ($post instanceof WP_Post) {
261
+		return in_the_loop() && $post->ID == $id ? espresso_event_status_banner($post->ID).$title : $title;
262 262
 	}
263 263
 	return $title;
264 264
 }
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 	 * 	@param		string 	$content
273 273
 	 * 	@return 		string
274 274
 	 */
275
-	public static function event_details( $content ) {
275
+	public static function event_details($content) {
276 276
 		global $post;
277 277
 		static $current_post_ID = 0;
278 278
 		if (
@@ -280,8 +280,8 @@  discard block
 block discarded – undo
280 280
 			$post->post_type == 'espresso_events' &&
281 281
 			! post_password_required() &&
282 282
 			(
283
-				apply_filters( 'FHEE__EES_Espresso_Events__process_shortcode__true', false )
284
-				|| ! apply_filters( 'FHEE__content_espresso_events__template_loaded', false )
283
+				apply_filters('FHEE__EES_Espresso_Events__process_shortcode__true', false)
284
+				|| ! apply_filters('FHEE__content_espresso_events__template_loaded', false)
285 285
 			)
286 286
 		) {
287 287
 			// Set current post ID to prevent showing content twice, but only if headers have definitely been sent.
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
 			// We want to allow those plugins to still do their thing and have access to our content, but depending on
291 291
 			// how your event content is being displayed (shortcode, CPT route, etc), this filter can get applied twice,
292 292
 			// so the following allows this filter to be applied multiple times, but only once for real
293
-			$current_post_ID = did_action( 'loop_start' ) ? $post->ID : 0;
294
-			if ( EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->use_sortable_display_order ) {
293
+			$current_post_ID = did_action('loop_start') ? $post->ID : 0;
294
+			if (EE_Registry::instance()->CFG->template_settings->EED_Events_Archive->use_sortable_display_order) {
295 295
 				$content = \EED_Events_Archive::use_sortable_display_order();
296 296
 			} else {
297 297
 				$content = \EED_Events_Archive::use_filterable_display_order();
@@ -310,20 +310,20 @@  discard block
 block discarded – undo
310 310
 	 */
311 311
 	protected static function use_sortable_display_order() {
312 312
 		// no further password checks required atm
313
-		add_filter( 'FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true' );
313
+		add_filter('FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true');
314 314
 		// we need to first remove this callback from being applied to the_content() or the_excerpt() (otherwise it will recurse and blow up the interweb)
315
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
316
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
317
-		remove_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1 );
315
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
316
+		remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
317
+		remove_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1);
318 318
 		// now add additional content depending on whether event is using the_excerpt() or the_content()
319 319
 		EED_Events_Archive::instance()->template_parts = EED_Events_Archive::instance()->initialize_template_parts();
320
-		$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
321
-		$content = EED_Events_Archive::instance()->template_parts->apply_template_part_filters( $content );
320
+		$content = EEH_Template::locate_template('content-espresso_events-details.php');
321
+		$content = EED_Events_Archive::instance()->template_parts->apply_template_part_filters($content);
322 322
 		// re-add our main filters (or else the next event won't have them)
323
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
324
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
325
-		add_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1, 1 );
326
-		remove_filter( 'FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true' );
323
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100, 1);
324
+		add_filter('the_content', array('EED_Events_Archive', 'event_details'), 100, 1);
325
+		add_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1, 1);
326
+		remove_filter('FHEE__EED_Events_Archive__event_details__no_post_password_required', '__return_true');
327 327
 		return $content;
328 328
 	}
329 329
 
@@ -338,22 +338,22 @@  discard block
 block discarded – undo
338 338
 	protected static function use_filterable_display_order() {
339 339
 		// we need to first remove this callback from being applied to the_content()
340 340
 		// (otherwise it will recurse and blow up the interweb)
341
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
342
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
343
-		remove_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1 );
341
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
342
+		remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
343
+		remove_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1);
344 344
 		//now add additional content depending on whether event is using the_excerpt() or the_content()
345 345
 		EED_Events_Archive::_add_additional_excerpt_filters();
346 346
 		EED_Events_Archive::_add_additional_content_filters();
347
-		do_action( 'AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters' );
347
+		do_action('AHEE__EED_Events_Archive__use_filterable_display_order__after_add_filters');
348 348
 		// now load our template
349
-		$content = EEH_Template::locate_template( 'content-espresso_events-details.php' );
349
+		$content = EEH_Template::locate_template('content-espresso_events-details.php');
350 350
 		// re-add our main filters (or else the next event won't have them)
351
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
352
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100, 1 );
353
-		add_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1, 1 );
351
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100, 1);
352
+		add_filter('the_content', array('EED_Events_Archive', 'event_details'), 100, 1);
353
+		add_filter('get_the_excerpt', array('EED_Events_Archive', 'get_the_excerpt'), 1, 1);
354 354
 		// but remove the other filters so that they don't get applied to the next post
355 355
 		EED_Events_Archive::_remove_additional_events_archive_filters();
356
-		do_action( 'AHEE__EED_Events_Archive__use_filterable_display_order__after_remove_filters' );
356
+		do_action('AHEE__EED_Events_Archive__use_filterable_display_order__after_remove_filters');
357 357
 		// we're not returning the $content directly because the template we are loading uses the_content (or the_excerpt)
358 358
 		//return ! empty( $template ) ? $template : $content;
359 359
 		return $content;
@@ -368,11 +368,11 @@  discard block
 block discarded – undo
368 368
 	 * 	@param		string 	$content
369 369
 	 *  	@return 		string
370 370
 	 */
371
-	public static function event_datetimes( $content ) {
372
-		if ( post_password_required() ) {
371
+	public static function event_datetimes($content) {
372
+		if (post_password_required()) {
373 373
 			return $content;
374 374
 		}
375
-		return EEH_Template::locate_template( 'content-espresso_events-datetimes.php' ) . $content;
375
+		return EEH_Template::locate_template('content-espresso_events-datetimes.php').$content;
376 376
 	}
377 377
 
378 378
 	/**
@@ -382,11 +382,11 @@  discard block
 block discarded – undo
382 382
 	 * 	@param		string 	$content
383 383
 	 *  	@return 		string
384 384
 	 */
385
-	public static function event_tickets( $content ) {
386
-		if ( post_password_required() ) {
385
+	public static function event_tickets($content) {
386
+		if (post_password_required()) {
387 387
 			return $content;
388 388
 		}
389
-		return EEH_Template::locate_template( 'content-espresso_events-tickets.php' ) . $content;
389
+		return EEH_Template::locate_template('content-espresso_events-tickets.php').$content;
390 390
 	}
391 391
 
392 392
 
@@ -398,8 +398,8 @@  discard block
 block discarded – undo
398 398
 	 * @param    string $content
399 399
 	 * @return    string
400 400
 	 */
401
-	public static function event_venue( $content ) {
402
-		return EED_Events_Archive::event_venues( $content );
401
+	public static function event_venue($content) {
402
+		return EED_Events_Archive::event_venues($content);
403 403
 	}
404 404
 
405 405
 	/**
@@ -409,11 +409,11 @@  discard block
 block discarded – undo
409 409
 	 * 	@param		string 	$content
410 410
 	 *  	@return 		string
411 411
 	 */
412
-	public static function event_venues( $content ) {
413
-		if ( post_password_required() ) {
412
+	public static function event_venues($content) {
413
+		if (post_password_required()) {
414 414
 			return $content;
415 415
 		}
416
-		return $content . EEH_Template::locate_template( 'content-espresso_events-venues.php' );
416
+		return $content.EEH_Template::locate_template('content-espresso_events-venues.php');
417 417
 	}
418 418
 
419 419
 
@@ -425,9 +425,9 @@  discard block
 block discarded – undo
425 425
 	 * @return        void
426 426
 	 */
427 427
 	private static function _add_additional_excerpt_filters() {
428
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_datetimes' ), 110, 1 );
429
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_tickets' ), 120, 1 );
430
-		add_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_venues' ), 130, 1 );
428
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_datetimes'), 110, 1);
429
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_tickets'), 120, 1);
430
+		add_filter('the_excerpt', array('EED_Events_Archive', 'event_venues'), 130, 1);
431 431
 	}
432 432
 
433 433
 
@@ -439,9 +439,9 @@  discard block
 block discarded – undo
439 439
 	 * @return        void
440 440
 	 */
441 441
 	private static function _add_additional_content_filters() {
442
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_datetimes' ), 110, 1 );
443
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_tickets' ), 120, 1 );
444
-		add_filter( 'the_content', array( 'EED_Events_Archive', 'event_venues' ), 130, 1 );
442
+		add_filter('the_content', array('EED_Events_Archive', 'event_datetimes'), 110, 1);
443
+		add_filter('the_content', array('EED_Events_Archive', 'event_tickets'), 120, 1);
444
+		add_filter('the_content', array('EED_Events_Archive', 'event_venues'), 130, 1);
445 445
 	}
446 446
 
447 447
 
@@ -453,12 +453,12 @@  discard block
 block discarded – undo
453 453
 	 * @return        void
454 454
 	 */
455 455
 	private static function _remove_additional_events_archive_filters() {
456
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
457
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
458
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_venues' ), 130 );
459
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
460
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
461
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_venues' ), 130 );
456
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_datetimes'), 110);
457
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_tickets'), 120);
458
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_venues'), 130);
459
+		remove_filter('the_content', array('EED_Events_Archive', 'event_datetimes'), 110);
460
+		remove_filter('the_content', array('EED_Events_Archive', 'event_tickets'), 120);
461
+		remove_filter('the_content', array('EED_Events_Archive', 'event_venues'), 130);
462 462
 	}
463 463
 
464 464
 
@@ -471,17 +471,17 @@  discard block
 block discarded – undo
471 471
 	 */
472 472
 	public static function remove_all_events_archive_filters() {
473 473
 		//remove_filter( 'get_the_excerpt', array( 'EED_Events_Archive', 'get_the_excerpt' ), 1 );
474
-		remove_filter( 'the_title', array( 'EED_Events_Archive', 'the_title' ), 100 );
475
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_details' ), 100 );
476
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
477
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
478
-		remove_filter( 'the_excerpt', array( 'EED_Events_Archive', 'event_venues' ), 130 );
479
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_details' ), 100 );
480
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_datetimes' ), 110 );
481
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_tickets' ), 120 );
482
-		remove_filter( 'the_content', array( 'EED_Events_Archive', 'event_venues' ), 130 );
474
+		remove_filter('the_title', array('EED_Events_Archive', 'the_title'), 100);
475
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_details'), 100);
476
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_datetimes'), 110);
477
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_tickets'), 120);
478
+		remove_filter('the_excerpt', array('EED_Events_Archive', 'event_venues'), 130);
479
+		remove_filter('the_content', array('EED_Events_Archive', 'event_details'), 100);
480
+		remove_filter('the_content', array('EED_Events_Archive', 'event_datetimes'), 110);
481
+		remove_filter('the_content', array('EED_Events_Archive', 'event_tickets'), 120);
482
+		remove_filter('the_content', array('EED_Events_Archive', 'event_venues'), 130);
483 483
 		// don't display entry meta because the existing theme will take care of that
484
-		remove_filter( 'FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false' );
484
+		remove_filter('FHEE__content_espresso_events_details_template__display_entry_meta', '__return_false');
485 485
 	}
486 486
 
487 487
 
@@ -496,15 +496,15 @@  discard block
 block discarded – undo
496 496
 	 *  @return 	void
497 497
 	 */
498 498
 	public function load_event_list_assets() {
499
-		do_action( 'AHEE__EED_Events_Archive__before_load_assets' );
500
-		add_filter( 'FHEE_load_EE_Session', '__return_true' );
501
-		add_filter( 'FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true' );
502
-		add_action('wp_enqueue_scripts', array( $this, 'wp_enqueue_scripts' ), 10 );
503
-		if ( EE_Registry::instance()->CFG->map_settings->use_google_maps ) {
504
-			EE_Registry::instance()->load_helper( 'Maps' );
505
-			add_action('wp_enqueue_scripts', array( 'EEH_Maps', 'espresso_google_map_js' ), 11 );
499
+		do_action('AHEE__EED_Events_Archive__before_load_assets');
500
+		add_filter('FHEE_load_EE_Session', '__return_true');
501
+		add_filter('FHEE__EED_Ticket_Selector__load_tckt_slctr_assets', '__return_true');
502
+		add_action('wp_enqueue_scripts', array($this, 'wp_enqueue_scripts'), 10);
503
+		if (EE_Registry::instance()->CFG->map_settings->use_google_maps) {
504
+			EE_Registry::instance()->load_helper('Maps');
505
+			add_action('wp_enqueue_scripts', array('EEH_Maps', 'espresso_google_map_js'), 11);
506 506
 		}
507
-		EE_Registry::instance()->load_helper( 'Event_View' );
507
+		EE_Registry::instance()->load_helper('Event_View');
508 508
 	}
509 509
 
510 510
 
@@ -520,14 +520,14 @@  discard block
 block discarded – undo
520 520
 	 */
521 521
 	public function wp_enqueue_scripts() {
522 522
 		// get some style
523
-		if ( apply_filters( 'FHEE_enable_default_espresso_css', FALSE ) ) {
523
+		if (apply_filters('FHEE_enable_default_espresso_css', FALSE)) {
524 524
 			// first check uploads folder
525
-			EE_Registry::instance()->load_helper( 'File' );
526
-			if ( EEH_File::is_readable( get_stylesheet_directory() . $this->theme . DS . 'style.css' )) {
527
-				wp_register_style( $this->theme, get_stylesheet_directory_uri() . $this->theme . DS . 'style.css', array( 'dashicons', 'espresso_default' ));
525
+			EE_Registry::instance()->load_helper('File');
526
+			if (EEH_File::is_readable(get_stylesheet_directory().$this->theme.DS.'style.css')) {
527
+				wp_register_style($this->theme, get_stylesheet_directory_uri().$this->theme.DS.'style.css', array('dashicons', 'espresso_default'));
528 528
 			} else {
529 529
 		}
530
-		wp_enqueue_style( $this->theme );
530
+		wp_enqueue_style($this->theme);
531 531
 
532 532
 	}
533 533
 }
@@ -545,8 +545,8 @@  discard block
 block discarded – undo
545 545
 	 */
546 546
 	public static function template_settings_form() {
547 547
 	$template_settings = EE_Registry::instance()->CFG->template_settings;
548
-	$template_settings->EED_Events_Archive = isset( $template_settings->EED_Events_Archive ) ? $template_settings->EED_Events_Archive : new EE_Events_Archive_Config();
549
-	$template_settings->EED_Events_Archive = apply_filters( 'FHEE__EED_Events_Archive__template_settings_form__event_list_config', $template_settings->EED_Events_Archive );
548
+	$template_settings->EED_Events_Archive = isset($template_settings->EED_Events_Archive) ? $template_settings->EED_Events_Archive : new EE_Events_Archive_Config();
549
+	$template_settings->EED_Events_Archive = apply_filters('FHEE__EED_Events_Archive__template_settings_form__event_list_config', $template_settings->EED_Events_Archive);
550 550
 	$events_archive_settings = array(
551 551
 		'display_status_banner' => 0,
552 552
 		'display_description' => 1,
@@ -555,8 +555,8 @@  discard block
 block discarded – undo
555 555
 		'display_venue' => 0,
556 556
 		'display_expired_events' => 0
557 557
 	);
558
-	$events_archive_settings = array_merge( $events_archive_settings, (array)$template_settings->EED_Events_Archive );
559
-	EEH_Template::display_template( EVENTS_ARCHIVE_TEMPLATES_PATH . 'admin-event-list-settings.template.php', $events_archive_settings );
558
+	$events_archive_settings = array_merge($events_archive_settings, (array) $template_settings->EED_Events_Archive);
559
+	EEH_Template::display_template(EVENTS_ARCHIVE_TEMPLATES_PATH.'admin-event-list-settings.template.php', $events_archive_settings);
560 560
 }
561 561
 
562 562
 
@@ -572,16 +572,16 @@  discard block
 block discarded – undo
572 572
 	 *  @param 	EE_Request_Handler $REQ
573 573
 	 *  @return 	EE_Template_Config
574 574
 	 */
575
-	public static function update_template_settings( $CFG, $REQ ) {
575
+	public static function update_template_settings($CFG, $REQ) {
576 576
 		$CFG->EED_Events_Archive = new EE_Events_Archive_Config();
577 577
 		// unless we are resetting the config...
578
-		if ( ! isset( $REQ['EED_Events_Archive_reset_event_list_settings'] ) || absint( $REQ['EED_Events_Archive_reset_event_list_settings'] ) !== 1 ) {
579
-			$CFG->EED_Events_Archive->display_status_banner = isset( $REQ['EED_Events_Archive_display_status_banner'] ) ? absint( $REQ['EED_Events_Archive_display_status_banner'] ) : 0;
580
-			$CFG->EED_Events_Archive->display_description = isset( $REQ['EED_Events_Archive_display_description'] ) ? absint( $REQ['EED_Events_Archive_display_description'] ) : 1;
581
-			$CFG->EED_Events_Archive->display_ticket_selector = isset( $REQ['EED_Events_Archive_display_ticket_selector'] ) ? absint( $REQ['EED_Events_Archive_display_ticket_selector'] ) : 0;
582
-			$CFG->EED_Events_Archive->display_datetimes = isset( $REQ['EED_Events_Archive_display_datetimes'] ) ? absint( $REQ['EED_Events_Archive_display_datetimes'] ) : 1;
583
-			$CFG->EED_Events_Archive->display_venue = isset( $REQ['EED_Events_Archive_display_venue'] ) ? absint( $REQ['EED_Events_Archive_display_venue'] ) : 0;
584
-			$CFG->EED_Events_Archive->display_expired_events = isset( $REQ['EED_Events_Archive_display_expired_events'] ) ? absint( $REQ['EED_Events_Archive_display_expired_events'] ) : 0;			}
578
+		if ( ! isset($REQ['EED_Events_Archive_reset_event_list_settings']) || absint($REQ['EED_Events_Archive_reset_event_list_settings']) !== 1) {
579
+			$CFG->EED_Events_Archive->display_status_banner = isset($REQ['EED_Events_Archive_display_status_banner']) ? absint($REQ['EED_Events_Archive_display_status_banner']) : 0;
580
+			$CFG->EED_Events_Archive->display_description = isset($REQ['EED_Events_Archive_display_description']) ? absint($REQ['EED_Events_Archive_display_description']) : 1;
581
+			$CFG->EED_Events_Archive->display_ticket_selector = isset($REQ['EED_Events_Archive_display_ticket_selector']) ? absint($REQ['EED_Events_Archive_display_ticket_selector']) : 0;
582
+			$CFG->EED_Events_Archive->display_datetimes = isset($REQ['EED_Events_Archive_display_datetimes']) ? absint($REQ['EED_Events_Archive_display_datetimes']) : 1;
583
+			$CFG->EED_Events_Archive->display_venue = isset($REQ['EED_Events_Archive_display_venue']) ? absint($REQ['EED_Events_Archive_display_venue']) : 0;
584
+			$CFG->EED_Events_Archive->display_expired_events = isset($REQ['EED_Events_Archive_display_expired_events']) ? absint($REQ['EED_Events_Archive_display_expired_events']) : 0; }
585 585
 		return $CFG;
586 586
 	}
587 587
 
@@ -594,10 +594,10 @@  discard block
 block discarded – undo
594 594
 	 * @param string $extra_class
595 595
 	 * @return    string
596 596
 	 */
597
-	public static function event_list_css( $extra_class = '' ) {
598
-		$event_list_css = ! empty( $extra_class ) ? array( $extra_class ) : array();
597
+	public static function event_list_css($extra_class = '') {
598
+		$event_list_css = ! empty($extra_class) ? array($extra_class) : array();
599 599
 		$event_list_css[] = 'espresso-event-list-event';
600
-		return implode( ' ', $event_list_css );
600
+		return implode(' ', $event_list_css);
601 601
 	}
602 602
 
603 603
 
@@ -624,9 +624,9 @@  discard block
 block discarded – undo
624 624
 	 * @param $value
625 625
 	 * @return    bool
626 626
 	 */
627
-	public static function display_description( $value ) {
627
+	public static function display_description($value) {
628 628
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
629
-		$display_description= isset( $config->display_description ) ? $config->display_description : 1;
629
+		$display_description = isset($config->display_description) ? $config->display_description : 1;
630 630
 		return $display_description === $value ? TRUE : FALSE;
631 631
 	}
632 632
 
@@ -639,7 +639,7 @@  discard block
 block discarded – undo
639 639
 	 */
640 640
 	public static function display_ticket_selector() {
641 641
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
642
-		return isset( $config->display_ticket_selector ) && $config->display_ticket_selector ? TRUE : FALSE;
642
+		return isset($config->display_ticket_selector) && $config->display_ticket_selector ? TRUE : FALSE;
643 643
 	}
644 644
 
645 645
 
@@ -651,9 +651,9 @@  discard block
 block discarded – undo
651 651
 	 *  @return 	bool
652 652
 	 */
653 653
 	public static function display_venue() {
654
-		EE_Registry::instance()->load_helper( 'Venue_View' );
654
+		EE_Registry::instance()->load_helper('Venue_View');
655 655
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
656
-		return isset( $config->display_venue ) && $config->display_venue && EEH_Venue_View::venue_name() ? TRUE : FALSE;
656
+		return isset($config->display_venue) && $config->display_venue && EEH_Venue_View::venue_name() ? TRUE : FALSE;
657 657
 	}
658 658
 
659 659
 
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 	 */
666 666
 	public static function display_datetimes() {
667 667
 		$config = EE_Registry::instance()->CFG->template_settings->EED_Events_Archive;
668
-		return isset( $config->display_datetimes ) && $config->display_datetimes ? TRUE : FALSE;
668
+		return isset($config->display_datetimes) && $config->display_datetimes ? TRUE : FALSE;
669 669
 }
670 670
 
671 671
 
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
 	 *  @return 	string
681 681
 	 */
682 682
 	public static function event_list_title() {
683
-		return apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' ));
683
+		return apply_filters('FHEE__archive_espresso_events_template__upcoming_events_h1', __('Upcoming Events', 'event_espresso'));
684 684
 	}
685 685
 
686 686
 
@@ -689,11 +689,11 @@  discard block
 block discarded – undo
689 689
 	/**
690 690
 	 * 	@since 4.4.0
691 691
 	 */
692
-	public static function _doing_it_wrong_notice( $function = '' ) {
692
+	public static function _doing_it_wrong_notice($function = '') {
693 693
 		EE_Error::doing_it_wrong(
694 694
 			__FUNCTION__,
695 695
 			sprintf(
696
-				__( 'EED_Events_Archive::%1$s was moved to EEH_Event_Query::%1$s:%2$sPlease update your existing code because the method it calls will be removed in version %3$s', 'event_espresso' ),
696
+				__('EED_Events_Archive::%1$s was moved to EEH_Event_Query::%1$s:%2$sPlease update your existing code because the method it calls will be removed in version %3$s', 'event_espresso'),
697 697
 				$function,
698 698
 				'<br />',
699 699
 				'4.6.0'
@@ -709,107 +709,107 @@  discard block
 block discarded – undo
709 709
 	 * 	@since 4.4.0
710 710
 	 */
711 711
 	public function get_post_data() {
712
-		EE_Registry::instance()->load_helper( 'Event_Query' );
712
+		EE_Registry::instance()->load_helper('Event_Query');
713 713
 		EEH_Event_Query::set_query_params();
714 714
 	}
715 715
 	/**
716 716
 	 * 	@deprecated
717 717
 	 * 	@since 4.4.0
718 718
 	 */
719
-	public function posts_fields( $SQL, WP_Query $wp_query ) {
720
-		EE_Registry::instance()->load_helper( 'Event_Query' );
721
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
722
-		return EEH_Event_Query::posts_fields( $SQL, $wp_query );
719
+	public function posts_fields($SQL, WP_Query $wp_query) {
720
+		EE_Registry::instance()->load_helper('Event_Query');
721
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
722
+		return EEH_Event_Query::posts_fields($SQL, $wp_query);
723 723
 	}
724 724
 	/**
725 725
 	 * 	@deprecated
726 726
 	 * 	@since 4.4.0
727 727
 	 */
728
-	public static function posts_fields_sql_for_orderby( $orderby_params = array() ) {
729
-		EE_Registry::instance()->load_helper( 'Event_Query' );
730
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
731
-		return EEH_Event_Query::posts_fields_sql_for_orderby( $orderby_params );
728
+	public static function posts_fields_sql_for_orderby($orderby_params = array()) {
729
+		EE_Registry::instance()->load_helper('Event_Query');
730
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
731
+		return EEH_Event_Query::posts_fields_sql_for_orderby($orderby_params);
732 732
 	}
733 733
 	/**
734 734
 	 * 	@deprecated
735 735
 	 * 	@since 4.4.0
736 736
 	 */
737
-	public function posts_join( $SQL, WP_Query $wp_query ) {
738
-		EE_Registry::instance()->load_helper( 'Event_Query' );
739
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
740
-		return EEH_Event_Query::posts_join( $SQL, $wp_query );
737
+	public function posts_join($SQL, WP_Query $wp_query) {
738
+		EE_Registry::instance()->load_helper('Event_Query');
739
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
740
+		return EEH_Event_Query::posts_join($SQL, $wp_query);
741 741
 	}
742 742
 	/**
743 743
 	 * 	@deprecated
744 744
 	 * 	@since 4.4.0
745 745
 	 */
746
-	public static function posts_join_sql_for_terms( $join_terms = NULL ) {
747
-		EE_Registry::instance()->load_helper( 'Event_Query' );
748
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
749
-		return EEH_Event_Query::posts_join_sql_for_terms( $join_terms );
746
+	public static function posts_join_sql_for_terms($join_terms = NULL) {
747
+		EE_Registry::instance()->load_helper('Event_Query');
748
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
749
+		return EEH_Event_Query::posts_join_sql_for_terms($join_terms);
750 750
 	}
751 751
 	/**
752 752
 	 * 	@deprecated
753 753
 	 * 	@since 4.4.0
754 754
 	 */
755
-	public static function posts_join_for_orderby( $orderby_params = array() ) {
756
-		EE_Registry::instance()->load_helper( 'Event_Query' );
757
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
758
-		return EEH_Event_Query::posts_join_for_orderby( $orderby_params );
755
+	public static function posts_join_for_orderby($orderby_params = array()) {
756
+		EE_Registry::instance()->load_helper('Event_Query');
757
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
758
+		return EEH_Event_Query::posts_join_for_orderby($orderby_params);
759 759
 	}
760 760
 	/**
761 761
 	 * 	@deprecated
762 762
 	 * 	@since 4.4.0
763 763
 	 */
764
-	public function posts_where( $SQL, WP_Query $wp_query ) {
765
-		EE_Registry::instance()->load_helper( 'Event_Query' );
766
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
767
-		return EEH_Event_Query::posts_where( $SQL, $wp_query );
764
+	public function posts_where($SQL, WP_Query $wp_query) {
765
+		EE_Registry::instance()->load_helper('Event_Query');
766
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
767
+		return EEH_Event_Query::posts_where($SQL, $wp_query);
768 768
 	}
769 769
 	/**
770 770
 	 * 	@deprecated
771 771
 	 * 	@since 4.4.0
772 772
 	 */
773
-	public static function posts_where_sql_for_show_expired( $show_expired = FALSE ) {
774
-		EE_Registry::instance()->load_helper( 'Event_Query' );
775
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
776
-		return EEH_Event_Query::posts_where_sql_for_show_expired( $show_expired );
773
+	public static function posts_where_sql_for_show_expired($show_expired = FALSE) {
774
+		EE_Registry::instance()->load_helper('Event_Query');
775
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
776
+		return EEH_Event_Query::posts_where_sql_for_show_expired($show_expired);
777 777
 	}
778 778
 	/**
779 779
 	 * 	@deprecated
780 780
 	 * 	@since 4.4.0
781 781
 	 */
782
-	public static function posts_where_sql_for_event_category_slug( $event_category_slug = NULL ) {
783
-		EE_Registry::instance()->load_helper( 'Event_Query' );
784
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
785
-		return EEH_Event_Query::posts_where_sql_for_event_category_slug( $event_category_slug );
782
+	public static function posts_where_sql_for_event_category_slug($event_category_slug = NULL) {
783
+		EE_Registry::instance()->load_helper('Event_Query');
784
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
785
+		return EEH_Event_Query::posts_where_sql_for_event_category_slug($event_category_slug);
786 786
 	}
787 787
 	/**
788 788
 	 * 	@deprecated
789 789
 	 * 	@since 4.4.0
790 790
 	 */
791
-	public static function posts_where_sql_for_event_list_month( $month = NULL ) {
792
-		EE_Registry::instance()->load_helper( 'Event_Query' );
793
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
794
-		return EEH_Event_Query::posts_where_sql_for_event_list_month( $month );
791
+	public static function posts_where_sql_for_event_list_month($month = NULL) {
792
+		EE_Registry::instance()->load_helper('Event_Query');
793
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
794
+		return EEH_Event_Query::posts_where_sql_for_event_list_month($month);
795 795
 	}
796 796
 	/**
797 797
 	 * 	@deprecated
798 798
 	 * 	@since 4.4.0
799 799
 	 */
800
-	public function posts_orderby( $SQL, WP_Query $wp_query ) {
801
-		EE_Registry::instance()->load_helper( 'Event_Query' );
802
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
803
-		return EEH_Event_Query::posts_orderby( $SQL, $wp_query );
800
+	public function posts_orderby($SQL, WP_Query $wp_query) {
801
+		EE_Registry::instance()->load_helper('Event_Query');
802
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
803
+		return EEH_Event_Query::posts_orderby($SQL, $wp_query);
804 804
 	}
805 805
 	/**
806 806
 	 * 	@deprecated
807 807
 	 * 	@since 4.4.0
808 808
 	 */
809
-	public static function posts_orderby_sql( $orderby_params = array(), $sort = 'ASC' ) {
810
-		EE_Registry::instance()->load_helper( 'Event_Query' );
811
-		EED_Events_Archive::_doing_it_wrong_notice( __FUNCTION__ );
812
-		return EEH_Event_Query::posts_orderby_sql( $orderby_params, $sort );
809
+	public static function posts_orderby_sql($orderby_params = array(), $sort = 'ASC') {
810
+		EE_Registry::instance()->load_helper('Event_Query');
811
+		EED_Events_Archive::_doing_it_wrong_notice(__FUNCTION__);
812
+		return EEH_Event_Query::posts_orderby_sql($orderby_params, $sort);
813 813
 	}
814 814
 
815 815
 
@@ -840,8 +840,8 @@  discard block
 block discarded – undo
840 840
  * @param string $extra_class
841 841
  * @return string
842 842
  */
843
-function espresso_event_list_css( $extra_class = '' ) {
844
-	return EED_Events_Archive::event_list_css( $extra_class );
843
+function espresso_event_list_css($extra_class = '') {
844
+	return EED_Events_Archive::event_list_css($extra_class);
845 845
 }
846 846
 
847 847
 /**
@@ -855,14 +855,14 @@  discard block
 block discarded – undo
855 855
  * @return bool
856 856
  */
857 857
 function espresso_display_full_description_in_event_list() {
858
-	return EED_Events_Archive::display_description( 2 );
858
+	return EED_Events_Archive::display_description(2);
859 859
 }
860 860
 
861 861
 /**
862 862
  * @return bool
863 863
  */
864 864
 function espresso_display_excerpt_in_event_list() {
865
-	return EED_Events_Archive::display_description( 1 );
865
+	return EED_Events_Archive::display_description(1);
866 866
 }
867 867
 
868 868
 /**
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-details.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -3,30 +3,30 @@
 block discarded – undo
3 3
 global $post;
4 4
 ?>
5 5
 <div class="event-content">
6
-<?php if ( apply_filters( 'FHEE__content_espresso_events_details_template__display_entry_meta', TRUE )): ?>
6
+<?php if (apply_filters('FHEE__content_espresso_events_details_template__display_entry_meta', TRUE)): ?>
7 7
 	<div class="entry-meta">
8
-		<span class="tags-links"><?php espresso_event_categories( $post->ID, TRUE, TRUE ); ?></span>
8
+		<span class="tags-links"><?php espresso_event_categories($post->ID, TRUE, TRUE); ?></span>
9 9
 	<?php
10
-		if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) :
10
+		if ( ! post_password_required() && (comments_open() || get_comments_number())) :
11 11
 	?>
12
-	<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'event_espresso' ), __( '1 Comment', 'event_espresso' ), __( '% Comments', 'event_espresso' ) ); ?></span>
12
+	<span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'event_espresso'), __('1 Comment', 'event_espresso'), __('% Comments', 'event_espresso')); ?></span>
13 13
 	<?php
14 14
 		endif;
15
-		edit_post_link( __( 'Edit', 'event_espresso' ), '<span class="edit-link">', '</span>' );
15
+		edit_post_link(__('Edit', 'event_espresso'), '<span class="edit-link">', '</span>');
16 16
 	?>
17 17
 	</div>
18 18
 <?php endif;
19
-	$event_phone = espresso_event_phone( $post->ID, FALSE );
20
-	if ( $event_phone != '' ) : ?>
19
+	$event_phone = espresso_event_phone($post->ID, FALSE);
20
+	if ($event_phone != '') : ?>
21 21
 	<p>
22
-		<span class="small-text"><strong><?php _e( 'Event Phone:', 'event_espresso' ); ?> </strong></span> <?php echo $event_phone; ?>
22
+		<span class="small-text"><strong><?php _e('Event Phone:', 'event_espresso'); ?> </strong></span> <?php echo $event_phone; ?>
23 23
 	</p>
24
-<?php endif;  ?>
24
+<?php endif; ?>
25 25
 <?php
26
-	if ( apply_filters( 'FHEE__content_espresso_events_details_template__display_the_content', true ) ) {
27
-		do_action( 'AHEE_event_details_before_the_content', $post );
28
-		apply_filters( 'FHEE__content_espresso_events_details_template__the_content', espresso_event_content_or_excerpt() );
29
-		do_action( 'AHEE_event_details_after_the_content', $post );
26
+	if (apply_filters('FHEE__content_espresso_events_details_template__display_the_content', true)) {
27
+		do_action('AHEE_event_details_before_the_content', $post);
28
+		apply_filters('FHEE__content_espresso_events_details_template__the_content', espresso_event_content_or_excerpt());
29
+		do_action('AHEE_event_details_after_the_content', $post);
30 30
 	}
31 31
  ?>
32 32
 </div>
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-shortcode.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -21,22 +21,22 @@  discard block
 block discarded – undo
21 21
  * and/or use any of the template tags functions found in:
22 22
  * \wp-content\plugins\event-espresso-core\public\template_tags.php
23 23
  ************************** IMPORTANT **************************/
24
-add_filter( 'FHEE__content_espresso_events__template_loaded', '__return_false' );
24
+add_filter('FHEE__content_espresso_events__template_loaded', '__return_false');
25 25
 
26 26
 //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
27 27
 
28 28
 global $post;
29
-$event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
30
-$event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class );
29
+$event_class = has_excerpt($post->ID) ? ' has-excerpt' : '';
30
+$event_class = apply_filters('FHEE__content_espresso_events__event_class', $event_class);
31 31
 ?>
32
-<?php do_action( 'AHEE_event_details_before_post', $post ); ?>
33
-<article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>
32
+<?php do_action('AHEE_event_details_before_post', $post); ?>
33
+<article id="post-<?php the_ID(); ?>" <?php post_class($event_class); ?>>
34 34
 
35
-<?php if ( is_single() ) : ?>
35
+<?php if (is_single()) : ?>
36 36
 
37
-	<div id="espresso-event-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
38
-		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
39
-		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
37
+	<div id="espresso-event-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv">
38
+		<?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?>
39
+		<?php espresso_get_template_part('content', 'espresso_events-header'); ?>
40 40
 	</div>
41 41
 
42 42
 	<div class="espresso-event-wrapper-dv">
@@ -46,16 +46,16 @@  discard block
 block discarded – undo
46 46
 		<?php //espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
47 47
 		<?php //espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
48 48
 		<footer class="event-meta">
49
-			<?php do_action( 'AHEE_event_details_footer_top', $post ); ?>
50
-			<?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?>
49
+			<?php do_action('AHEE_event_details_footer_top', $post); ?>
50
+			<?php do_action('AHEE_event_details_footer_bottom', $post); ?>
51 51
 		</footer>
52 52
 	</div>
53 53
 
54
-<?php elseif ( is_archive() ) : ?>
54
+<?php elseif (is_archive()) : ?>
55 55
 
56
-	<div id="espresso-event-list-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
57
-		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
58
-		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
56
+	<div id="espresso-event-list-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv">
57
+		<?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?>
58
+		<?php espresso_get_template_part('content', 'espresso_events-header'); ?>
59 59
 	</div>
60 60
 
61 61
 	<div class="espresso-event-list-wrapper-dv">
@@ -70,5 +70,5 @@  discard block
 block discarded – undo
70 70
 
71 71
 </article>
72 72
 <!-- #post -->
73
-<?php do_action( 'AHEE_event_details_after_post', $post );
73
+<?php do_action('AHEE_event_details_after_post', $post);
74 74
 
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events-venues.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -1,54 +1,54 @@
 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
-if (( is_single() && espresso_display_venue_in_event_details() ) || ( is_archive() && espresso_display_venue_in_event_list() ) ) :
3
+if ((is_single() && espresso_display_venue_in_event_details()) || (is_archive() && espresso_display_venue_in_event_list())) :
4 4
 	global $post;
5
-	do_action( 'AHEE_event_details_before_venue_details', $post );
6
-	$venue_name = espresso_venue_name( 0, 'details', FALSE );
7
-	if ( empty( $venue_name ) && espresso_is_venue_private() ) {
8
-		do_action( 'AHEE_event_details_after_venue_details', $post );
5
+	do_action('AHEE_event_details_before_venue_details', $post);
6
+	$venue_name = espresso_venue_name(0, 'details', FALSE);
7
+	if (empty($venue_name) && espresso_is_venue_private()) {
8
+		do_action('AHEE_event_details_after_venue_details', $post);
9 9
 		return '';
10 10
 	}
11 11
 ?>
12 12
 
13 13
 <div class="espresso-venue-dv<?php echo espresso_is_venue_private() ? ' espresso-private-venue-dv' : ''; ?>">
14 14
 	<h3 class="event-venues-h3 ee-event-h3">
15
-		<?php _e( 'Location', 'event_espresso' ); ?>
15
+		<?php _e('Location', 'event_espresso'); ?>
16 16
 	</h3>
17
-	<h4><strong><?php _e( 'Venue:', 'event_espresso' ); ?></strong>&nbsp;&nbsp; <strong> <?php echo $venue_name; ?></strong></h4>
17
+	<h4><strong><?php _e('Venue:', 'event_espresso'); ?></strong>&nbsp;&nbsp; <strong> <?php echo $venue_name; ?></strong></h4>
18 18
 	<p><span class="smaller-text tags-links"><?php echo espresso_venue_categories(); ?></span></p>
19
-<?php  if ( $venue_phone = espresso_venue_phone( $post->ID, FALSE )) : ?>
19
+<?php  if ($venue_phone = espresso_venue_phone($post->ID, FALSE)) : ?>
20 20
 	<p>
21
-		<span class="small-text"><strong><?php _e( 'Venue Phone:', 'event_espresso' ); ?></strong></span> <?php echo $venue_phone; ?>
21
+		<span class="small-text"><strong><?php _e('Venue Phone:', 'event_espresso'); ?></strong></span> <?php echo $venue_phone; ?>
22 22
 	</p>
23
-<?php endif;  ?>
24
-<?php  if ( espresso_venue_has_address( $post->ID )) : ?>
25
-	<strong><span class="dashicons dashicons-location-alt"></span><?php _e( 'Address:', 'event_espresso' ); ?></strong>
26
-	<?php espresso_venue_address( 'inline' ); ?>
27
-	<?php espresso_venue_gmap( $post->ID ); ?>
23
+<?php endif; ?>
24
+<?php  if (espresso_venue_has_address($post->ID)) : ?>
25
+	<strong><span class="dashicons dashicons-location-alt"></span><?php _e('Address:', 'event_espresso'); ?></strong>
26
+	<?php espresso_venue_address('inline'); ?>
27
+	<?php espresso_venue_gmap($post->ID); ?>
28 28
 	<div class="clear"><br/></div>
29
-<?php endif;  ?>
29
+<?php endif; ?>
30 30
 
31
-	<?php $VNU_ID = espresso_venue_id( $post->ID ); ?>
32
-	<?php if ( is_single() ) : ?>
33
-		<?php $venue_description = espresso_venue_description( $VNU_ID, FALSE ); ?>
34
-		<?php if ( $venue_description ) : ?>
31
+	<?php $VNU_ID = espresso_venue_id($post->ID); ?>
32
+	<?php if (is_single()) : ?>
33
+		<?php $venue_description = espresso_venue_description($VNU_ID, FALSE); ?>
34
+		<?php if ($venue_description) : ?>
35 35
 	<p>
36
-		<strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/>
37
-		<?php echo do_shortcode( $venue_description ); ?>
36
+		<strong><?php _e('Description:', 'event_espresso'); ?></strong><br/>
37
+		<?php echo do_shortcode($venue_description); ?>
38 38
 	</p>
39
-		<?php endif;  ?>
39
+		<?php endif; ?>
40 40
 	<?php else : ?>
41
-		<?php $venue_excerpt = espresso_venue_excerpt( $VNU_ID, FALSE ); ?>
42
-		<?php if ( $venue_excerpt ) : ?>
41
+		<?php $venue_excerpt = espresso_venue_excerpt($VNU_ID, FALSE); ?>
42
+		<?php if ($venue_excerpt) : ?>
43 43
 	<p>
44
-		<strong><?php _e( 'Description:', 'event_espresso' ); ?></strong><br/>
44
+		<strong><?php _e('Description:', 'event_espresso'); ?></strong><br/>
45 45
 		<?php echo $venue_excerpt; ?>
46 46
 	</p>
47
-			<?php endif;  ?>
48
-		<?php endif;  ?>
47
+			<?php endif; ?>
48
+		<?php endif; ?>
49 49
 </div>
50 50
 <!-- .espresso-venue-dv -->
51 51
 <?php
52
-do_action( 'AHEE_event_details_after_venue_details', $post );
52
+do_action('AHEE_event_details_after_venue_details', $post);
53 53
 endif;
54 54
 ?>
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/content-espresso_events.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -18,52 +18,52 @@
 block discarded – undo
18 18
  * and/or use any of the template tags functions found in:
19 19
  * \wp-content\plugins\event-espresso-core\public\template_tags.php
20 20
  ************************** IMPORTANT **************************/
21
-add_filter( 'FHEE__content_espresso_events__template_loaded', '__return_true' );
21
+add_filter('FHEE__content_espresso_events__template_loaded', '__return_true');
22 22
 
23 23
 //echo '<br/><h6 style="color:#2EA2CC;">'. __FILE__ . ' &nbsp; <span style="font-weight:normal;color:#E76700"> Line #: ' . __LINE__ . '</span></h6>';
24 24
 
25 25
 global $post;
26
-$event_class = has_excerpt( $post->ID ) ? ' has-excerpt' : '';
27
-$event_class = apply_filters( 'FHEE__content_espresso_events__event_class', $event_class );
26
+$event_class = has_excerpt($post->ID) ? ' has-excerpt' : '';
27
+$event_class = apply_filters('FHEE__content_espresso_events__event_class', $event_class);
28 28
 ?>
29
-<?php do_action( 'AHEE_event_details_before_post', $post ); ?>
30
-<article id="post-<?php the_ID(); ?>" <?php post_class( $event_class ); ?>>
29
+<?php do_action('AHEE_event_details_before_post', $post); ?>
30
+<article id="post-<?php the_ID(); ?>" <?php post_class($event_class); ?>>
31 31
 
32
-<?php if ( is_single() ) : ?>
32
+<?php if (is_single()) : ?>
33 33
 
34
-	<div id="espresso-event-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
35
-		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
36
-		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
34
+	<div id="espresso-event-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv">
35
+		<?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?>
36
+		<?php espresso_get_template_part('content', 'espresso_events-header'); ?>
37 37
 	</div>
38 38
 
39 39
 	<div class="espresso-event-wrapper-dv">
40
-		<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
41
-		<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
42
-		<?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
43
-		<?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
40
+		<?php espresso_get_template_part('content', 'espresso_events-tickets'); ?>
41
+		<?php espresso_get_template_part('content', 'espresso_events-datetimes'); ?>
42
+		<?php espresso_get_template_part('content', 'espresso_events-details'); ?>
43
+		<?php espresso_get_template_part('content', 'espresso_events-venues'); ?>
44 44
 		<footer class="event-meta">
45
-			<?php do_action( 'AHEE_event_details_footer_top', $post ); ?>
46
-			<?php do_action( 'AHEE_event_details_footer_bottom', $post ); ?>
45
+			<?php do_action('AHEE_event_details_footer_top', $post); ?>
46
+			<?php do_action('AHEE_event_details_footer_bottom', $post); ?>
47 47
 		</footer>
48 48
 	</div>
49 49
 
50
-<?php elseif ( is_archive() ) : ?>
50
+<?php elseif (is_archive()) : ?>
51 51
 
52
-	<div id="espresso-event-list-header-dv-<?php echo $post->ID;?>" class="espresso-event-header-dv">
53
-		<?php espresso_get_template_part( 'content', 'espresso_events-thumbnail' ); ?>
54
-		<?php espresso_get_template_part( 'content', 'espresso_events-header' ); ?>
52
+	<div id="espresso-event-list-header-dv-<?php echo $post->ID; ?>" class="espresso-event-header-dv">
53
+		<?php espresso_get_template_part('content', 'espresso_events-thumbnail'); ?>
54
+		<?php espresso_get_template_part('content', 'espresso_events-header'); ?>
55 55
 	</div>
56 56
 
57 57
 	<div class="espresso-event-list-wrapper-dv">
58
-		<?php espresso_get_template_part( 'content', 'espresso_events-tickets' ); ?>
59
-		<?php espresso_get_template_part( 'content', 'espresso_events-datetimes' ); ?>
60
-		<?php espresso_get_template_part( 'content', 'espresso_events-details' ); ?>
61
-		<?php espresso_get_template_part( 'content', 'espresso_events-venues' ); ?>
58
+		<?php espresso_get_template_part('content', 'espresso_events-tickets'); ?>
59
+		<?php espresso_get_template_part('content', 'espresso_events-datetimes'); ?>
60
+		<?php espresso_get_template_part('content', 'espresso_events-details'); ?>
61
+		<?php espresso_get_template_part('content', 'espresso_events-venues'); ?>
62 62
 	</div>
63 63
 
64 64
 <?php endif; ?>
65 65
 
66 66
 </article>
67 67
 <!-- #post -->
68
-<?php do_action( 'AHEE_event_details_after_post', $post );
68
+<?php do_action('AHEE_event_details_after_post', $post);
69 69
 
Please login to merge, or discard this patch.
public/Espresso_Arabica_2014/loop-espresso_events.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -11,22 +11,22 @@  discard block
 block discarded – undo
11 11
  * @ version		4+
12 12
  */
13 13
 
14
- if ( have_posts() ) : ?>
14
+ if (have_posts()) : ?>
15 15
 
16 16
 	<header class="page-header">
17 17
 		<h1 class="page-title">
18 18
 			<?php
19
-				if ( is_day() ) :
20
-					printf( __( 'Today\'s Events: %s', 'event_espresso' ), get_the_date() );
19
+				if (is_day()) :
20
+					printf(__('Today\'s Events: %s', 'event_espresso'), get_the_date());
21 21
 
22
-				elseif ( is_month() ) :
23
-					printf( __( 'Events This Month: %s', 'event_espresso' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'event_espresso' ) ) );
22
+				elseif (is_month()) :
23
+					printf(__('Events This Month: %s', 'event_espresso'), get_the_date(_x('F Y', 'monthly archives date format', 'event_espresso')));
24 24
 
25
-				elseif ( is_year() ) :
26
-					printf( __( 'Events This Year: %s', 'event_espresso' ), get_the_date( _x( 'Y', 'yearly archives date format', 'event_espresso' ) ) );
25
+				elseif (is_year()) :
26
+					printf(__('Events This Year: %s', 'event_espresso'), get_the_date(_x('Y', 'yearly archives date format', 'event_espresso')));
27 27
 
28 28
 				else :
29
-					echo apply_filters( 'FHEE__archive_espresso_events_template__upcoming_events_h1', __( 'Upcoming Events', 'event_espresso' ));
29
+					echo apply_filters('FHEE__archive_espresso_events_template__upcoming_events_h1', __('Upcoming Events', 'event_espresso'));
30 30
 
31 31
 				endif;
32 32
 			?>
@@ -36,20 +36,20 @@  discard block
 block discarded – undo
36 36
 
37 37
 	<?php
38 38
 		// allow other stuff
39
-		do_action( 'AHEE__archive_espresso_events_template__before_loop' );
39
+		do_action('AHEE__archive_espresso_events_template__before_loop');
40 40
 		// Start the Loop.
41
-		while ( have_posts() ) : the_post();
41
+		while (have_posts()) : the_post();
42 42
 			// Include the post TYPE-specific template for the content.
43
-			espresso_get_template_part( 'content', 'espresso_events-shortcode' );
43
+			espresso_get_template_part('content', 'espresso_events-shortcode');
44 44
 		endwhile;
45 45
 		// Previous/next page navigation.
46 46
 		espresso_pagination();
47 47
 		// allow moar other stuff
48
-		do_action( 'AHEE__archive_espresso_events_template__after_loop' );
48
+		do_action('AHEE__archive_espresso_events_template__after_loop');
49 49
 
50 50
 	else :
51 51
 		// If no content, include the "No posts found" template.
52
-		espresso_get_template_part( 'content', 'none' );
52
+		espresso_get_template_part('content', 'none');
53 53
 
54 54
 	endif;
55 55
 
Please login to merge, or discard this patch.