Completed
Branch BUG-11107-submit-button-text (11bd3b)
by
unknown
30:51 queued 19:49
created
admin_pages/general_settings/General_Settings_Admin_Page_Init.core.php 2 patches
Spacing   +8 added lines, -8 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
 /**
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
 
34 34
 	public function __construct() {
35 35
 		//define some constants
36
-		define( 'GEN_SET_PG_SLUG', 'espresso_general_settings' );
37
-		define( 'GEN_SET_LABEL', __('General Settings', 'event_espresso'));
38
-		define( 'GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings' . DS );
39
-		define( 'GEN_SET_ADMIN_URL', admin_url( 'admin.php?page=' . GEN_SET_PG_SLUG ));
40
-		define( 'GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates' . DS );
41
-		define( 'GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/' );
36
+		define('GEN_SET_PG_SLUG', 'espresso_general_settings');
37
+		define('GEN_SET_LABEL', __('General Settings', 'event_espresso'));
38
+		define('GEN_SET_ADMIN', EE_ADMIN_PAGES.'general_settings'.DS);
39
+		define('GEN_SET_ADMIN_URL', admin_url('admin.php?page='.GEN_SET_PG_SLUG));
40
+		define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN.'templates'.DS);
41
+		define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL.'general_settings/assets/');
42 42
 
43 43
 		parent::__construct();
44 44
 	}
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	}
49 49
 
50 50
 	protected function _set_menu_map() {
51
-		$this->_menu_map = new EE_Admin_Page_Sub_Menu( array(
51
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(array(
52 52
 			'menu_group' => 'settings',
53 53
 			'menu_order' => 20,
54 54
 			'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
admin_pages/general_settings/help_tours/Admin_Options_Help_Tour.class.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if ( ! defined('EVENT_ESPRESSO_VERSION'))
3 3
 	exit('NO direct script access allowed');
4 4
 
5 5
 /**
@@ -81,24 +81,24 @@  discard block
 block discarded – undo
81 81
 
82 82
 
83 83
 	protected function _start() {
84
-		$content = '<h3>' . __('Admin Options', 'event_espresso') . '</h3>';
85
-		$content .= '<p>' . __('This tour of the Admin Options page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
84
+		$content = '<h3>'.__('Admin Options', 'event_espresso').'</h3>';
85
+		$content .= '<p>'.__('This tour of the Admin Options page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
86 86
 		return $content;
87 87
 	}
88 88
 
89 89
 	protected function _use_full_logging_stop() {
90
-		return '<p>' . __('When enabled, a log file is created which can be useful for debugging. Please disable this option when you are finished debugging.', 'event_espresso') . '</p>';
90
+		return '<p>'.__('When enabled, a log file is created which can be useful for debugging. Please disable this option when you are finished debugging.', 'event_espresso').'</p>';
91 91
 	}
92 92
 
93 93
 	protected function _use_remote_logging_stop() {
94
-		return '<p>' . __(' This option sends all Event Espresso debugging data and get / post variables to the specified URL below.', 'event_espresso') . '</p>';
94
+		return '<p>'.__(' This option sends all Event Espresso debugging data and get / post variables to the specified URL below.', 'event_espresso').'</p>';
95 95
 	}
96 96
 
97 97
 	protected function _show_reg_footer_stop() {
98
-		return '<p>' . __('Support us by adding a small link to Event Espresso in your event pages. You can even earn money for yourself by adding your affiliate link there!', 'event_espresso') . '</p>';
98
+		return '<p>'.__('Support us by adding a small link to Event Espresso in your event pages. You can even earn money for yourself by adding your affiliate link there!', 'event_espresso').'</p>';
99 99
 	}
100 100
 	
101 101
 	protected function _help_tour_activation_stop() {
102
-		return '<p>' . __('Turn these help tours on / off for Event Espresso pages.', 'event_espresso') . '</p>';
102
+		return '<p>'.__('Turn these help tours on / off for Event Espresso pages.', 'event_espresso').'</p>';
103 103
 	}
104 104
 }
105 105
\ 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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
admin_pages/general_settings/help_tours/Countries_Help_Tour.class.php 2 patches
Spacing   +6 added lines, -6 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
 /**
@@ -71,20 +71,20 @@  discard block
 block discarded – undo
71 71
 
72 72
 
73 73
 	protected function _start() {
74
-		$content = '<h3>' . __('Countries Settings', 'event_espresso') . '</h3>';
75
-		$content .= '<p>' . __('This tour of the Countries Page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso') . '</p>';
74
+		$content = '<h3>'.__('Countries Settings', 'event_espresso').'</h3>';
75
+		$content .= '<p>'.__('This tour of the Countries Page will go over different areas of the screen to help you understand what they are used for.', 'event_espresso').'</p>';
76 76
 		return $content;
77 77
 	}
78 78
 
79 79
 	protected function _country_selector_stop() {
80
-		return '<p>' . __('Select the country where your business or organization is located. This affects the currency that is used in Event Espresso.', 'event_espresso') . '</p>';
80
+		return '<p>'.__('Select the country where your business or organization is located. This affects the currency that is used in Event Espresso.', 'event_espresso').'</p>';
81 81
 	}
82 82
 
83 83
 	protected function _country_details_stop() {
84
-		return '<p>' . __('Here you can fine tune country and currency settings.', 'event_espresso') . '</p>';
84
+		return '<p>'.__('Here you can fine tune country and currency settings.', 'event_espresso').'</p>';
85 85
 	}
86 86
 
87 87
 	protected function _country_states_settings_stop() {
88
-		return '<p>' . __('Used in certain areas of the plugin, here you can define what states/provinces will be displayed in case you do not do business in certain areas.', 'event_espresso') . '</p>';
88
+		return '<p>'.__('Used in certain areas of the plugin, here you can define what states/provinces will be displayed in case you do not do business in certain areas.', 'event_espresso').'</p>';
89 89
 	}
90 90
 }
91 91
\ 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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
admin_pages/general_settings/help_tours/Critical_Pages_Help_Tour.class.php 2 patches
Spacing   +8 added lines, -8 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
 /**
@@ -80,25 +80,25 @@  discard block
 block discarded – undo
80 80
 
81 81
 
82 82
 	protected function _start() {
83
-		$content = '<h3>' . __('Critical Pages', 'event_espresso') . '</h3>';
84
-		$content .= '<p>' . __('This section lists the pages that Event Espresso needs in order to function. Should you wish to change a page that is used you will need to move the shortcode to the new page and then allocate it here. Otherwise your registrations will not work correctly.', 'event_espresso') . '</p>';
85
-		$content .= '<p>' . __('This section also provides a status of the page to show you at a glance if something is not right.', 'event_espresso') . '</p>';
83
+		$content = '<h3>'.__('Critical Pages', 'event_espresso').'</h3>';
84
+		$content .= '<p>'.__('This section lists the pages that Event Espresso needs in order to function. Should you wish to change a page that is used you will need to move the shortcode to the new page and then allocate it here. Otherwise your registrations will not work correctly.', 'event_espresso').'</p>';
85
+		$content .= '<p>'.__('This section also provides a status of the page to show you at a glance if something is not right.', 'event_espresso').'</p>';
86 86
 		return $content;
87 87
 	}
88 88
 
89 89
 	protected function _reg_page_id_stop() {
90
-		return '<p>' . __('This page processes the registrations and is required, even if it is not visible in your menus. ', 'event_espresso') . '</p>';
90
+		return '<p>'.__('This page processes the registrations and is required, even if it is not visible in your menus. ', 'event_espresso').'</p>';
91 91
 	}
92 92
 
93 93
 	protected function _txn_page_id_stop() {
94
-		return '<p>' . __('This page processes payments. It should not be visible on your menus, and the page should not contain anything other than the shortcode.', 'event_espresso') . '</p>';
94
+		return '<p>'.__('This page processes payments. It should not be visible on your menus, and the page should not contain anything other than the shortcode.', 'event_espresso').'</p>';
95 95
 	}
96 96
 
97 97
 	protected function _thank_you_page_id_stop() {
98
-		return '<p>' . __('This page is displayed after a successful transaction. Feel free to add extra content to this page to personalise it!', 'event_espresso') . '</p>';
98
+		return '<p>'.__('This page is displayed after a successful transaction. Feel free to add extra content to this page to personalise it!', 'event_espresso').'</p>';
99 99
 	}
100 100
 
101 101
 	protected function _cancel_page_id_stop() {
102
-		return '<p>' . __('This page is displayed after an unsuccessful transaction. Feel free to add extra content to this page to personalise it!', 'event_espresso') . '</p>';
102
+		return '<p>'.__('This page is displayed after an unsuccessful transaction. Feel free to add extra content to this page to personalise it!', 'event_espresso').'</p>';
103 103
 	}
104 104
 }
105 105
\ 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
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.
general_settings/templates/country_details_settings.template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 	<table id="general-setting-country-details-tbl" class="form-table">
2 2
 		<tbody>
3 3
 		<?php 
4
-		foreach ( $inputs as $ID => $input ) { 
5
-			echo EEH_Form_Fields::generate_form_input( $input ); 
4
+		foreach ($inputs as $ID => $input) { 
5
+			echo EEH_Form_Fields::generate_form_input($input); 
6 6
 		 }
7 7
 		?>
8 8
 			<tr>
Please login to merge, or discard this patch.
admin_pages/general_settings/templates/state_details_settings.template.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@  discard block
 block discarded – undo
1 1
 	<table id="general-setting-country-states-tbl" class="form-table">
2 2
 		<thead>
3 3
 			<tr>
4
-				<th><?php _e( 'Code', 'event_espresso' );?></th>
5
-				<th><?php _e( 'Name', 'event_espresso' );?></th>
6
-				<th colspan="2"><span class="small-text"><?php _e( 'State Appears in<br/>Dropdown Select Lists ', 'event_espresso' );?></span></th>
4
+				<th><?php _e('Code', 'event_espresso'); ?></th>
5
+				<th><?php _e('Name', 'event_espresso'); ?></th>
6
+				<th colspan="2"><span class="small-text"><?php _e('State Appears in<br/>Dropdown Select Lists ', 'event_espresso'); ?></span></th>
7 7
 			</tr>
8 8
 		</thead>
9 9
 		<tbody>
10 10
 		<?php
11 11
 		//EEH_Debug_Tools::printr( $states, '$states  <br /><span style="font-size:10px;font-weight:normal;">' . __FILE__ . '<br />line no: ' . __LINE__ . '</span>', 'auto' );
12
-		if ( $states ) {
13
-			foreach ( $states as $STA_ID => $state ) {
12
+		if ($states) {
13
+			foreach ($states as $STA_ID => $state) {
14 14
 		?>
15 15
 			<tr id="state-<?php echo $STA_ID; ?>-tr" class="country-state-columns">
16 16
 			<?php
17
-				foreach ( $state['inputs'] as $ID => $input ) {
18
-					if ( $ID != 'STA_ID' && $ID != 'CNT_ISO' ) {
19
-						echo EEH_Form_Fields::generate_form_input( $input );
17
+				foreach ($state['inputs'] as $ID => $input) {
18
+					if ($ID != 'STA_ID' && $ID != 'CNT_ISO') {
19
+						echo EEH_Form_Fields::generate_form_input($input);
20 20
 					}
21 21
 				 }
22 22
 			 ?>
23 23
 				<td class="delete-state-td">
24
-					<a id="delete-state-<?php echo $STA_ID; ?>-lnk" class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" title="<?php esc_attr_e( 'Delete State #', 'event_espresso' ); ?><?php echo $STA_ID; ?>?" href="<?php echo $state['delete_state_url']; ?>"></a>
24
+					<a id="delete-state-<?php echo $STA_ID; ?>-lnk" class="dashicons dashicons-post-trash ee-icon-size-20 delete-state-lnk" rel="<?php echo $STA_ID; ?>" title="<?php esc_attr_e('Delete State #', 'event_espresso'); ?><?php echo $STA_ID; ?>?" href="<?php echo $state['delete_state_url']; ?>"></a>
25 25
 				</td>
26 26
 			</tr>
27 27
 		<?php
@@ -38,23 +38,23 @@  discard block
 block discarded – undo
38 38
 	<table class="form-table add-new-state-tbl">
39 39
 		<tbody>
40 40
 			<tr>
41
-				<td colspan="2"><h4><?php _e( 'Add New State/Province', 'event_espresso' );?></h4></td>
41
+				<td colspan="2"><h4><?php _e('Add New State/Province', 'event_espresso'); ?></h4></td>
42 42
 			</tr>
43 43
 
44 44
 			<tr>
45 45
 				<td class="general-settings-country-state-input-td">
46
-					<label for="STA_abbrev_XXX"><?php _e( 'Code', 'event_espresso' );?></label><br />
46
+					<label for="STA_abbrev_XXX"><?php _e('Code', 'event_espresso'); ?></label><br />
47 47
 					<input id="STA_abbrev-XXX" class="STA_abbrev mid-text " type="text" title="" value=""
48 48
 						   name="STA_abbrev_XXX">
49 49
 				</td>
50 50
 				<td class="general-settings-country-state-input-td">
51
-					<label for="STA_name_XXX"><?php _e( 'Name', 'event_espresso' );?></label><br/>
51
+					<label for="STA_name_XXX"><?php _e('Name', 'event_espresso'); ?></label><br/>
52 52
 					<input id="STA_name-XXX" class="STA_name regular-text " type="text" title="" value="" name="STA_name_XXX">
53 53
 				</td>
54 54
 			</tr>
55 55
 			<tr>
56 56
 				<td colspan="2">
57
-					<input  type="submit" id="add-new-state-btn" class="secondary-button button right" value="<?php _e( 'Add New State/Province', 'event_espresso' );?>" />
57
+					<input  type="submit" id="add-new-state-btn" class="secondary-button button right" value="<?php _e('Add New State/Province', 'event_espresso'); ?>" />
58 58
 
59 59
 				</td>
60 60
 			</tr>
Please login to merge, or discard this patch.
admin_pages/maintenance/templates/ee_system_stati_page.template.php 3 patches
Braces   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,8 +30,7 @@  discard block
 block discarded – undo
30 30
 				</tbody>
31 31
 			</table>
32 32
 			<?php
33
-		}
34
-		else {
33
+		} else {
35 34
 			?>
36 35
 			<ul>
37 36
 				<?php
@@ -41,7 +40,7 @@  discard block
 block discarded – undo
41 40
 			</ul>
42 41
 			<?php
43 42
 		}
44
-	}else {
43
+	} else {
45 44
 		//simple value
46 45
 		echo $data;
47 46
 	}
@@ -86,8 +85,7 @@  discard block
 block discarded – undo
86 85
 				}?>
87 86
 			</tbody>
88 87
 			<?php
89
-			}
90
-			else {
88
+			} else {
91 89
 				?>
92 90
 				<tbody>
93 91
 					<tr>
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 function ee_recurse_into_array_for_display($data) {
13 13
 	if (is_object($data) || $data instanceof __PHP_Incomplete_Class) {//is_object($incomplete_class) actually returns false, hence why we check for it
14
-        $data = json_decode(json_encode($data), true);
14
+		$data = json_decode(json_encode($data), true);
15 15
 	}
16 16
 	if (is_array($data)) {
17 17
 		if (EEH_Array::is_associative_array($data)) {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
 						?>
24 24
 						<tr>
25 25
 							<td>
26
-								<?php echo $data_key;?>
26
+								<?php echo $data_key; ?>
27 27
 							</td>
28 28
 							<td>
29
-								<?php ee_recurse_into_array_for_display($data_values);?>
29
+								<?php ee_recurse_into_array_for_display($data_values); ?>
30 30
 							</td>
31 31
 						</tr>
32 32
 						<?php
@@ -40,19 +40,19 @@  discard block
 block discarded – undo
40 40
 			<ul>
41 41
 				<?php
42 42
 				foreach ($data as $datum) {
43
-					echo "<li>";ee_recurse_into_array_for_display($datum);echo "</li>";
43
+					echo "<li>"; ee_recurse_into_array_for_display($datum); echo "</li>";
44 44
 				}?>
45 45
 			</ul>
46 46
 			<?php
47 47
 		}
48
-	}else {
48
+	} else {
49 49
 		//simple value
50 50
 		echo $data;
51 51
 	}
52 52
 }
53 53
 ?>
54 54
 <h1>
55
-	<?php _e("System Information", "event_espresso");?> <a href="<?php echo $download_system_status_url;?>" class="button-secondary"><?php esc_html_e( 'Download to File', 'event_espresso' );?></a>
55
+	<?php _e("System Information", "event_espresso"); ?> <a href="<?php echo $download_system_status_url; ?>" class="button-secondary"><?php esc_html_e('Download to File', 'event_espresso'); ?></a>
56 56
 </h1>
57 57
 <div class="padding">
58 58
 
Please login to merge, or discard this patch.
admin_pages/messages/Messages_Admin_Page_Init.core.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1 1
 <?php if (!defined('EVENT_ESPRESSO_VERSION') )
2 2
 	exit('NO direct script access allowed');
3 3
 /**
4
- * Event Espresso
5
- *
6
- * Event Registration and Management Plugin for Wordpress
7
- *
8
- * @package		Event Espresso
9
- * @author		Seth Shoultes
10
- * @copyright	(c)2009-2012 Event Espresso All Rights Reserved.
11
- * @license		@link http://eventespresso.com/support/terms-conditions/  ** see Plugin Licensing * *
12
- * @link		http://www.eventespresso.com
13
- * @version		4.0
14
- *
15
- * ------------------------------------------------------------------------
16
- *
17
- * Messages_Admin_Page_Init
18
- *
19
- * for setup of the message admin pages
20
- *
21
- * @package		Event Espresso
22
- * @subpackage	includes/core/message/EE_Message_Admin_Page_Init.core.php
23
- * @author		Darren Ethier
24
- *
25
- * ------------------------------------------------------------------------
26
- */
4
+	 * Event Espresso
5
+	 *
6
+	 * Event Registration and Management Plugin for Wordpress
7
+	 *
8
+	 * @package		Event Espresso
9
+	 * @author		Seth Shoultes
10
+	 * @copyright	(c)2009-2012 Event Espresso All Rights Reserved.
11
+	 * @license		@link http://eventespresso.com/support/terms-conditions/  ** see Plugin Licensing * *
12
+	 * @link		http://www.eventespresso.com
13
+	 * @version		4.0
14
+	 *
15
+	 * ------------------------------------------------------------------------
16
+	 *
17
+	 * Messages_Admin_Page_Init
18
+	 *
19
+	 * for setup of the message admin pages
20
+	 *
21
+	 * @package		Event Espresso
22
+	 * @subpackage	includes/core/message/EE_Message_Admin_Page_Init.core.php
23
+	 * @author		Darren Ethier
24
+	 *
25
+	 * ------------------------------------------------------------------------
26
+	 */
27 27
 class Messages_Admin_Page_Init extends EE_Admin_Page_Init  {
28 28
 	/**
29 29
 	 *constructor
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,6 @@
 block discarded – undo
1
-<?php if (!defined('EVENT_ESPRESSO_VERSION') )
1
+<?php if (!defined('EVENT_ESPRESSO_VERSION') ) {
2 2
 	exit('NO direct script access allowed');
3
+}
3 4
 /**
4 5
  * Event Espresso
5 6
  *
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php if (!defined('EVENT_ESPRESSO_VERSION') )
1
+<?php if ( ! defined('EVENT_ESPRESSO_VERSION'))
2 2
 	exit('NO direct script access allowed');
3 3
 /**
4 4
  * Event Espresso
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * ------------------------------------------------------------------------
26 26
  */
27
-class Messages_Admin_Page_Init extends EE_Admin_Page_Init  {
27
+class Messages_Admin_Page_Init extends EE_Admin_Page_Init {
28 28
 	/**
29 29
 	 *constructor
30 30
 	 *@Constructor
@@ -33,18 +33,18 @@  discard block
 block discarded – undo
33 33
 	 */
34 34
 	public function __construct() {
35 35
 
36
-		do_action( 'AHEE_log', __FILE__, __FUNCTION__, '' );
36
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
37 37
 
38
-		if ( ! defined( 'EE_MSG_PG_SLUG' ) ) {
38
+		if ( ! defined('EE_MSG_PG_SLUG')) {
39 39
 
40
-			define( 'EE_MSG_PG_SLUG', 'espresso_messages' );
41
-			define( 'EE_MSG_PG_NAME', ucwords( str_replace( '_', '', EE_MSG_PG_SLUG ) ) );
42
-			define( 'EE_MSG_ADMIN', EE_ADMIN_PAGES . 'messages' . DS );
43
-			define( 'EE_MSG_ADMIN_URL', admin_url( 'admin.php?page=' . EE_MSG_PG_SLUG ) );
44
-			define( 'EE_MSG_ASSETS_PATH', EE_MSG_ADMIN . 'assets' . DS );
45
-			define( 'EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'messages/assets/' );
46
-			define( 'EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN . 'templates' . DS );
47
-			define( 'EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'messages/templates/' );
40
+			define('EE_MSG_PG_SLUG', 'espresso_messages');
41
+			define('EE_MSG_PG_NAME', ucwords(str_replace('_', '', EE_MSG_PG_SLUG)));
42
+			define('EE_MSG_ADMIN', EE_ADMIN_PAGES.'messages'.DS);
43
+			define('EE_MSG_ADMIN_URL', admin_url('admin.php?page='.EE_MSG_PG_SLUG));
44
+			define('EE_MSG_ASSETS_PATH', EE_MSG_ADMIN.'assets'.DS);
45
+			define('EE_MSG_ASSETS_URL', EE_ADMIN_PAGES_URL.'messages/assets/');
46
+			define('EE_MSG_TEMPLATE_PATH', EE_MSG_ADMIN.'templates'.DS);
47
+			define('EE_MSG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'messages/templates/');
48 48
 		}
49 49
 
50 50
 		parent::__construct();
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 
62 62
 	protected function _set_menu_map() {
63
-		$this->_menu_map = new EE_Admin_Page_Sub_Menu( array(
63
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(array(
64 64
 			'menu_group' => 'management',
65 65
 			'menu_order' => 10,
66 66
 			'show_on_menu' => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
Please login to merge, or discard this patch.
admin_pages/messages/espresso_events_Messages_Hooks.class.php 2 patches
Spacing   +2 added lines, -2 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
 /**
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 class espresso_events_Messages_Hooks extends EE_Admin_Hooks {
31 31
 
32 32
 
33
-	public function __construct( EE_Admin_Page $admin_page ) {
33
+	public function __construct(EE_Admin_Page $admin_page) {
34 34
 		parent::__construct($admin_page);
35 35
 	}
36 36
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if (!defined('EVENT_ESPRESSO_VERSION') )
2
+if (!defined('EVENT_ESPRESSO_VERSION') ) {
3 3
 	exit('NO direct script access allowed');
4
+}
4 5
 
5 6
 /**
6 7
  * Event Espresso
Please login to merge, or discard this patch.