Completed
Branch FET-7988-evertec-needs (20e248)
by
unknown
1119:58 queued 1106:57
created
core/db_models/EEM_Soft_Delete_Base.model.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 	 * @param boolean $allow_blocking if TRUE, matched objects will only be deleted if there is no related model info
244 244
 	 * that blocks it (ie, there' sno other data that depends on this data); if false, deletes regardless of other objects
245 245
 	 * which may depend on it. Its generally advisable to always leave this as TRUE, otherwise you could easily corrupt your DB
246
-	 * @return boolean success
246
+	 * @return integer success
247 247
 	 */
248 248
 	public function delete_permanently($query_params = array(), $allow_blocking = true){
249 249
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
 	 * @param boolean $allow_blocking if TRUE, matched objects will only be deleted if there is no related model info
259 259
 	 * that blocks it (ie, there' sno other data that depends on this data); if false, deletes regardless of other objects
260 260
 	 * which may depend on it. Its generally advisable to always leave this as TRUE, otherwise you could easily corrupt your DB
261
-	 * @return boolean success
261
+	 * @return integer success
262 262
 	 */
263 263
 	public function delete_permanently_by_ID($ID=FALSE, $allow_blocking = true){
264 264
 		$query_params = array();
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
 	/**
353 353
 	 * Updates all the items of this model which match the $query params, regardless of whether
354 354
 	 * they've been soft-deleted or not
355
-	 * @param array $field_n_values like EEM_Base::update's $fields_n_value
355
+	 * @param array $fields_n_values like EEM_Base::update's $fields_n_value
356 356
 	 * @param array $query_params like EEM_base::get_all's $query_params
357 357
 	 * @param boolean $keep_model_objs_in_sync if TRUE, makes sure we ALSO update model objects
358 358
 	 * in this model's entity map according to $fields_n_values that match $query_params. This
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@  discard block
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
  * EEH_URL helper
4 6
  * Helper class for URL-related PHP functions
@@ -62,7 +64,7 @@  discard block
 block discarded – undo
62 64
 				isset($results['response']['code']) &&
63 65
 				$results['response']['code'] == '200'){
64 66
 			return true;
65
-		}else{
67
+		} else{
66 68
 			return false;
67 69
 		}
68 70
 	}
Please login to merge, or discard this patch.
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
2
-require_once( EE_MODELS . 'EEM_Base.model.php');
2
+require_once(EE_MODELS.'EEM_Base.model.php');
3 3
 /**
4 4
  * EEM_Soft_Delete_Base
5 5
  *
@@ -25,14 +25,14 @@  discard block
 block discarded – undo
25 25
  * @subpackage		includes/models/
26 26
  * @author				Michael Nelson
27 27
  */
28
-abstract class EEM_Soft_Delete_Base extends EEM_Base{
28
+abstract class EEM_Soft_Delete_Base extends EEM_Base {
29 29
 
30 30
 	/**
31 31
 	 * @param null $timezone
32 32
 	 */
33 33
 	protected function __construct($timezone = NULL) {
34
-		require_once( EE_MODELS . 'strategies/EE_Soft_Delete_Where_Conditions.strategy.php');
35
-		if( ! $this->_default_where_conditions_strategy){
34
+		require_once(EE_MODELS.'strategies/EE_Soft_Delete_Where_Conditions.strategy.php');
35
+		if ( ! $this->_default_where_conditions_strategy) {
36 36
 			$this->_default_where_conditions_strategy = new EE_Soft_Delete_Where_Conditions();
37 37
 		}
38 38
 		parent::__construct($timezone);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
 	 * @return string
44 44
 	 * @throws EE_Error
45 45
 	 */
46
-	public function deleted_field_name(){
46
+	public function deleted_field_name() {
47 47
 		$field = $this->get_a_field_of_type('EE_Trashed_Flag_Field');
48
-		if($field){
48
+		if ($field) {
49 49
 			return $field->get_name();
50
-		}else{
51
-			throw new EE_Error(sprintf(__('We are trying to find the deleted flag field on %s, but none was found. Are you sure there is a field of type EE_Trashed_Flag_Field in %s constructor?','event_espresso'),get_class($this),get_class($this)));
50
+		} else {
51
+			throw new EE_Error(sprintf(__('We are trying to find the deleted flag field on %s, but none was found. Are you sure there is a field of type EE_Trashed_Flag_Field in %s constructor?', 'event_espresso'), get_class($this), get_class($this)));
52 52
 		}
53 53
 	}
54 54
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	 * @param array $query_params like EEM_Base::get_all
60 60
 	 * @return EE_Soft_Delete_Base_Class[]
61 61
 	 */
62
-	public function get_all($query_params = array()){
62
+	public function get_all($query_params = array()) {
63 63
 		return parent::get_all($query_params);
64 64
 	}
65 65
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 * @param array $query_params like EEM_Base::get_all's $query_params
70 70
 	 * @return EE_Soft_Delete_Base_Class
71 71
 	 */
72
-	public function get_one($query_params = array()){
72
+	public function get_one($query_params = array()) {
73 73
 		return parent::get_one($query_params);
74 74
 	}
75 75
 	/**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	 * @param array $query_params like EEM_Base::get_all's $query_params
78 78
 	 * @return EE_Soft_Delete_Base_Class
79 79
 	 */
80
-	public function get_one_deleted($query_params = array()){
80
+	public function get_one_deleted($query_params = array()) {
81 81
 		$query_params = $this->_alter_query_params_so_only_trashed_items_included($query_params);
82 82
 		return parent::get_one($query_params);
83 83
 	}
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * @param array $query_params like EEM_base::get_all's $query_params
88 88
 	 * @return EE_Soft_Delete_Base_Class
89 89
 	 */
90
-	public function get_one_deleted_or_undeleted($query_params = array()){
90
+	public function get_one_deleted_or_undeleted($query_params = array()) {
91 91
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
92 92
 		return parent::get_one($query_params);
93 93
 	}
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 * @param int|string $id
109 109
 	 * @return EE_Soft_Delete_Base_Class
110 110
 	 */
111
-	public function get_one_by_ID_but_ignore_deleted($id){
111
+	public function get_one_by_ID_but_ignore_deleted($id) {
112 112
 		return parent::get_one_by_ID($id);
113 113
 	}
114 114
 	/**
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	 * @param boolean $distinct
120 120
 	 * @return int count
121 121
 	 */
122
-	public function count($query_params = array(), $field_to_count = null, $distinct = false){
122
+	public function count($query_params = array(), $field_to_count = null, $distinct = false) {
123 123
 		//just calls parent, but changes PHP docs for this function
124 124
 		return parent::count($query_params, $field_to_count, $distinct);
125 125
 	}
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 	 * @param bool 	 $distinct if we want to only count the distinct values for the column then you can trigger that by the setting $distinct to TRUE;
132 132
 	 * @return int
133 133
 	 */
134
-	public function count_deleted($query_params = null, $field_to_count = null, $distinct = FALSE){
134
+	public function count_deleted($query_params = null, $field_to_count = null, $distinct = FALSE) {
135 135
 		$query_params = $this->_alter_query_params_so_only_trashed_items_included($query_params);
136 136
 		return parent::count($query_params, $field_to_count, $distinct);
137 137
 	}
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
 	 * @param array $query_params like EEM_Base::get_all's $query_params
142 142
 	 * @return array like EEM_Base::get_all's $query_params
143 143
 	 */
144
-	protected function _alter_query_params_so_only_trashed_items_included($query_params){
145
-		$deletedFlagFieldName=$this->deleted_field_name();
146
-		$query_params[0][$deletedFlagFieldName]=true;
144
+	protected function _alter_query_params_so_only_trashed_items_included($query_params) {
145
+		$deletedFlagFieldName = $this->deleted_field_name();
146
+		$query_params[0][$deletedFlagFieldName] = true;
147 147
 		return $query_params;
148 148
 	}
149 149
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 	 * @param array $query_params
153 153
 	 * @return array
154 154
 	 */
155
-	public function alter_query_params_so_deleted_and_undeleted_items_included($query_params){
155
+	public function alter_query_params_so_deleted_and_undeleted_items_included($query_params) {
156 156
 		return $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
157 157
 	}
158 158
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * @param array $query_params
162 162
 	 * @return array
163 163
 	 */
164
-	protected function _alter_query_params_so_deleted_and_undeleted_items_included($query_params){
164
+	protected function _alter_query_params_so_deleted_and_undeleted_items_included($query_params) {
165 165
 		$query_params['default_where_conditions'] = 'other_models_only';
166 166
 		return $query_params;
167 167
 	}
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
 	 * @param bool 	 $distinct if we want to only count the distinct values for the column then you can trigger that by the setting $distinct to TRUE;
174 174
 	 * @return int
175 175
 	 */
176
-	public function count_deleted_and_undeleted($query_params = null, $field_to_count = null, $distinct = FALSE){
176
+	public function count_deleted_and_undeleted($query_params = null, $field_to_count = null, $distinct = FALSE) {
177 177
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
178
-		return parent::count($query_params,$field_to_count, $distinct);
178
+		return parent::count($query_params, $field_to_count, $distinct);
179 179
 	}
180 180
 
181 181
 	/**
@@ -184,9 +184,9 @@  discard block
 block discarded – undo
184 184
 	 * @param string $field_to_sum name of field
185 185
 	 * @return int count
186 186
 	 */
187
-	public function sum($query_params =null,$field_to_sum= null){
187
+	public function sum($query_params = null, $field_to_sum = null) {
188 188
 		//just calls parent, but changes PHP doc
189
-		return parent::sum($query_params,$field_to_sum);
189
+		return parent::sum($query_params, $field_to_sum);
190 190
 	}
191 191
 
192 192
 
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 	 * @param string $field_to_sum
197 197
 	 * @return int
198 198
 	 */
199
-	public function sum_deleted($query_params = null, $field_to_sum = null){
199
+	public function sum_deleted($query_params = null, $field_to_sum = null) {
200 200
 		$query_params = $this->_alter_query_params_so_only_trashed_items_included($query_params);
201 201
 		return parent::sum($query_params, $field_to_sum);
202 202
 	}
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 * @param string $field_to_sum
208 208
 	 * @reutrn int
209 209
 	 */
210
-	public function sum_deleted_and_undeleted($query_params = null, $field_to_sum = null){
210
+	public function sum_deleted_and_undeleted($query_params = null, $field_to_sum = null) {
211 211
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
212 212
 		parent::sum($query_params, $field_to_sum);
213 213
 	}
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 	 * @param array $query_params like EEM_Base::get_all
218 218
 	 * @return EE_Soft_Delete_Base_Class[]
219 219
 	 */
220
-	public function get_all_deleted_and_undeleted($query_params = array()){
220
+	public function get_all_deleted_and_undeleted($query_params = array()) {
221 221
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
222 222
 		return parent::get_all($query_params);
223 223
 	}
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 	 * @param array $query_params like EEM_Base::get_all
228 228
 	 * @return EE_Soft_Delete_Base_Class[]
229 229
 	 */
230
-	public function get_all_deleted($query_params = array()){
230
+	public function get_all_deleted($query_params = array()) {
231 231
 		$query_params = $this->_alter_query_params_so_only_trashed_items_included($query_params);
232 232
 		return parent::get_all($query_params);
233 233
 	}
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 	 * which may depend on it. Its generally advisable to always leave this as TRUE, otherwise you could easily corrupt your DB
246 246
 	 * @return boolean success
247 247
 	 */
248
-	public function delete_permanently($query_params = array(), $allow_blocking = true){
248
+	public function delete_permanently($query_params = array(), $allow_blocking = true) {
249 249
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
250 250
 		return parent::delete($query_params, $allow_blocking);
251 251
 	}
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	 * which may depend on it. Its generally advisable to always leave this as TRUE, otherwise you could easily corrupt your DB
261 261
 	 * @return boolean success
262 262
 	 */
263
-	public function delete_permanently_by_ID($ID=FALSE, $allow_blocking = true){
263
+	public function delete_permanently_by_ID($ID = FALSE, $allow_blocking = true) {
264 264
 		$query_params = array();
265 265
 		$query_params[0] = array($this->get_primary_key_field()->get_name() => $ID);
266 266
 		$query_params['limit'] = 1;
@@ -274,8 +274,8 @@  discard block
 block discarded – undo
274 274
 	 * @param mixed $ID value of the primary_key or primary_text_key
275 275
 	 * @return boolean success
276 276
 	 */
277
-	public function delete_by_ID($ID){
278
-		return $this->delete_or_restore_by_ID(true,$ID);
277
+	public function delete_by_ID($ID) {
278
+		return $this->delete_or_restore_by_ID(true, $ID);
279 279
 	}
280 280
 	/**
281 281
 	 * Restores a particular item by its ID (primary key). Ignores the fact whether the item
@@ -283,8 +283,8 @@  discard block
 block discarded – undo
283 283
 	 * @param mixed $ID int if primary key is an int, string otherwise
284 284
 	 * @return boolean success
285 285
 	 */
286
-	public function restore_by_ID($ID=FALSE){
287
-		return $this->delete_or_restore_by_ID(false,$ID);
286
+	public function restore_by_ID($ID = FALSE) {
287
+		return $this->delete_or_restore_by_ID(false, $ID);
288 288
 	}
289 289
 	/**
290 290
 	 * For deleting or restoring a particular item. Note that this model is a SOFT-DELETABLE model! However,
@@ -293,15 +293,15 @@  discard block
 block discarded – undo
293 293
 	 * @param mixed $ID int if primary key is an int, string otherwise
294 294
 	 * @return boolean
295 295
 	 */
296
-	public function delete_or_restore_by_ID($delete=true,$ID=FALSE){
297
-		if ( ! $ID ) {
296
+	public function delete_or_restore_by_ID($delete = true, $ID = FALSE) {
297
+		if ( ! $ID) {
298 298
 			return FALSE;
299 299
 		}
300
-		$primaryKeyName=$this->primary_key_name();
300
+		$primaryKeyName = $this->primary_key_name();
301 301
 		// retrieve a particular transaction
302 302
 		$query_params = array();
303
-		$query_params[0] = array( $primaryKeyName => $ID );
304
-		if ( $this->delete_or_restore ($delete, $query_params )) {
303
+		$query_params[0] = array($primaryKeyName => $ID);
304
+		if ($this->delete_or_restore($delete, $query_params)) {
305 305
 			return TRUE;
306 306
 		} else {
307 307
 			return FALSE;
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 	 * @param bool  $block_deletes
320 320
 	 * @return boolean
321 321
 	 */
322
-	public function delete($query_params = array(), $block_deletes = false){
322
+	public function delete($query_params = array(), $block_deletes = false) {
323 323
 		//no matter what, we WON'T block soft deletes.
324 324
 		return $this->delete_or_restore(true, $query_params);
325 325
 	}
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 	 * @param array $query_params like EEM_Base::get_all
331 331
 	 * @return boolean
332 332
 	 */
333
-	public function restore($query_params = array()){
333
+	public function restore($query_params = array()) {
334 334
 		return $this->delete_or_restore(false, $query_params);
335 335
 	}
336 336
 	/**
@@ -339,10 +339,10 @@  discard block
 block discarded – undo
339 339
 	 * @param array $query_params like EEM_Base::get_all
340 340
 	 * @return boolean
341 341
 	 */
342
-	function delete_or_restore($delete=true,$query_params = array()){
343
-		$deletedFlagFieldName=$this->deleted_field_name();
342
+	function delete_or_restore($delete = true, $query_params = array()) {
343
+		$deletedFlagFieldName = $this->deleted_field_name();
344 344
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
345
-		if ( $this->update (array($deletedFlagFieldName=>$delete), $query_params )) {
345
+		if ($this->update(array($deletedFlagFieldName=>$delete), $query_params)) {
346 346
 			return TRUE;
347 347
 		} else {
348 348
 			return FALSE;
@@ -360,9 +360,9 @@  discard block
 block discarded – undo
360 360
 	 * be aware that model objects being used could get out-of-sync with the database
361 361
 	 * @return int number of items updated
362 362
 	 */
363
-	public function update_deleted_and_undeleted($fields_n_values, $query_params, $keep_model_objs_in_sync = TRUE ){
363
+	public function update_deleted_and_undeleted($fields_n_values, $query_params, $keep_model_objs_in_sync = TRUE) {
364 364
 		$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
365
-		return $this->update($fields_n_values, $query_params, $keep_model_objs_in_sync );
365
+		return $this->update($fields_n_values, $query_params, $keep_model_objs_in_sync);
366 366
 	}
367 367
 
368 368
 	/**
@@ -377,8 +377,8 @@  discard block
 block discarded – undo
377 377
 	 * be aware that model objects being used could get out-of-sync with the database
378 378
 	 * @return int how many items were updated
379 379
 	 */
380
-	public function update($fields_n_values, $query_params, $keep_model_objs_in_sync = TRUE ){
381
-		return parent::update($fields_n_values,$query_params, $keep_model_objs_in_sync );
380
+	public function update($fields_n_values, $query_params, $keep_model_objs_in_sync = TRUE) {
381
+		return parent::update($fields_n_values, $query_params, $keep_model_objs_in_sync);
382 382
 	}
383 383
 
384 384
 
Please login to merge, or discard this patch.
core/libraries/plugin_api/EE_Register_Capabilities.lib.php 4 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,6 @@
 block discarded – undo
89 89
 	 * callback for FHEE__EE_Capabilities__init_caps_map__caps filter.
90 90
 	 * Takes care of registering additional capabilities to the caps map.   Note, that this also on the initial registration ensures that new capabilities are added to existing roles.
91 91
 	 *
92
-	 * @param array $caps_and_cap_map The original caps map.
93 92
 	 *
94 93
 	 * @return array merged in new caps.
95 94
 	 */
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,9 @@  discard block
 block discarded – undo
5 5
  * @subpackage plugin api, capabilities
6 6
  * @since           4.5.0
7 7
  */
8
-if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
8
+if ( ! defined('EVENT_ESPRESSO_VERSION')) {
9
+	exit('No direct script access allowed');
10
+}
9 11
 
10 12
 /**
11 13
  * Use this to register new capabilities for the EE capabilities system.
@@ -167,8 +169,9 @@  discard block
 block discarded – undo
167 169
 
168 170
 
169 171
 	public static function deregister( $cap_reference = NULL ) {
170
-		if ( !empty( self::$_registry[$cap_reference] ) )
171
-    		unset( self::$_registry[$cap_reference] );
172
+		if ( !empty( self::$_registry[$cap_reference] ) ) {
173
+		    		unset( self::$_registry[$cap_reference] );
174
+		}
172 175
 		//make sure to remove the filters added by cap map objects
173 176
 		if( isset( self::$_registered_cap_maps[ $cap_reference ] ) ) {
174 177
 			if( is_array( self::$_registered_cap_maps[ $cap_reference ] ) ){
Please login to merge, or discard this patch.
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -40,39 +40,39 @@  discard block
 block discarded – undo
40 40
 	 *
41 41
 	 * @return void
42 42
 	 */
43
-	public static function register( $cap_reference = NULL, $setup_args = array() ) {
43
+	public static function register($cap_reference = NULL, $setup_args = array()) {
44 44
 		//required fields MUST be present, so let's make sure they are.
45
-		if ( ! isset( $cap_reference ) || ! is_array( $setup_args ) || empty( $setup_args['capabilities'] ) ) {
45
+		if ( ! isset($cap_reference) || ! is_array($setup_args) || empty($setup_args['capabilities'])) {
46 46
 			throw new EE_Error(
47
-				__( 'In order to register capabilities with EE_Register_Capabilities::register, you must include a unique name to reference the capabilities being registered, plus an array containing the following keys: "capabilities".', 'event_espresso' )
47
+				__('In order to register capabilities with EE_Register_Capabilities::register, you must include a unique name to reference the capabilities being registered, plus an array containing the following keys: "capabilities".', 'event_espresso')
48 48
 			);
49 49
 		}
50 50
 
51 51
 		//make sure we don't register twice
52
-		if( isset( self::$_registry[ $cap_reference ] ) ){
52
+		if (isset(self::$_registry[$cap_reference])) {
53 53
 			return;
54 54
 		}
55 55
 
56 56
 		//make sure this is not registered too late or too early.
57
-		if ( ! did_action( 'AHEE__EE_System__load_espresso_addons' ) || did_action( 'AHEE__EE_System___detect_if_activation_or_upgrade__begin' ) ) {
58
-			EE_Error::doing_it_wrong( __METHOD__, sprintf( __('%s has been registered too late.  Please ensure that EE_Register_Capabilities::register has been called at some point before the "AHEE__EE_System___detect_if_activation_or_upgrade__begin" action hook has been called.', 'event_espresso'), $cap_reference ), '4.5.0' );
57
+		if ( ! did_action('AHEE__EE_System__load_espresso_addons') || did_action('AHEE__EE_System___detect_if_activation_or_upgrade__begin')) {
58
+			EE_Error::doing_it_wrong(__METHOD__, sprintf(__('%s has been registered too late.  Please ensure that EE_Register_Capabilities::register has been called at some point before the "AHEE__EE_System___detect_if_activation_or_upgrade__begin" action hook has been called.', 'event_espresso'), $cap_reference), '4.5.0');
59 59
 		}
60 60
 
61 61
 		//some preliminary sanitization and setting to the $_registry property
62 62
 		self::$_registry[$cap_reference] = array(
63
-			'caps' => isset( $setup_args['capabilities'] ) && is_array( $setup_args['capabilities'] ) ? $setup_args['capabilities'] : array(),
64
-			'cap_maps' => isset( $setup_args['capability_maps'] ) ? $setup_args['capability_maps'] : array()
63
+			'caps' => isset($setup_args['capabilities']) && is_array($setup_args['capabilities']) ? $setup_args['capabilities'] : array(),
64
+			'cap_maps' => isset($setup_args['capability_maps']) ? $setup_args['capability_maps'] : array()
65 65
 			);
66 66
 
67 67
 
68 68
 		//set initial caps (note that EE_Capabilities takes care of making sure that the caps get added donly once)
69
-		add_filter( 'FHEE__EE_Capabilities__init_caps_map__caps', array( 'EE_Register_Capabilities', 'register_capabilities' ), 10 );
69
+		add_filter('FHEE__EE_Capabilities__init_caps_map__caps', array('EE_Register_Capabilities', 'register_capabilities'), 10);
70 70
 
71 71
 		//add filter for cap maps
72
-		add_filter( 'FHEE__EE_Capabilities___set_meta_caps__meta_caps', array( 'EE_Register_Capabilities', 'register_cap_maps' ), 10 );
72
+		add_filter('FHEE__EE_Capabilities___set_meta_caps__meta_caps', array('EE_Register_Capabilities', 'register_cap_maps'), 10);
73 73
 
74 74
 		//init_role_caps to register new capabilities
75
-		if ( is_admin() ) {
75
+		if (is_admin()) {
76 76
 			EE_Registry::instance()->load('Capabilities');
77 77
 			EE_Capabilities::instance()->init_caps();
78 78
 		}
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
 	 *
89 89
 	 * @return array merged in new caps.
90 90
 	 */
91
-	public static function register_capabilities( $incoming_caps ) {
92
-		foreach ( self::$_registry as $ref => $caps_and_cap_map ) {
93
-			$incoming_caps = array_merge_recursive( $incoming_caps, $caps_and_cap_map[ 'caps' ] );
91
+	public static function register_capabilities($incoming_caps) {
92
+		foreach (self::$_registry as $ref => $caps_and_cap_map) {
93
+			$incoming_caps = array_merge_recursive($incoming_caps, $caps_and_cap_map['caps']);
94 94
 		}
95 95
 		return $incoming_caps;
96 96
 	}
@@ -106,22 +106,22 @@  discard block
 block discarded – undo
106 106
 	 *
107 107
 	 * @return EE_Meta_Capability_Map[]
108 108
 	 */
109
-	public static function register_cap_maps( $cap_maps ) {
109
+	public static function register_cap_maps($cap_maps) {
110 110
 		//loop through and instantiate cap maps.
111
-		foreach ( self::$_registry as $cap_reference => $setup ) {
112
-			if ( ! isset( $setup['cap_maps'] ) ) {
111
+		foreach (self::$_registry as $cap_reference => $setup) {
112
+			if ( ! isset($setup['cap_maps'])) {
113 113
 				continue;
114 114
 			}
115
-			foreach ( $setup['cap_maps'] as $cap_class => $args ) {
116
-				if ( ! class_exists( $cap_class ) ) {
117
-					throw new EE_Error( sprintf( __( 'An addon (%s) has tried to register a capability map improperly.  Capability map arrays must be indexed by capability map classname, and an array for the class arguments', 'event_espresso' ), $cap_reference ) );
115
+			foreach ($setup['cap_maps'] as $cap_class => $args) {
116
+				if ( ! class_exists($cap_class)) {
117
+					throw new EE_Error(sprintf(__('An addon (%s) has tried to register a capability map improperly.  Capability map arrays must be indexed by capability map classname, and an array for the class arguments', 'event_espresso'), $cap_reference));
118 118
 				}
119 119
 
120
-				if ( count( $args ) !== 2 ) {
121
-					throw new EE_Error( sprintf( __('An addon (%s) has tried to register a capability map improperly.  Capability map arrays must be indexed by capability map classname, and an array for the class arguments.  The array should have two values the first being a string and the second an array.', 'event_espresso' ), $cap_reference ) );
120
+				if (count($args) !== 2) {
121
+					throw new EE_Error(sprintf(__('An addon (%s) has tried to register a capability map improperly.  Capability map arrays must be indexed by capability map classname, and an array for the class arguments.  The array should have two values the first being a string and the second an array.', 'event_espresso'), $cap_reference));
122 122
 				}
123 123
 
124
-				$cap_maps[] = new $cap_class( $args[0], $args[1] );
124
+				$cap_maps[] = new $cap_class($args[0], $args[1]);
125 125
 			}
126 126
 		}
127 127
 		return $cap_maps;
@@ -130,8 +130,8 @@  discard block
 block discarded – undo
130 130
 
131 131
 
132 132
 
133
-	public static function deregister( $cap_reference = NULL ) {
134
-		if ( !empty( self::$_registry[$cap_reference] ) )
135
-    		unset( self::$_registry[$cap_reference] );
133
+	public static function deregister($cap_reference = NULL) {
134
+		if ( ! empty(self::$_registry[$cap_reference]))
135
+    		unset(self::$_registry[$cap_reference]);
136 136
 	}
137 137
 }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,6 +132,6 @@
 block discarded – undo
132 132
 
133 133
 	public static function deregister( $cap_reference = NULL ) {
134 134
 		if ( !empty( self::$_registry[$cap_reference] ) )
135
-    		unset( self::$_registry[$cap_reference] );
135
+			unset( self::$_registry[$cap_reference] );
136 136
 	}
137 137
 }
Please login to merge, or discard this patch.
admin_pages/about/templates/credits.template.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 <ul class="wp-people-group" id="ee-people-group-owners">
4 4
 	<li class="wp-person" id="ee-person-sshoultes">
5 5
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
6
-			<?php echo esp_gravatar_image( '[email protected]', 'Seth Shoultes' ); ?>
6
+			<?php echo esp_gravatar_image('[email protected]', 'Seth Shoultes'); ?>
7 7
 		</a>
8 8
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
9 9
 			Seth Shoultes
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 	</li>
13 13
 	<li class="wp-person" id="ee-person-gkoyle">
14 14
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
15
-			<?php echo esp_gravatar_image( '[email protected]', 'Garth Koyle' ); ?>
15
+			<?php echo esp_gravatar_image('[email protected]', 'Garth Koyle'); ?>
16 16
 		</a>
17 17
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
18 18
 			Garth Koyle
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 <ul class="wp-people-group" id="ee-people-group-core-developers">
25 25
 	<li class="wp-person" id="ee-person-bchristensen">
26 26
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
27
-			<?php echo esp_gravatar_image( '[email protected]', 'Brent Christensen' ); ?>
27
+			<?php echo esp_gravatar_image('[email protected]', 'Brent Christensen'); ?>
28 28
 		</a>
29 29
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
30 30
 			Brent Christensen
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	</li>
34 34
 	<li class="wp-person" id="ee-person-dethier">
35 35
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
36
-			<?php echo esp_gravatar_image( '[email protected]', 'Darren Ethier' ); ?>
36
+			<?php echo esp_gravatar_image('[email protected]', 'Darren Ethier'); ?>
37 37
 		</a>
38 38
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
39 39
 			Darren Ethier
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 	</li>
43 43
 	<li class="wp-person" id="ee-person-mnelson">
44 44
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
45
-			<?php echo esp_gravatar_image( '[email protected]', 'Michael Nelson' ); ?>
45
+			<?php echo esp_gravatar_image('[email protected]', 'Michael Nelson'); ?>
46 46
 		</a>
47 47
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
48 48
 			Michael Nelson
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 <ul class="wp-people-group" id="ee-people-group-support-staff">
55 55
 	<li class="wp-person" id="ee-person-jfeck">
56 56
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
57
-			<?php echo esp_gravatar_image( '[email protected]', 'Josh Feck' ); ?>
57
+			<?php echo esp_gravatar_image('[email protected]', 'Josh Feck'); ?>
58 58
 		</a>
59 59
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
60 60
 			Josh Feck
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	</li>
63 63
 	<li class="wp-person" id="ee-person-drobinson">
64 64
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
65
-			<?php echo esp_gravatar_image( '[email protected]', 'Dean Robinson' ); ?>
65
+			<?php echo esp_gravatar_image('[email protected]', 'Dean Robinson'); ?>
66 66
 		</a>
67 67
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
68 68
 			Dean Robinson
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 	</li>
71 71
 	<li class="wp-person" id="ee-person-jwilson">
72 72
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
73
-			<?php echo esp_gravatar_image( '[email protected]', 'Jonathan Wilson' ); ?>
73
+			<?php echo esp_gravatar_image('[email protected]', 'Jonathan Wilson'); ?>
74 74
 		</a>
75 75
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
76 76
 			Jonathan Wilson
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 	</li>
79 79
 	<li class="wp-person" id="ee-person-sharrel">
80 80
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
81
-			<?php echo esp_gravatar_image( '[email protected]', 'Sidney Harrell' ); ?>
81
+			<?php echo esp_gravatar_image('[email protected]', 'Sidney Harrell'); ?>
82 82
 		</a>
83 83
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
84 84
 			Sidney Harrel
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	</li>
87 87
 	<li class="wp-person" id="ee-person-twarwick">
88 88
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
89
-			<?php echo esp_gravatar_image( '[email protected]', 'Tony Warwick' ); ?>
89
+			<?php echo esp_gravatar_image('[email protected]', 'Tony Warwick'); ?>
90 90
 		</a>
91 91
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
92 92
 			Tony Warwick
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 	</li>
95 95
 	<li class="wp-person" id="ee-person-lcaum">
96 96
 		<a href="<?php esp_gravatar_profile('[email protected]'); ?>">
97
-			<?php echo esp_gravatar_image( '[email protected]', 'Lorenzo Caum' ); ?>
97
+			<?php echo esp_gravatar_image('[email protected]', 'Lorenzo Caum'); ?>
98 98
 		</a>
99 99
 		<a class="web" href="<?php esp_gravatar_profile('[email protected]'); ?>">
100 100
 			Lorenzo Caum
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 </ul>
105 105
 <h4 class="wp-people-group"><?php _e('Contributor Recognition', 'event_espresso'); ?></h4>
106 106
 <p class="description">
107
-	<?php printf( __('For every major release we want to recognize the people who contributed to the release via a Github pull request. Want to see your name listed here? %sApply for access to our github repo.%s When you submit a pull request that gets included in a major release, we\'ll add your name here linked to your Github profile.', 'event_espresso'), '<a href="http://eventespresso.com/developers/request-repo-access/">', '</a>' ); ?>
107
+	<?php printf(__('For every major release we want to recognize the people who contributed to the release via a Github pull request. Want to see your name listed here? %sApply for access to our github repo.%s When you submit a pull request that gets included in a major release, we\'ll add your name here linked to your Github profile.', 'event_espresso'), '<a href="http://eventespresso.com/developers/request-repo-access/">', '</a>'); ?>
108 108
 </p>
109 109
 <p class="wp-credits-list">
110 110
 	<ul>
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 </p>
116 116
 <h4 class="wp-people-group"><?php _e('External Libraries', 'event_espresso'); ?></h4>
117 117
 <p class="description">
118
-	<?php printf( __('Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', 'event_espresso'), '<a href="credits.php">', '</a>' ); ?>
118
+	<?php printf(__('Along with the libraries %sincluded with WordPress%s, Event Espresso utilizes the following third party libraries:', 'event_espresso'), '<a href="credits.php">', '</a>'); ?>
119 119
 </p>
120 120
 <p class="wp-credits-list">
121 121
 	<a href="http://josscrowcroft.github.io/accounting.js/"><?php _e('accounting.js', 'event_espresso'); ?></a>,
@@ -131,10 +131,10 @@  discard block
 block discarded – undo
131 131
 
132 132
 <?php
133 133
 	function esp_gravatar_profile($email) {
134
-		echo 'http://www.gravatar.com/' . md5($email);
134
+		echo 'http://www.gravatar.com/'.md5($email);
135 135
 	}
136 136
 
137 137
 	function esp_gravatar_image($email, $name) {
138
-		echo '<img src="http://0.gravatar.com/avatar/' . md5($email) . '?s=60" class="gravatar" alt="' . $name . '"/>';
138
+		echo '<img src="http://0.gravatar.com/avatar/'.md5($email).'?s=60" class="gravatar" alt="'.$name.'"/>';
139 139
 	}
140 140
 ?>
Please login to merge, or discard this patch.
admin_pages/about/templates/ee4-overview.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 			<h3><?php _e('Turn your blog into a complete event registration and management system', 'event_espresso'); ?></h3>
63 63
 			<p><?php _e('Create a beautiful event page with ticket selection, venue details, and an integrated single page checkout system. With WordPress, Event Espresso, and Espresso Arabica 2014 (based on the "Twenty Fourteen" theme by WordPress), your events will certainly sell out faster than ever!', 'event_espresso'); ?></p>
64 64
 			<p><?php _e('With a striking design that does not compromise the simplicity of WordPress and Event Espresso 4, Espresso Arabica 2014 will be the best event theme on the market.', 'event_espresso'); ?></p>
65
-			<p><?php echo sprintf( __('%sLearn more >>%s', 'event_espresso'), '<a href="http://eventespresso.com/wiki/setup-event-espresso-arabica-theme/">', '</a>' ); ?></p>
65
+			<p><?php echo sprintf(__('%sLearn more >>%s', 'event_espresso'), '<a href="http://eventespresso.com/wiki/setup-event-espresso-arabica-theme/">', '</a>'); ?></p>
66 66
 		</div>
67 67
 	</div>
68 68
 	<img src="<?php echo EE_GLOBAL_ASSETS_URL; ?>images/screenshots/single-event-page.jpg">
Please login to merge, or discard this patch.
admin_pages/events/Events_Admin_Page_Init.core.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 
31 31
 	public function __construct() {
32 32
 		//define some events related constants
33
-		define( 'EVENTS_PG_SLUG', 'espresso_events' );
34
-		define( 'EVENTS_LABEL', __('Events', 'event_espresso'));
35
-		define( 'EVENTS_ADMIN', EE_ADMIN_PAGES . 'events' . DS );
36
-		define( 'EVENTS_ADMIN_URL', admin_url( 'admin.php?page=' . EVENTS_PG_SLUG ));
37
-		define( 'EVENTS_TEMPLATE_PATH', EVENTS_ADMIN . 'templates' . DS );
38
-		define( 'EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'events/assets/' );
33
+		define('EVENTS_PG_SLUG', 'espresso_events');
34
+		define('EVENTS_LABEL', __('Events', 'event_espresso'));
35
+		define('EVENTS_ADMIN', EE_ADMIN_PAGES.'events'.DS);
36
+		define('EVENTS_ADMIN_URL', admin_url('admin.php?page='.EVENTS_PG_SLUG));
37
+		define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN.'templates'.DS);
38
+		define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL.'events/assets/');
39 39
 		parent::__construct();
40 40
 	}
41 41
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 	}
45 45
 
46 46
 	protected function _set_menu_map() {
47
-		$this->_menu_map = new EE_Admin_Page_Main_Menu( array(
47
+		$this->_menu_map = new EE_Admin_Page_Main_Menu(array(
48 48
 			'menu_group' => 'main',
49 49
 			'menu_order' => 10,
50 50
 			'subtitle' => __('Events', 'event_espresso'),
Please login to merge, or discard this patch.
admin_pages/events/help_tours/Event_Edit_Help_Tour.class.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -123,14 +123,14 @@  discard block
 block discarded – undo
123 123
 					'tipLocation' => 'left'
124 124
 					)
125 125
 				),
126
-            110 => array(
126
+			110 => array(
127 127
 				'id' => 'espresso_event_editor_event_options',
128 128
 				'content' => $this->_event_registration_options_stop(),
129 129
 				'options' => array(
130 130
 					'tipLocation' => 'left'
131 131
 					)
132 132
 				),
133
-            120 => array(
133
+			120 => array(
134 134
 				'id' => 'submitpost',
135 135
 				'content' => $this->_publish_event_stop(),
136 136
 				'options' => array(
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 		return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>';
197 197
 	}
198 198
     
199
-    protected function _publish_event_stop() {
199
+	protected function _publish_event_stop() {
200 200
 		return '<p>' . __('Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', 'event_espresso') . '</p>';
201 201
 	}
202 202
 	
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 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
 /**
@@ -143,8 +143,8 @@  discard block
 block discarded – undo
143 143
 
144 144
 
145 145
 	protected function _start() {
146
-		$content = '<h3>' . __('Event Editor', 'event_espresso') . '</h3>';
147
-		$content .= '<p>' . __('This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', 'event_espresso') . '</p>';
146
+		$content = '<h3>'.__('Event Editor', 'event_espresso').'</h3>';
147
+		$content .= '<p>'.__('This tour of the Event Editor will provide an overview of the different areas of the screen to help you understand what they are used for. Let\'s get started on setting up your first event with Event Espresso!', 'event_espresso').'</p>';
148 148
 		return $content;
149 149
 	}
150 150
 
@@ -153,51 +153,51 @@  discard block
 block discarded – undo
153 153
 	}
154 154
 
155 155
 	protected function _event_description_stop() {
156
-		return '<p>' . __('The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', 'event_espresso') . '</p>';
156
+		return '<p>'.__('The rich text editor can be used to add information about your event. Images and links can also be added along with your text.', 'event_espresso').'</p>';
157 157
 	}
158 158
 
159 159
 	protected function _event_venues_caf() {
160
-		return '<p>' . __('In this section, you can select the venue that is hosting your event.', 'event_espresso') . '</p>';
160
+		return '<p>'.__('In this section, you can select the venue that is hosting your event.', 'event_espresso').'</p>';
161 161
 	}
162 162
 
163 163
 	protected function _event_venues_stop() {
164
-		return '<p>' . __('In this section, you can enter information about the venue that is hosting your event.', 'event_espresso') . '</p>';
164
+		return '<p>'.__('In this section, you can enter information about the venue that is hosting your event.', 'event_espresso').'</p>';
165 165
 	}
166 166
 
167 167
 	protected function _event_pricing_stop() {
168
-		return '<p>' . __('Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', 'event_espresso') . '</p>';
168
+		return '<p>'.__('Use the Event Datetime & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', 'event_espresso').'</p>';
169 169
 	}
170 170
 
171 171
 	protected function _event_pricing_caf() {
172
-		return '<p>' . __('Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', 'event_espresso') . '</p>';
172
+		return '<p>'.__('Use the Event Datetimes & Ticket section to enter details about when the event is happening and what tickets you want to offer for access to the event.', 'event_espresso').'</p>';
173 173
 	}
174 174
 	
175 175
 	protected function _event_registration_options_stop() {
176
-		return '<p>' . __('Setup custom options for your event registration.', 'event_espresso') . '</p>';
176
+		return '<p>'.__('Setup custom options for your event registration.', 'event_espresso').'</p>';
177 177
 	}
178 178
 	
179 179
 	protected function _event_post_tag_stop() {
180
-		return '<p>' . __('Quickly add tags to your event.', 'event_espresso') . '</p>';
180
+		return '<p>'.__('Quickly add tags to your event.', 'event_espresso').'</p>';
181 181
 	}
182 182
 
183 183
 	protected function _event_categories_stop() {
184
-		return '<p>' . __('Events can also be categorized if you wish.', 'event_espresso') . '</p>';
184
+		return '<p>'.__('Events can also be categorized if you wish.', 'event_espresso').'</p>';
185 185
 	}
186 186
 
187 187
 	protected function _primary_question_stop_caf() {
188
-		return '<p>' . __('Use the questions group to request information from your primary registrant.', 'event_espresso') . '</p>';
188
+		return '<p>'.__('Use the questions group to request information from your primary registrant.', 'event_espresso').'</p>';
189 189
 	}
190 190
 
191 191
 	protected function _additional_questions_stop_caf() {
192
-		return '<p>' . __('Use the questions group to request information from your additional registrant.', 'event_espresso') . '</p>';
192
+		return '<p>'.__('Use the questions group to request information from your additional registrant.', 'event_espresso').'</p>';
193 193
 	}
194 194
 	
195 195
 	protected function _featured_image_stop() {
196
-		return '<p>' . __('Set a feature image for your event here.', 'event_espresso') . '</p>';
196
+		return '<p>'.__('Set a feature image for your event here.', 'event_espresso').'</p>';
197 197
 	}
198 198
     
199 199
     protected function _publish_event_stop() {
200
-		return '<p>' . __('Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', 'event_espresso') . '</p>';
200
+		return '<p>'.__('Easily control the state of your event. The main states are Published, Pending Review, and Draft. Additional states are Cancelled, Postponed, and Sold Out.', 'event_espresso').'</p>';
201 201
 	}
202 202
 	
203 203
 }
204 204
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
admin_pages/messages/templates/ee_msg_m_settings_content.template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 	<div class"mt-settings">
6 6
 		<form method="POST" action="" class="mt-settings-form<?php echo $show_form; ?>">
7 7
 			<?php echo $template_form_fields; ?>
8
-			<?php foreach ( $hidden_fields as $name => $field ) {
8
+			<?php foreach ($hidden_fields as $name => $field) {
9 9
 				echo $field['field'];
10 10
 			} ?> 
11 11
 			<input type="submit" value="<?php _e('Submit', 'event_espresso'); ?>" class="button-secondary mt-settings-submit no-drag" />
Please login to merge, or discard this patch.
help_tours/Registration_Form_Questions_Overview_Help_Tour.class.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,8 +6,9 @@
 block discarded – undo
6 6
  * @package Event Espresso
7 7
  * @subpackage messages
8 8
  */
9
-if (!defined('EVENT_ESPRESSO_VERSION') )
9
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
10 10
 	exit('NO direct script access allowed');
11
+}
11 12
 
12 13
 /**
13 14
  *
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 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
 /**
@@ -125,34 +125,34 @@  discard block
 block discarded – undo
125 125
 
126 126
 
127 127
 	protected function _start() {
128
-		$content = '<h3>' . __('Questions Overview', 'event_espresso') . '</h3>';
129
-		$content .= '<p>' . __('This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
128
+		$content = '<h3>'.__('Questions Overview', 'event_espresso').'</h3>';
129
+		$content .= '<p>'.__('This tour of the Questions Overview page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
130 130
 
131 131
 		return $content;
132 132
 	}
133 133
 
134 134
 	protected function _question_id_stop() {
135
-		return '<p>' . __('View the question ID. Can be sorted in ascending or descending order.', 'event_espresso') . '</p>';
135
+		return '<p>'.__('View the question ID. Can be sorted in ascending or descending order.', 'event_espresso').'</p>';
136 136
 	}
137 137
 
138 138
 	protected function _display_text_stop() {
139
-		return '<p>' . __('View available questions. You can reorder your questions by dragging and dropping them.', 'event_espresso') . '</p>';
139
+		return '<p>'.__('View available questions. You can reorder your questions by dragging and dropping them.', 'event_espresso').'</p>';
140 140
 	}
141 141
 
142 142
 	protected function _admin_label_stop() {
143
-		return '<p>' . __('View the admin label for your questions.', 'event_espresso') . '</p>';
143
+		return '<p>'.__('View the admin label for your questions.', 'event_espresso').'</p>';
144 144
 	}
145 145
 
146 146
 	protected function _type_stop() {
147
-		return '<p>' . __('View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', 'event_espresso') . '</p>';
147
+		return '<p>'.__('View the type of question. Available options are Text, Textarea, Checkboxes, Radio Buttons, Dropdown, State/Province Dropdown, Country Dropdown, and Date Picker.', 'event_espresso').'</p>';
148 148
 	}
149 149
 
150 150
 	protected function _values_stop() {
151
-		return '<p>' . __('View stored values for checkboxes, radio buttons, and select boxes.', 'event_espresso') . '</p>';
151
+		return '<p>'.__('View stored values for checkboxes, radio buttons, and select boxes.', 'event_espresso').'</p>';
152 152
 	}
153 153
 
154 154
 	protected function _required_stop() {
155
-		return '<p>' . __('View if a question is required.', 'event_espresso') . '</p>';
155
+		return '<p>'.__('View if a question is required.', 'event_espresso').'</p>';
156 156
 	}
157 157
 
158 158
 	/* protected function _bulk_actions_stop() {
@@ -160,11 +160,11 @@  discard block
 block discarded – undo
160 160
 	} */
161 161
 
162 162
 	protected function _search_stop() {
163
-		return '<p>' . __('Search through questions. The following sources will be searched: Name of Question (display text).', 'event_espresso') . '</p>';
163
+		return '<p>'.__('Search through questions. The following sources will be searched: Name of Question (display text).', 'event_espresso').'</p>';
164 164
 	}
165 165
 
166 166
 	protected function _add_new_question_stop() {
167
-		return '<p>' . __('Click here to add a new question.', 'event_espresso') . '</p>';
167
+		return '<p>'.__('Click here to add a new question.', 'event_espresso').'</p>';
168 168
 	}
169 169
 
170 170
 }
171 171
\ No newline at end of file
Please login to merge, or discard this patch.
admin_pages/registrations/Registrations_Admin_Page_Init.core.php 2 patches
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,6 @@
 block discarded – undo
1
-<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) exit('No direct script access allowed');
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION')) {
2
+	exit('No direct script access allowed');
3
+}
2 4
 /**
3 5
  * Event Espresso
4 6
  *
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * ------------------------------------------------------------------------
23 23
  */
24
-class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init  {
24
+class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init {
25 25
 
26 26
 
27 27
 
@@ -34,16 +34,16 @@  discard block
 block discarded – undo
34 34
 	 * 		@return void
35 35
 	 */
36 36
 	public function __construct() {
37
-		do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' );
37
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
38 38
 
39
-		define( 'REG_PG_SLUG', 'espresso_registrations' );
40
-		define( 'REG_PG_NAME', ucwords( str_replace( '_', '', REG_PG_SLUG )));
41
-		define( 'REG_ADMIN', EE_ADMIN_PAGES . 'registrations' . DS );
42
-		define( 'REG_ADMIN_URL', admin_url( 'admin.php?page=' . REG_PG_SLUG ));
43
-		define( 'REG_ASSETS_PATH', REG_ADMIN . 'assets' . DS );
44
-		define( 'REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/' );
45
-		define( 'REG_TEMPLATE_PATH', REG_ADMIN . 'templates' . DS );
46
-		define( 'REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/' );
39
+		define('REG_PG_SLUG', 'espresso_registrations');
40
+		define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG)));
41
+		define('REG_ADMIN', EE_ADMIN_PAGES.'registrations'.DS);
42
+		define('REG_ADMIN_URL', admin_url('admin.php?page='.REG_PG_SLUG));
43
+		define('REG_ASSETS_PATH', REG_ADMIN.'assets'.DS);
44
+		define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL.'registrations/assets/');
45
+		define('REG_TEMPLATE_PATH', REG_ADMIN.'templates'.DS);
46
+		define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'registrations/templates/');
47 47
 
48 48
 		parent::__construct();
49 49
 	}
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
 
60 60
 	protected function _set_menu_map() {
61
-		$this->_menu_map = new EE_Admin_Page_Sub_Menu( array(
61
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(array(
62 62
 			'menu_group' => 'main',
63 63
 			'menu_order' => 40,
64 64
 			'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
Please login to merge, or discard this patch.