Completed
Branch dev (18e544)
by
unknown
02:53 queued 17s
created
core/domain/services/admin/ajax/WordpressHeartbeat.php 2 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -17,52 +17,52 @@
 block discarded – undo
17 17
 class WordpressHeartbeat
18 18
 {
19 19
 
20
-    const RESPONSE_KEY_THANK_YOU_PAGE = 'espresso_thank_you_page';
20
+	const RESPONSE_KEY_THANK_YOU_PAGE = 'espresso_thank_you_page';
21 21
 
22
-    /**
23
-     * @var LoaderInterface $loader
24
-     */
25
-    protected $loader;
22
+	/**
23
+	 * @var LoaderInterface $loader
24
+	 */
25
+	protected $loader;
26 26
 
27
-    /**
28
-     * @var RequestInterface $request
29
-     */
30
-    protected $request;
27
+	/**
28
+	 * @var RequestInterface $request
29
+	 */
30
+	protected $request;
31 31
 
32 32
 
33
-    /**
34
-     * WordpressHeartbeat constructor.
35
-     *
36
-     * @param LoaderInterface  $loader
37
-     * @param RequestInterface $request
38
-     */
39
-    public function __construct(
40
-        LoaderInterface $loader,
41
-        RequestInterface $request
42
-    ) {
43
-        $this->loader = $loader;
44
-        $this->request = $request;
45
-        do_action('AHEE__EventEspresso_core_domain_services_admin_ajax_WordpressHeartbeat__constructor', $this);
46
-        add_action('AHEE__EE_System__core_loaded_and_ready', array($this, 'resolveRoutes'));
47
-    }
33
+	/**
34
+	 * WordpressHeartbeat constructor.
35
+	 *
36
+	 * @param LoaderInterface  $loader
37
+	 * @param RequestInterface $request
38
+	 */
39
+	public function __construct(
40
+		LoaderInterface $loader,
41
+		RequestInterface $request
42
+	) {
43
+		$this->loader = $loader;
44
+		$this->request = $request;
45
+		do_action('AHEE__EventEspresso_core_domain_services_admin_ajax_WordpressHeartbeat__constructor', $this);
46
+		add_action('AHEE__EE_System__core_loaded_and_ready', array($this, 'resolveRoutes'));
47
+	}
48 48
 
49 49
 
50
-    /**
51
-     * @since 4.9.76.p
52
-     * @throws InvalidClassException
53
-     */
54
-    public function resolveRoutes()
55
-    {
56
-        $screenID = $this->request->getRequestParam('screen_id');
57
-        $heartbeat_data = $this->request->getRequestParam('data', []);
58
-        if ($screenID === 'espresso_events') {
59
-            $this->loader->getShared(
60
-                'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat'
61
-            );
62
-        } elseif ($screenID === 'front' && ! empty($heartbeat_data[ self::RESPONSE_KEY_THANK_YOU_PAGE ])) {
63
-            $this->loader->getShared(
64
-                'EventEspresso\core\domain\services\admin\ajax\ThankYouPageIpnMonitor'
65
-            );
66
-        }
67
-    }
50
+	/**
51
+	 * @since 4.9.76.p
52
+	 * @throws InvalidClassException
53
+	 */
54
+	public function resolveRoutes()
55
+	{
56
+		$screenID = $this->request->getRequestParam('screen_id');
57
+		$heartbeat_data = $this->request->getRequestParam('data', []);
58
+		if ($screenID === 'espresso_events') {
59
+			$this->loader->getShared(
60
+				'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat'
61
+			);
62
+		} elseif ($screenID === 'front' && ! empty($heartbeat_data[ self::RESPONSE_KEY_THANK_YOU_PAGE ])) {
63
+			$this->loader->getShared(
64
+				'EventEspresso\core\domain\services\admin\ajax\ThankYouPageIpnMonitor'
65
+			);
66
+		}
67
+	}
68 68
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             $this->loader->getShared(
60 60
                 'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat'
61 61
             );
62
-        } elseif ($screenID === 'front' && ! empty($heartbeat_data[ self::RESPONSE_KEY_THANK_YOU_PAGE ])) {
62
+        } elseif ($screenID === 'front' && ! empty($heartbeat_data[self::RESPONSE_KEY_THANK_YOU_PAGE])) {
63 63
             $this->loader->getShared(
64 64
                 'EventEspresso\core\domain\services\admin\ajax\ThankYouPageIpnMonitor'
65 65
             );
Please login to merge, or discard this patch.
core/third-party-compatibility.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -7,24 +7,24 @@
 block discarded – undo
7 7
  * ACF compatibility
8 8
  */
9 9
 add_action(
10
-    'plugins_loaded',
11
-    function () {
12
-        if (function_exists('acf_include')) {
13
-            add_filter(
14
-                'acf/get_post_types',
15
-                function ($post_types, $args) {
16
-                    if (! empty($args['show_ui'])) {
17
-                        $ee_post_types = get_post_types(array('show_ee_ui' => 1));
18
-                        $ee_post_types = array_keys($ee_post_types);
19
-                        $post_types = array_merge($post_types, $ee_post_types);
20
-                        $post_types = array_unique($post_types);
21
-                    }
22
-                    return $post_types;
23
-                },
24
-                10,
25
-                2
26
-            );
27
-        }
28
-    },
29
-    100
10
+	'plugins_loaded',
11
+	function () {
12
+		if (function_exists('acf_include')) {
13
+			add_filter(
14
+				'acf/get_post_types',
15
+				function ($post_types, $args) {
16
+					if (! empty($args['show_ui'])) {
17
+						$ee_post_types = get_post_types(array('show_ee_ui' => 1));
18
+						$ee_post_types = array_keys($ee_post_types);
19
+						$post_types = array_merge($post_types, $ee_post_types);
20
+						$post_types = array_unique($post_types);
21
+					}
22
+					return $post_types;
23
+				},
24
+				10,
25
+				2
26
+			);
27
+		}
28
+	},
29
+	100
30 30
 );
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
  */
9 9
 add_action(
10 10
     'plugins_loaded',
11
-    function () {
11
+    function() {
12 12
         if (function_exists('acf_include')) {
13 13
             add_filter(
14 14
                 'acf/get_post_types',
15
-                function ($post_types, $args) {
16
-                    if (! empty($args['show_ui'])) {
15
+                function($post_types, $args) {
16
+                    if ( ! empty($args['show_ui'])) {
17 17
                         $ee_post_types = get_post_types(array('show_ee_ui' => 1));
18 18
                         $ee_post_types = array_keys($ee_post_types);
19 19
                         $post_types = array_merge($post_types, $ee_post_types);
Please login to merge, or discard this patch.
ticket_selector_caff/templates/ticket_selector_price_details.template.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -7,39 +7,39 @@  discard block
 block discarded – undo
7 7
 if ($display_ticket_price) { ?>
8 8
     <section class="tckt-slctr-tkt-price-sctn">
9 9
         <h5><?php
10
-            echo apply_filters(
11
-                'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading',
12
-                esc_html__('Price', 'event_espresso')
13
-            ); ?></h5>
10
+			echo apply_filters(
11
+				'FHEE__ticket_selector_chart_template__ticket_details_price_breakdown_heading',
12
+				esc_html__('Price', 'event_espresso')
13
+			); ?></h5>
14 14
         <div class="tckt-slctr-tkt-details-tbl-wrap-dv">
15 15
             <table class="tckt-slctr-tkt-details-tbl">
16 16
                 <thead>
17 17
                 <tr>
18 18
                     <th class="ee-third-width"><span class="small-text">
19 19
                             <?php
20
-                            esc_html_e(
21
-                                'Name',
22
-                                'event_espresso'
23
-                            ); ?></span>
20
+							esc_html_e(
21
+								'Name',
22
+								'event_espresso'
23
+							); ?></span>
24 24
                     </th>
25 25
                     <th class="jst-cntr"><span class="small-text">
26 26
                             <?php
27
-                            esc_html_e(
28
-                                'Description',
29
-                                'event_espresso'
30
-                            ); ?></span>
27
+							esc_html_e(
28
+								'Description',
29
+								'event_espresso'
30
+							); ?></span>
31 31
                     </th>
32 32
                     <th class="ee-fourth-width jst-rght"><span class="small-text">
33 33
                             <?php
34
-                            esc_html_e(
35
-                                'Amount',
36
-                                'event_espresso'
37
-                            ); ?></span></th>
34
+							esc_html_e(
35
+								'Amount',
36
+								'event_espresso'
37
+							); ?></span></th>
38 38
                 </tr>
39 39
                 </thead>
40 40
                 <tbody>
41 41
                 <?php
42
-                if ($ticket->base_price() instanceof EE_Price) { ?>
42
+				if ($ticket->base_price() instanceof EE_Price) { ?>
43 43
                     <tr>
44 44
                         <td data-th="<?php esc_html_e('Name', 'event_espresso'); ?>" class="small-text" colspan="2">
45 45
                             <b><?php echo $ticket->base_price()->name(); ?></b></td>
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
                             class="jst-rght small-text"><?php echo $ticket->base_price()->pretty_price(); ?></td>
48 48
                     </tr>
49 49
                     <?php
50
-                    $running_total = $ticket->base_price()->amount();
51
-                } else {
52
-                    $running_total = 0;
53
-                }
54
-                // now add price modifiers
55
-                foreach ($ticket->price_modifiers() as $price_mod) { ?>
50
+					$running_total = $ticket->base_price()->amount();
51
+				} else {
52
+					$running_total = 0;
53
+				}
54
+				// now add price modifiers
55
+				foreach ($ticket->price_modifiers() as $price_mod) { ?>
56 56
                     <tr>
57 57
                         <td data-th="<?php esc_html_e('Name', 'event_espresso'); ?>"
58 58
                             class="jst-rght small-text"><?php echo $price_mod->name(); ?></td>
@@ -62,23 +62,23 @@  discard block
 block discarded – undo
62 62
                                 %
63 63
                             </td>
64 64
                             <?php
65
-                            $new_sub_total = $running_total * ($price_mod->amount() / 100);
66
-                            $new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
67
-                            ?>
65
+							$new_sub_total = $running_total * ($price_mod->amount() / 100);
66
+							$new_sub_total = $price_mod->is_discount() ? $new_sub_total * -1 : $new_sub_total;
67
+							?>
68 68
                         <?php } else { ?>
69 69
                             <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1
70
-                                : $price_mod->amount(); ?>
70
+								: $price_mod->amount(); ?>
71 71
                             <td data-th="<?php esc_html_e('Description', 'event_espresso'); ?>"
72 72
                                 class="small-text"><?php echo $price_mod->desc(); ?></td>
73 73
                             <?php $new_sub_total = $price_mod->is_discount() ? $price_mod->amount() * -1
74
-                                : $price_mod->amount(); ?>
74
+								: $price_mod->amount(); ?>
75 75
                         <?php } ?>
76 76
                         <td data-th="<?php esc_html_e('Amount', 'event_espresso'); ?>"
77 77
                             class="jst-rght small-text">
78 78
                             <?php
79
-                            echo EEH_Template::format_currency(
80
-                                $new_sub_total
81
-                            ); ?></td>
79
+							echo EEH_Template::format_currency(
80
+								$new_sub_total
81
+							); ?></td>
82 82
                         <?php $running_total += $new_sub_total; ?>
83 83
                     </tr>
84 84
                 <?php } ?>
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
                     <tr>
88 88
                         <td colspan="2" class="jst-rght small-text sbttl"><b>
89 89
                                 <?php
90
-                                esc_html_e(
91
-                                    'subtotal',
92
-                                    'event_espresso'
93
-                                ); ?></b></td>
90
+								esc_html_e(
91
+									'subtotal',
92
+									'event_espresso'
93
+								); ?></b></td>
94 94
                         <td data-th="<?php esc_html_e('subtotal', 'event_espresso'); ?>" class="jst-rght small-text">
95 95
                             <b><?php echo EEH_Template::format_currency($running_total); ?></b></td>
96 96
                     </tr>
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
                             <td data-th="<?php esc_html_e('Amount', 'event_espresso'); ?>"
107 107
                                 class="jst-rght small-text">
108 108
                                 <?php
109
-                                echo EEH_Template::format_currency(
110
-                                    $tax_amount
111
-                                ); ?></td>
109
+								echo EEH_Template::format_currency(
110
+									$tax_amount
111
+								); ?></td>
112 112
                             <?php $running_total += $tax_amount; ?>
113 113
                         </tr>
114 114
                     <?php } ?>
@@ -116,15 +116,15 @@  discard block
 block discarded – undo
116 116
                 <tr>
117 117
                     <td colspan="2" class="jst-rght small-text ttl-lbl-td">
118 118
                         <b><?php
119
-                            echo apply_filters(
120
-                                'FHEE__ticket_selector_chart_template__ticket_details_total_price',
121
-                                esc_html__('Total', 'event_espresso')
122
-                            ); ?></b></td>
119
+							echo apply_filters(
120
+								'FHEE__ticket_selector_chart_template__ticket_details_total_price',
121
+								esc_html__('Total', 'event_espresso')
122
+							); ?></b></td>
123 123
                     <td data-th="<?php
124
-                                    echo apply_filters(
125
-                                        'FHEE__ticket_selector_chart_template__ticket_details_total_price',
126
-                                        esc_html__('Total', 'event_espresso')
127
-                                    ); ?>" class="jst-rght small-text">
124
+									echo apply_filters(
125
+										'FHEE__ticket_selector_chart_template__ticket_details_total_price',
126
+										esc_html__('Total', 'event_espresso')
127
+									); ?>" class="jst-rght small-text">
128 128
                         <b><?php echo EEH_Template::format_currency($running_total); ?></b></td>
129 129
                 </tr>
130 130
                 </tbody>
Please login to merge, or discard this patch.
core/libraries/form_sections/inputs/EE_State_Select_Input.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         if (isset($input_settings['value_field_name'])) {
38 38
             $this->valueFieldName = $input_settings['value_field_name'];
39
-            if (! EEM_State::instance()->has_field((string) $this->valueFieldName())) {
39
+            if ( ! EEM_State::instance()->has_field((string) $this->valueFieldName())) {
40 40
                 throw new InvalidArgumentException(
41 41
                     sprintf(
42 42
                         esc_html__('An invalid state field "%1$s" was specified for the state input\'s option values.', 'event_espresso'),
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $this
54 54
         );
55 55
         $input_settings['html_class'] = isset($input_settings['html_class'])
56
-            ? $input_settings['html_class'] . ' ee-state-select-js'
56
+            ? $input_settings['html_class'].' ee-state-select-js'
57 57
             : 'ee-state-select-js';
58 58
         parent::__construct($state_options, $input_settings);
59 59
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     public function get_state_answer_options($state_options = null)
84 84
     {
85 85
         // if passed something that is NOT an array
86
-        if (! is_array($state_options) || empty($state_options)) {
86
+        if ( ! is_array($state_options) || empty($state_options)) {
87 87
             // get possibly cached list of states
88 88
             $states = EEM_State::instance()->get_all_active_states();
89 89
         }
@@ -91,12 +91,12 @@  discard block
 block discarded – undo
91 91
             $states = $state_options;
92 92
             $state_options = array();
93 93
         }
94
-        if (! empty($states)) {
94
+        if ( ! empty($states)) {
95 95
             // set the default
96 96
             $state_options[''][''] = '';
97 97
             foreach ($states as $state) {
98 98
                 if ($state instanceof EE_State) {
99
-                    $state_options[ $state->country()->name() ][ $state->get($this->valueFieldName()) ] = $state->name();
99
+                    $state_options[$state->country()->name()][$state->get($this->valueFieldName())] = $state->name();
100 100
                 }
101 101
             }
102 102
         }
Please login to merge, or discard this patch.
Indentation   +86 added lines, -86 removed lines patch added patch discarded remove patch
@@ -12,94 +12,94 @@
 block discarded – undo
12 12
  */
13 13
 class EE_State_Select_Input extends EE_Select_Input
14 14
 {
15
-    /**
16
-     * @var string the name of the EE_State field to use for option values in the HTML form input.
17
-     */
18
-    protected $valueFieldName;
15
+	/**
16
+	 * @var string the name of the EE_State field to use for option values in the HTML form input.
17
+	 */
18
+	protected $valueFieldName;
19 19
 
20
-    /**
21
-     * @param EE_State[]|array|null $state_options. If a flat array of string is provided,
22
-     * $input_settings['value_field_name'] is ignored. If an array of states is passed, that field will be used for
23
-     * the keys (which will become the option values). If null or empty is passed, all active states will be used,
24
-     * and $input_settings['value_field_name'] will again be used.     *
25
-     * @param array $input_settings same as parent, but also {
26
-     *   @type string $value_field_name the name of the field to use
27
-     *   for the HTML option values, ie, `STA_ID`, `STA_abbrev`, or `STA_name`.
28
-     * }
29
-     * @throws EE_Error
30
-     * @throws InvalidArgumentException
31
-     * @throws InvalidDataTypeException
32
-     * @throws InvalidInterfaceException
33
-     * @throws ReflectionException
34
-     */
35
-    public function __construct($state_options, $input_settings = array())
36
-    {
37
-        if (isset($input_settings['value_field_name'])) {
38
-            $this->valueFieldName = $input_settings['value_field_name'];
39
-            if (! EEM_State::instance()->has_field((string) $this->valueFieldName())) {
40
-                throw new InvalidArgumentException(
41
-                    sprintf(
42
-                        esc_html__('An invalid state field "%1$s" was specified for the state input\'s option values.', 'event_espresso'),
43
-                        $this->valueFieldName()
44
-                    )
45
-                );
46
-            }
47
-        } else {
48
-            $this->valueFieldName = 'STA_ID';
49
-        }
50
-        $state_options = apply_filters(
51
-            'FHEE__EE_State_Select_Input____construct__state_options',
52
-            $this->get_state_answer_options($state_options),
53
-            $this
54
-        );
55
-        $input_settings['html_class'] = isset($input_settings['html_class'])
56
-            ? $input_settings['html_class'] . ' ee-state-select-js'
57
-            : 'ee-state-select-js';
58
-        parent::__construct($state_options, $input_settings);
59
-    }
20
+	/**
21
+	 * @param EE_State[]|array|null $state_options. If a flat array of string is provided,
22
+	 * $input_settings['value_field_name'] is ignored. If an array of states is passed, that field will be used for
23
+	 * the keys (which will become the option values). If null or empty is passed, all active states will be used,
24
+	 * and $input_settings['value_field_name'] will again be used.     *
25
+	 * @param array $input_settings same as parent, but also {
26
+	 *   @type string $value_field_name the name of the field to use
27
+	 *   for the HTML option values, ie, `STA_ID`, `STA_abbrev`, or `STA_name`.
28
+	 * }
29
+	 * @throws EE_Error
30
+	 * @throws InvalidArgumentException
31
+	 * @throws InvalidDataTypeException
32
+	 * @throws InvalidInterfaceException
33
+	 * @throws ReflectionException
34
+	 */
35
+	public function __construct($state_options, $input_settings = array())
36
+	{
37
+		if (isset($input_settings['value_field_name'])) {
38
+			$this->valueFieldName = $input_settings['value_field_name'];
39
+			if (! EEM_State::instance()->has_field((string) $this->valueFieldName())) {
40
+				throw new InvalidArgumentException(
41
+					sprintf(
42
+						esc_html__('An invalid state field "%1$s" was specified for the state input\'s option values.', 'event_espresso'),
43
+						$this->valueFieldName()
44
+					)
45
+				);
46
+			}
47
+		} else {
48
+			$this->valueFieldName = 'STA_ID';
49
+		}
50
+		$state_options = apply_filters(
51
+			'FHEE__EE_State_Select_Input____construct__state_options',
52
+			$this->get_state_answer_options($state_options),
53
+			$this
54
+		);
55
+		$input_settings['html_class'] = isset($input_settings['html_class'])
56
+			? $input_settings['html_class'] . ' ee-state-select-js'
57
+			: 'ee-state-select-js';
58
+		parent::__construct($state_options, $input_settings);
59
+	}
60 60
 
61
-    /**
62
-     * Returns the name of the state field used for the HTML option values.
63
-     * @since 4.10.0.p
64
-     * @return string
65
-     */
66
-    public function valueFieldName()
67
-    {
68
-        return $this->valueFieldName;
69
-    }
61
+	/**
62
+	 * Returns the name of the state field used for the HTML option values.
63
+	 * @since 4.10.0.p
64
+	 * @return string
65
+	 */
66
+	public function valueFieldName()
67
+	{
68
+		return $this->valueFieldName;
69
+	}
70 70
 
71 71
 
72
-    /**
73
-     * get_state_answer_options
74
-     *
75
-     * @param array $state_options
76
-     * @return array
77
-     * @throws EE_Error
78
-     * @throws InvalidArgumentException
79
-     * @throws ReflectionException
80
-     * @throws InvalidDataTypeException
81
-     * @throws InvalidInterfaceException
82
-     */
83
-    public function get_state_answer_options($state_options = null)
84
-    {
85
-        // if passed something that is NOT an array
86
-        if (! is_array($state_options) || empty($state_options)) {
87
-            // get possibly cached list of states
88
-            $states = EEM_State::instance()->get_all_active_states();
89
-        }
90
-        if (is_array($state_options) && reset($state_options) instanceof EE_State) {
91
-            $states = $state_options;
92
-            $state_options = array();
93
-        }
94
-        if (! empty($states)) {
95
-            // set the default
96
-            $state_options[''][''] = '';
97
-            foreach ($states as $state) {
98
-                if ($state instanceof EE_State) {
99
-                    $state_options[ $state->country()->name() ][ $state->get($this->valueFieldName()) ] = $state->name();
100
-                }
101
-            }
102
-        }
103
-        return $state_options;
104
-    }
72
+	/**
73
+	 * get_state_answer_options
74
+	 *
75
+	 * @param array $state_options
76
+	 * @return array
77
+	 * @throws EE_Error
78
+	 * @throws InvalidArgumentException
79
+	 * @throws ReflectionException
80
+	 * @throws InvalidDataTypeException
81
+	 * @throws InvalidInterfaceException
82
+	 */
83
+	public function get_state_answer_options($state_options = null)
84
+	{
85
+		// if passed something that is NOT an array
86
+		if (! is_array($state_options) || empty($state_options)) {
87
+			// get possibly cached list of states
88
+			$states = EEM_State::instance()->get_all_active_states();
89
+		}
90
+		if (is_array($state_options) && reset($state_options) instanceof EE_State) {
91
+			$states = $state_options;
92
+			$state_options = array();
93
+		}
94
+		if (! empty($states)) {
95
+			// set the default
96
+			$state_options[''][''] = '';
97
+			foreach ($states as $state) {
98
+				if ($state instanceof EE_State) {
99
+					$state_options[ $state->country()->name() ][ $state->get($this->valueFieldName()) ] = $state->name();
100
+				}
101
+			}
102
+		}
103
+		return $state_options;
104
+	}
105 105
 }
Please login to merge, or discard this patch.
admin_pages/transactions/Transactions_Admin_Page_Init.core.php 2 patches
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -13,58 +13,58 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    /**
17
-     * @Constructor
18
-     * @access public
19
-     * @return Transactions_Admin_Page_Init
20
-     */
21
-    public function __construct()
22
-    {
16
+	/**
17
+	 * @Constructor
18
+	 * @access public
19
+	 * @return Transactions_Admin_Page_Init
20
+	 */
21
+	public function __construct()
22
+	{
23 23
 
24
-        do_action('AHEE_log', __FILE__, __FUNCTION__, '');
25
-        if (! defined('TXN_PG_SLUG')) {
26
-            define('TXN_PG_SLUG', 'espresso_transactions');
27
-            define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG)));
28
-            define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions/');
29
-            define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG));
30
-            define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets/');
31
-            define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/assets/'));
32
-            define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates/');
33
-            define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/templates/'));
34
-        }
35
-        parent::__construct();
36
-    }
24
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
25
+		if (! defined('TXN_PG_SLUG')) {
26
+			define('TXN_PG_SLUG', 'espresso_transactions');
27
+			define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG)));
28
+			define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions/');
29
+			define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG));
30
+			define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets/');
31
+			define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/assets/'));
32
+			define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates/');
33
+			define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/templates/'));
34
+		}
35
+		parent::__construct();
36
+	}
37 37
 
38 38
 
39
-    /**
40
-     *    _set_init_properties
41
-     *
42
-     * @return void
43
-     */
44
-    protected function _set_init_properties()
45
-    {
46
-        $this->label = __('Transactions Overview', 'event_espresso');
47
-    }
39
+	/**
40
+	 *    _set_init_properties
41
+	 *
42
+	 * @return void
43
+	 */
44
+	protected function _set_init_properties()
45
+	{
46
+		$this->label = __('Transactions Overview', 'event_espresso');
47
+	}
48 48
 
49 49
 
50
-    /**
51
-     *    _set_menu_map
52
-     *
53
-     * @return void
54
-     */
55
-    protected function _set_menu_map()
56
-    {
57
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
58
-            array(
59
-                'menu_group'      => 'main',
60
-                'menu_order'      => 50,
61
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
62
-                'parent_slug'     => 'espresso_events',
63
-                'menu_slug'       => TXN_PG_SLUG,
64
-                'menu_label'      => __('Transactions', 'event_espresso'),
65
-                'capability'      => 'ee_read_transactions',
66
-                'admin_init_page' => $this,
67
-            )
68
-        );
69
-    }
50
+	/**
51
+	 *    _set_menu_map
52
+	 *
53
+	 * @return void
54
+	 */
55
+	protected function _set_menu_map()
56
+	{
57
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
58
+			array(
59
+				'menu_group'      => 'main',
60
+				'menu_order'      => 50,
61
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
62
+				'parent_slug'     => 'espresso_events',
63
+				'menu_slug'       => TXN_PG_SLUG,
64
+				'menu_label'      => __('Transactions', 'event_espresso'),
65
+				'capability'      => 'ee_read_transactions',
66
+				'admin_init_page' => $this,
67
+			)
68
+		);
69
+	}
70 70
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -22,15 +22,15 @@
 block discarded – undo
22 22
     {
23 23
 
24 24
         do_action('AHEE_log', __FILE__, __FUNCTION__, '');
25
-        if (! defined('TXN_PG_SLUG')) {
25
+        if ( ! defined('TXN_PG_SLUG')) {
26 26
             define('TXN_PG_SLUG', 'espresso_transactions');
27 27
             define('TXN_PG_NAME', ucwords(str_replace('_', '', TXN_PG_SLUG)));
28
-            define('TXN_ADMIN', EE_ADMIN_PAGES . 'transactions/');
29
-            define('TXN_ADMIN_URL', admin_url('admin.php?page=' . TXN_PG_SLUG));
30
-            define('TXN_ASSETS_PATH', TXN_ADMIN . 'assets/');
31
-            define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/assets/'));
32
-            define('TXN_TEMPLATE_PATH', TXN_ADMIN . 'templates/');
33
-            define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL . 'transactions/templates/'));
28
+            define('TXN_ADMIN', EE_ADMIN_PAGES.'transactions/');
29
+            define('TXN_ADMIN_URL', admin_url('admin.php?page='.TXN_PG_SLUG));
30
+            define('TXN_ASSETS_PATH', TXN_ADMIN.'assets/');
31
+            define('TXN_ASSETS_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL.'transactions/assets/'));
32
+            define('TXN_TEMPLATE_PATH', TXN_ADMIN.'templates/');
33
+            define('TXN_TEMPLATE_URL', str_replace('\\', '/', EE_ADMIN_PAGES_URL.'transactions/templates/'));
34 34
         }
35 35
         parent::__construct();
36 36
     }
Please login to merge, or discard this patch.
admin_pages/general_settings/General_Settings_Admin_Page_Init.core.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -18,37 +18,37 @@
 block discarded – undo
18 18
 class General_Settings_Admin_Page_Init extends EE_Admin_Page_Init
19 19
 {
20 20
 
21
-    public function __construct()
22
-    {
23
-        // define some constants
24
-        define('GEN_SET_PG_SLUG', 'espresso_general_settings');
25
-        define('GEN_SET_LABEL', __('General Settings', 'event_espresso'));
26
-        define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings/');
27
-        define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG));
28
-        define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates/');
29
-        define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/');
21
+	public function __construct()
22
+	{
23
+		// define some constants
24
+		define('GEN_SET_PG_SLUG', 'espresso_general_settings');
25
+		define('GEN_SET_LABEL', __('General Settings', 'event_espresso'));
26
+		define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings/');
27
+		define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG));
28
+		define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates/');
29
+		define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/');
30 30
 
31
-        parent::__construct();
32
-    }
31
+		parent::__construct();
32
+	}
33 33
 
34
-    protected function _set_init_properties()
35
-    {
36
-        $this->label = GEN_SET_LABEL;
37
-    }
34
+	protected function _set_init_properties()
35
+	{
36
+		$this->label = GEN_SET_LABEL;
37
+	}
38 38
 
39
-    protected function _set_menu_map()
40
-    {
41
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
42
-            array(
43
-                'menu_group'      => 'settings',
44
-                'menu_order'      => 20,
45
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
46
-                'parent_slug'     => 'espresso_events',
47
-                'menu_slug'       => GEN_SET_PG_SLUG,
48
-                'menu_label'      => GEN_SET_LABEL,
49
-                'capability'      => 'manage_options',
50
-                'admin_init_page' => $this,
51
-            )
52
-        );
53
-    }
39
+	protected function _set_menu_map()
40
+	{
41
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
42
+			array(
43
+				'menu_group'      => 'settings',
44
+				'menu_order'      => 20,
45
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
46
+				'parent_slug'     => 'espresso_events',
47
+				'menu_slug'       => GEN_SET_PG_SLUG,
48
+				'menu_label'      => GEN_SET_LABEL,
49
+				'capability'      => 'manage_options',
50
+				'admin_init_page' => $this,
51
+			)
52
+		);
53
+	}
54 54
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
         // define some constants
24 24
         define('GEN_SET_PG_SLUG', 'espresso_general_settings');
25 25
         define('GEN_SET_LABEL', __('General Settings', 'event_espresso'));
26
-        define('GEN_SET_ADMIN', EE_ADMIN_PAGES . 'general_settings/');
27
-        define('GEN_SET_ADMIN_URL', admin_url('admin.php?page=' . GEN_SET_PG_SLUG));
28
-        define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN . 'templates/');
29
-        define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL . 'general_settings/assets/');
26
+        define('GEN_SET_ADMIN', EE_ADMIN_PAGES.'general_settings/');
27
+        define('GEN_SET_ADMIN_URL', admin_url('admin.php?page='.GEN_SET_PG_SLUG));
28
+        define('GEN_SET_TEMPLATE_PATH', GEN_SET_ADMIN.'templates/');
29
+        define('GEN_SET_ASSETS_URL', EE_ADMIN_PAGES_URL.'general_settings/assets/');
30 30
 
31 31
         parent::__construct();
32 32
     }
Please login to merge, or discard this patch.
admin_pages/maintenance/Maintenance_Admin_Page_Init.core.php 2 patches
Indentation   +87 added lines, -87 removed lines patch added patch discarded remove patch
@@ -24,102 +24,102 @@
 block discarded – undo
24 24
 {
25 25
 
26 26
 
27
-    public function __construct()
28
-    {
29
-        // define some page related constants
30
-        define('EE_MAINTENANCE_LABEL', __('Maintenance', 'event_espresso'));
31
-        define('EE_MAINTENANCE_PG_SLUG', 'espresso_maintenance_settings');
32
-        define('EE_MAINTENANCE_ADMIN_URL', admin_url('admin.php?page=' . EE_MAINTENANCE_PG_SLUG));
33
-        define('EE_MAINTENANCE_ADMIN', EE_ADMIN_PAGES . 'maintenance/');
34
-        define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN . 'templates/');
35
-        define('EE_MAINTENANCE_ASSETS_URL', EE_ADMIN_PAGES_URL . 'maintenance/assets/');
36
-        // check that if we're in maintenance mode that we tell the admin that
37
-        add_action('admin_notices', array($this, 'check_maintenance_mode'));
38
-        parent::__construct();
39
-    }
27
+	public function __construct()
28
+	{
29
+		// define some page related constants
30
+		define('EE_MAINTENANCE_LABEL', __('Maintenance', 'event_espresso'));
31
+		define('EE_MAINTENANCE_PG_SLUG', 'espresso_maintenance_settings');
32
+		define('EE_MAINTENANCE_ADMIN_URL', admin_url('admin.php?page=' . EE_MAINTENANCE_PG_SLUG));
33
+		define('EE_MAINTENANCE_ADMIN', EE_ADMIN_PAGES . 'maintenance/');
34
+		define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN . 'templates/');
35
+		define('EE_MAINTENANCE_ASSETS_URL', EE_ADMIN_PAGES_URL . 'maintenance/assets/');
36
+		// check that if we're in maintenance mode that we tell the admin that
37
+		add_action('admin_notices', array($this, 'check_maintenance_mode'));
38
+		parent::__construct();
39
+	}
40 40
 
41 41
 
42
-    protected function _set_init_properties()
43
-    {
44
-        $this->label = EE_MAINTENANCE_LABEL;
45
-    }
42
+	protected function _set_init_properties()
43
+	{
44
+		$this->label = EE_MAINTENANCE_LABEL;
45
+	}
46 46
 
47 47
 
48
-    protected function _set_menu_map()
49
-    {
50
-        $menu_map = $this->_menu_map();
51
-        $this->_menu_map = EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance
52
-            ? new EE_Admin_Page_Main_Menu($menu_map) : new EE_Admin_Page_Sub_Menu($menu_map);
53
-    }
48
+	protected function _set_menu_map()
49
+	{
50
+		$menu_map = $this->_menu_map();
51
+		$this->_menu_map = EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance
52
+			? new EE_Admin_Page_Main_Menu($menu_map) : new EE_Admin_Page_Sub_Menu($menu_map);
53
+	}
54 54
 
55 55
 
56
-    protected function _menu_map()
57
-    {
58
-        $map = array(
59
-            'menu_group'              => 'extras',
60
-            'menu_order'              => 30,
61
-            'show_on_menu'            => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
62
-            'parent_slug'             => 'espresso_events',
63
-            'menu_slug'               => EE_MAINTENANCE_PG_SLUG,
64
-            'menu_label'              => EE_MAINTENANCE_LABEL,
65
-            'capability'              => 'manage_options',
66
-            'maintenance_mode_parent' => EE_MAINTENANCE_PG_SLUG,
67
-            'admin_init_page'         => $this,
68
-        );
69
-        if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
70
-            $map['menu_group'] = 'main';
71
-            $map['subtitle'] = EE_MAINTENANCE_LABEL;
72
-            $map['menu_label'] = __('Event Espresso', 'event_espresso');
73
-        }
74
-        return $map;
75
-    }
56
+	protected function _menu_map()
57
+	{
58
+		$map = array(
59
+			'menu_group'              => 'extras',
60
+			'menu_order'              => 30,
61
+			'show_on_menu'            => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
62
+			'parent_slug'             => 'espresso_events',
63
+			'menu_slug'               => EE_MAINTENANCE_PG_SLUG,
64
+			'menu_label'              => EE_MAINTENANCE_LABEL,
65
+			'capability'              => 'manage_options',
66
+			'maintenance_mode_parent' => EE_MAINTENANCE_PG_SLUG,
67
+			'admin_init_page'         => $this,
68
+		);
69
+		if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
70
+			$map['menu_group'] = 'main';
71
+			$map['subtitle'] = EE_MAINTENANCE_LABEL;
72
+			$map['menu_label'] = __('Event Espresso', 'event_espresso');
73
+		}
74
+		return $map;
75
+	}
76 76
 
77 77
 
78
-    /**
79
-     * Checks if we're in maintenance mode, and if so we notify the admin adn tell them how to take the site OUT of
80
-     * maintenance mode
81
-     */
82
-    public function check_maintenance_mode()
83
-    {
84
-        $notice = '';
85
-        $maintenance_page_url = '';
86
-        if (EE_Maintenance_Mode::instance()->level()) {
87
-            $maintenance_page_url = EE_Admin_Page::add_query_args_and_nonce(array(), EE_MAINTENANCE_ADMIN_URL);
88
-            switch (EE_Maintenance_Mode::instance()->level()) {
89
-                case EE_Maintenance_Mode::level_1_frontend_only_maintenance:
90
-                    $notice = '<div class="update-nag">
78
+	/**
79
+	 * Checks if we're in maintenance mode, and if so we notify the admin adn tell them how to take the site OUT of
80
+	 * maintenance mode
81
+	 */
82
+	public function check_maintenance_mode()
83
+	{
84
+		$notice = '';
85
+		$maintenance_page_url = '';
86
+		if (EE_Maintenance_Mode::instance()->level()) {
87
+			$maintenance_page_url = EE_Admin_Page::add_query_args_and_nonce(array(), EE_MAINTENANCE_ADMIN_URL);
88
+			switch (EE_Maintenance_Mode::instance()->level()) {
89
+				case EE_Maintenance_Mode::level_1_frontend_only_maintenance:
90
+					$notice = '<div class="update-nag">
91 91
 						'
92
-                              . sprintf(
93
-                                  __(
94
-                                      "Event Espresso is in Frontend-Only MAINTENANCE MODE. This means the front-end (ie, non-wp-admin pages) is disabled for ALL users except site admins. Visit the %s Maintenance Page %s to disable maintenance mode.",
95
-                                      "event_espresso"
96
-                                  ),
97
-                                  "<a href='$maintenance_page_url'>",
98
-                                  "</a>"
99
-                              )
100
-                              .
101
-                              '</div>';
102
-                    break;
103
-                case EE_Maintenance_Mode::level_2_complete_maintenance:
104
-                    $notice = '<div class="error">
92
+							  . sprintf(
93
+								  __(
94
+									  "Event Espresso is in Frontend-Only MAINTENANCE MODE. This means the front-end (ie, non-wp-admin pages) is disabled for ALL users except site admins. Visit the %s Maintenance Page %s to disable maintenance mode.",
95
+									  "event_espresso"
96
+								  ),
97
+								  "<a href='$maintenance_page_url'>",
98
+								  "</a>"
99
+							  )
100
+							  .
101
+							  '</div>';
102
+					break;
103
+				case EE_Maintenance_Mode::level_2_complete_maintenance:
104
+					$notice = '<div class="error">
105 105
 						<p>'
106
-                              . sprintf(
107
-                                  __(
108
-                                      "As part of the process for updating Event Espresso, your database also
106
+							  . sprintf(
107
+								  __(
108
+									  "As part of the process for updating Event Espresso, your database also
109 109
 needs to be updated. Event Espresso is in COMPLETE MAINTENANCE MODE (both WordPress admin pages and front-end event registration pages are disabled) until you run the database update script. %s Visit the Maintenance Page to get started,%s it only takes a moment.",
110
-                                      "event_espresso"
111
-                                  ),
112
-                                  "<a href='$maintenance_page_url'>",
113
-                                  "</a>"
114
-                              ) .
115
-                              '</div>';
116
-                    break;
117
-            }
118
-        }
119
-        echo apply_filters(
120
-            'FHEE__Maintenance_Admin_Page_Init__check_maintenance_mode__notice',
121
-            $notice,
122
-            $maintenance_page_url
123
-        );
124
-    }
110
+									  "event_espresso"
111
+								  ),
112
+								  "<a href='$maintenance_page_url'>",
113
+								  "</a>"
114
+							  ) .
115
+							  '</div>';
116
+					break;
117
+			}
118
+		}
119
+		echo apply_filters(
120
+			'FHEE__Maintenance_Admin_Page_Init__check_maintenance_mode__notice',
121
+			$notice,
122
+			$maintenance_page_url
123
+		);
124
+	}
125 125
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
         // define some page related constants
30 30
         define('EE_MAINTENANCE_LABEL', __('Maintenance', 'event_espresso'));
31 31
         define('EE_MAINTENANCE_PG_SLUG', 'espresso_maintenance_settings');
32
-        define('EE_MAINTENANCE_ADMIN_URL', admin_url('admin.php?page=' . EE_MAINTENANCE_PG_SLUG));
33
-        define('EE_MAINTENANCE_ADMIN', EE_ADMIN_PAGES . 'maintenance/');
34
-        define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN . 'templates/');
35
-        define('EE_MAINTENANCE_ASSETS_URL', EE_ADMIN_PAGES_URL . 'maintenance/assets/');
32
+        define('EE_MAINTENANCE_ADMIN_URL', admin_url('admin.php?page='.EE_MAINTENANCE_PG_SLUG));
33
+        define('EE_MAINTENANCE_ADMIN', EE_ADMIN_PAGES.'maintenance/');
34
+        define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN.'templates/');
35
+        define('EE_MAINTENANCE_ASSETS_URL', EE_ADMIN_PAGES_URL.'maintenance/assets/');
36 36
         // check that if we're in maintenance mode that we tell the admin that
37 37
         add_action('admin_notices', array($this, 'check_maintenance_mode'));
38 38
         parent::__construct();
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                                   ),
112 112
                                   "<a href='$maintenance_page_url'>",
113 113
                                   "</a>"
114
-                              ) .
114
+                              ).
115 115
                               '</div>';
116 116
                     break;
117 117
             }
Please login to merge, or discard this patch.
admin_pages/events/Events_Admin_Page_Init.core.php 2 patches
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -14,42 +14,42 @@
 block discarded – undo
14 14
 class Events_Admin_Page_Init extends EE_Admin_Page_CPT_Init
15 15
 {
16 16
 
17
-    public function __construct()
18
-    {
19
-        /**
20
-         * define some events related constants but only if not defined (need to check because unit tests
21
-         *  may load)
22
-         */
23
-        if (! defined('EVENTS_PG_SLUG')) {
24
-            define('EVENTS_PG_SLUG', 'espresso_events');
25
-            define('EVENTS_LABEL', __('Events', 'event_espresso'));
26
-            define('EVENTS_ADMIN', EE_ADMIN_PAGES . 'events/');
27
-            define('EVENTS_ADMIN_URL', admin_url('admin.php?page=' . EVENTS_PG_SLUG));
28
-            define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN . 'templates/');
29
-            define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'events/assets/');
30
-        }
31
-        parent::__construct();
32
-    }
17
+	public function __construct()
18
+	{
19
+		/**
20
+		 * define some events related constants but only if not defined (need to check because unit tests
21
+		 *  may load)
22
+		 */
23
+		if (! defined('EVENTS_PG_SLUG')) {
24
+			define('EVENTS_PG_SLUG', 'espresso_events');
25
+			define('EVENTS_LABEL', __('Events', 'event_espresso'));
26
+			define('EVENTS_ADMIN', EE_ADMIN_PAGES . 'events/');
27
+			define('EVENTS_ADMIN_URL', admin_url('admin.php?page=' . EVENTS_PG_SLUG));
28
+			define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN . 'templates/');
29
+			define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'events/assets/');
30
+		}
31
+		parent::__construct();
32
+	}
33 33
 
34
-    protected function _set_init_properties()
35
-    {
36
-        $this->label = __('Event Espresso - Event Details', 'event_espresso');
37
-    }
34
+	protected function _set_init_properties()
35
+	{
36
+		$this->label = __('Event Espresso - Event Details', 'event_espresso');
37
+	}
38 38
 
39
-    protected function _set_menu_map()
40
-    {
41
-        $this->_menu_map = new EE_Admin_Page_Main_Menu(
42
-            array(
43
-                'menu_group'      => 'main',
44
-                'menu_order'      => 10,
45
-                'subtitle'        => __('Events', 'event_espresso'),
46
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
47
-                'parent_slug'     => 'espresso_events',
48
-                'menu_slug'       => 'espresso_events',
49
-                'menu_label'      => __('Event Espresso', 'event_espresso'),
50
-                'capability'      => 'ee_read_events',
51
-                'admin_init_page' => $this,
52
-            )
53
-        );
54
-    }
39
+	protected function _set_menu_map()
40
+	{
41
+		$this->_menu_map = new EE_Admin_Page_Main_Menu(
42
+			array(
43
+				'menu_group'      => 'main',
44
+				'menu_order'      => 10,
45
+				'subtitle'        => __('Events', 'event_espresso'),
46
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
47
+				'parent_slug'     => 'espresso_events',
48
+				'menu_slug'       => 'espresso_events',
49
+				'menu_label'      => __('Event Espresso', 'event_espresso'),
50
+				'capability'      => 'ee_read_events',
51
+				'admin_init_page' => $this,
52
+			)
53
+		);
54
+	}
55 55
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
          * define some events related constants but only if not defined (need to check because unit tests
21 21
          *  may load)
22 22
          */
23
-        if (! defined('EVENTS_PG_SLUG')) {
23
+        if ( ! defined('EVENTS_PG_SLUG')) {
24 24
             define('EVENTS_PG_SLUG', 'espresso_events');
25 25
             define('EVENTS_LABEL', __('Events', 'event_espresso'));
26
-            define('EVENTS_ADMIN', EE_ADMIN_PAGES . 'events/');
27
-            define('EVENTS_ADMIN_URL', admin_url('admin.php?page=' . EVENTS_PG_SLUG));
28
-            define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN . 'templates/');
29
-            define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'events/assets/');
26
+            define('EVENTS_ADMIN', EE_ADMIN_PAGES.'events/');
27
+            define('EVENTS_ADMIN_URL', admin_url('admin.php?page='.EVENTS_PG_SLUG));
28
+            define('EVENTS_TEMPLATE_PATH', EVENTS_ADMIN.'templates/');
29
+            define('EVENTS_ASSETS_URL', EE_ADMIN_PAGES_URL.'events/assets/');
30 30
         }
31 31
         parent::__construct();
32 32
     }
Please login to merge, or discard this patch.
admin_pages/venues/Venues_Admin_Page_Init.core.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -17,39 +17,39 @@
 block discarded – undo
17 17
 {
18 18
 
19 19
 
20
-    public function __construct()
21
-    {
22
-        // define some event categories related constants
23
-        define('EE_VENUES_PG_SLUG', 'espresso_venues');
24
-        define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG));
25
-        define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'venues/assets/');
26
-        define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES . 'venues/templates/');
20
+	public function __construct()
21
+	{
22
+		// define some event categories related constants
23
+		define('EE_VENUES_PG_SLUG', 'espresso_venues');
24
+		define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG));
25
+		define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'venues/assets/');
26
+		define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES . 'venues/templates/');
27 27
 
28
-        parent::__construct();
29
-        $this->_folder_path = EE_ADMIN_PAGES . $this->_folder_name . '/';
30
-    }
28
+		parent::__construct();
29
+		$this->_folder_path = EE_ADMIN_PAGES . $this->_folder_name . '/';
30
+	}
31 31
 
32
-    protected function _set_init_properties()
33
-    {
34
-        $this->label = __('Event Venues', 'event_espresso');
35
-        $this->menu_label = __('Venues', 'event_espresso');
36
-        $this->menu_slug = EE_VENUES_PG_SLUG;
37
-    }
32
+	protected function _set_init_properties()
33
+	{
34
+		$this->label = __('Event Venues', 'event_espresso');
35
+		$this->menu_label = __('Venues', 'event_espresso');
36
+		$this->menu_slug = EE_VENUES_PG_SLUG;
37
+	}
38 38
 
39 39
 
40
-    protected function _set_menu_map()
41
-    {
42
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
43
-            array(
44
-                'menu_group'      => 'management',
45
-                'menu_order'      => 40,
46
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
47
-                'parent_slug'     => 'espresso_events',
48
-                'menu_slug'       => EE_VENUES_PG_SLUG,
49
-                'menu_label'      => __('Venues', 'event_espresso'),
50
-                'capability'      => 'ee_read_venues',
51
-                'admin_init_page' => $this,
52
-            )
53
-        );
54
-    }
40
+	protected function _set_menu_map()
41
+	{
42
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
43
+			array(
44
+				'menu_group'      => 'management',
45
+				'menu_order'      => 40,
46
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
47
+				'parent_slug'     => 'espresso_events',
48
+				'menu_slug'       => EE_VENUES_PG_SLUG,
49
+				'menu_label'      => __('Venues', 'event_espresso'),
50
+				'capability'      => 'ee_read_venues',
51
+				'admin_init_page' => $this,
52
+			)
53
+		);
54
+	}
55 55
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
     {
22 22
         // define some event categories related constants
23 23
         define('EE_VENUES_PG_SLUG', 'espresso_venues');
24
-        define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page=' . EE_VENUES_PG_SLUG));
25
-        define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL . 'venues/assets/');
26
-        define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES . 'venues/templates/');
24
+        define('EE_VENUES_ADMIN_URL', admin_url('admin.php?page='.EE_VENUES_PG_SLUG));
25
+        define('EE_VENUES_ASSETS_URL', EE_ADMIN_PAGES_URL.'venues/assets/');
26
+        define('EE_VENUES_TEMPLATE_PATH', EE_ADMIN_PAGES.'venues/templates/');
27 27
 
28 28
         parent::__construct();
29
-        $this->_folder_path = EE_ADMIN_PAGES . $this->_folder_name . '/';
29
+        $this->_folder_path = EE_ADMIN_PAGES.$this->_folder_name.'/';
30 30
     }
31 31
 
32 32
     protected function _set_init_properties()
Please login to merge, or discard this patch.