Completed
Branch dependabot/npm_and_yarn/@wordp... (e9f48b)
by
unknown
60:52 queued 52:34
created
admin_pages/registrations/templates/reg_status_change_buttons.template.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@  discard block
 block discarded – undo
17 17
         <?php echo $nonce; ?>
18 18
         <?php echo $status_buttons; ?>
19 19
         <?php
20
-        if ($attendee instanceof EE_Attendee
21
-            && EE_Registry::instance()->CAP->current_user_can(
22
-                'ee_send_message',
23
-                'registration_message_type'
24
-            )) : ?>
20
+		if ($attendee instanceof EE_Attendee
21
+			&& EE_Registry::instance()->CAP->current_user_can(
22
+				'ee_send_message',
23
+				'registration_message_type'
24
+			)) : ?>
25 25
             <span id="send-related-messages-dv">
26 26
                 <label for="txn-reg-status-send-notifications-inp" class="important-notice">
27 27
                 <?php _e(
28
-                    '...and send related messages ?',
29
-                    'event_espresso'
30
-                ); ?>
28
+					'...and send related messages ?',
29
+					'event_espresso'
30
+				); ?>
31 31
                 <input type="checkbox" value="1" id="txn-reg-status-send-notifications-inp"
32 32
                        name="txn_reg_status_change[send_notifications]">
33 33
                 </label>
@@ -36,9 +36,9 @@  discard block
 block discarded – undo
36 36
             <br/>
37 37
             <p class="description">
38 38
                 <?php _e(
39
-                    'If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.',
40
-                    'event_espresso'
41
-                ); ?></p>
39
+					'If the "send related messages"checkbox is checked when changing status, then the related messages will be sent to the registrant.',
40
+					'event_espresso'
41
+				); ?></p>
42 42
         <?php endif; ?>
43 43
     </form>
44 44
 </div>
Please login to merge, or discard this patch.
registrations/templates/attendee_details_main_meta_box.template.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@  discard block
 block discarded – undo
23 23
             <td>
24 24
                 <div class="validation-notice-dv">
25 25
                     <?php _e(
26
-                        'The following is  a required field',
27
-                        'event_espresso'
28
-                    ); ?></div>
26
+						'The following is  a required field',
27
+						'event_espresso'
28
+					); ?></div>
29 29
                 <input class="regular-text required" type="text" id="ATT_fname" name="ATT_fname"
30 30
                        value="<?php echo $attendee->fname(); ?>"/><br/>
31 31
                 <p class="description">
32 32
                     <?php _e(
33
-                        'The registrant\'s given name. ( required value )',
34
-                        'event_espresso'
35
-                    ); ?></p>
33
+						'The registrant\'s given name. ( required value )',
34
+						'event_espresso'
35
+					); ?></p>
36 36
             </td>
37 37
         </tr>
38 38
 
@@ -44,16 +44,16 @@  discard block
 block discarded – undo
44 44
             <td>
45 45
                 <div class="validation-notice-dv">
46 46
                     <?php _e(
47
-                        'The following is  a required field',
48
-                        'event_espresso'
49
-                    ); ?></div>
47
+						'The following is  a required field',
48
+						'event_espresso'
49
+					); ?></div>
50 50
                 <input class="regular-text required" type="text" id="ATT_lname" name="ATT_lname"
51 51
                        value="<?php echo $attendee->lname(); ?>"/><br/>
52 52
                 <p class="description">
53 53
                     <?php _e(
54
-                        'The registrant\'s family name. ( required value )',
55
-                        'event_espresso'
56
-                    ); ?></p>
54
+						'The registrant\'s family name. ( required value )',
55
+						'event_espresso'
56
+					); ?></p>
57 57
             </td>
58 58
         </tr>
59 59
 
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
             <td>
66 66
                 <div class="validation-notice-dv">
67 67
                     <?php _e(
68
-                        'The following is  a required field',
69
-                        'event_espresso'
70
-                    ); ?></div>
68
+						'The following is  a required field',
69
+						'event_espresso'
70
+					); ?></div>
71 71
                 <input class="regular-text required" type="text" id="ATT_email" name="ATT_email"
72 72
                        value="<?php $attendee->f('ATT_email'); ?>"/><br/>
73 73
                 <p class="description"><?php _e('( required value )', 'event_espresso'); ?></p>
Please login to merge, or discard this patch.
registrations/templates/reg_admin_register_new_attendee.template.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <h1><span class="small-text not-bold">
2 2
         <?php _e(
3
-            'Adding Registration For: ',
4
-            'event_espresso'
5
-        ); ?></span><?php echo $event_name; ?></h1>
3
+			'Adding Registration For: ',
4
+			'event_espresso'
5
+		); ?></span><?php echo $event_name; ?></h1>
6 6
 <?php echo $step_content;
Please login to merge, or discard this patch.
admin_pages/registrations/templates/reg_admin_details_header.template.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <div style="float:right">
2 2
     <?php printf(
3
-        __('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
4
-        '<a href="' . $filtered_registrations_link . '">',
5
-        '<a href="' . $filtered_transactions_link . '">',
6
-        '<a href="' . $event_link . '">',
7
-        '</a>'
8
-    ); ?>
3
+		__('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
4
+		'<a href="' . $filtered_registrations_link . '">',
5
+		'<a href="' . $filtered_transactions_link . '">',
6
+		'<a href="' . $event_link . '">',
7
+		'</a>'
8
+	); ?>
9 9
 </div>
10 10
 <h3 id="reg-admin-reg-details-reg-nmbr-hdr"><?php echo $previous_registration . '&nbsp;';
11
-    echo __('Registration # ', 'event_espresso') . $reg_nmbr['value'];
12
-    echo '&nbsp;' . $next_registration; ?></h3>
11
+	echo __('Registration # ', 'event_espresso') . $reg_nmbr['value'];
12
+	echo '&nbsp;' . $next_registration; ?></h3>
13 13
 <h2 id="reg-admin-reg-details-reg-date-hdr"><?php echo $reg_datetime['value']; ?></h2>
14 14
 
15 15
 <?php if ($registration->group_size() > 1) : ?>
16 16
     <a id="scroll-to-other-attendees" class="scroll-to" href="#other-attendees">
17 17
         <?php echo __(
18
-            'Scroll to Other Registrations in the Same Transaction',
19
-            'event_espresso'
20
-        ); ?></a>
18
+			'Scroll to Other Registrations in the Same Transaction',
19
+			'event_espresso'
20
+		); ?></a>
21 21
 <?php endif; ?>
22 22
 
23 23
 <?php do_action('AHEE__reg_status_change_buttons__after_header', $REG_ID); ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@
 block discarded – undo
1 1
 <div style="float:right">
2 2
     <?php printf(
3 3
         __('View %1$sRegistrations%4$s /  %2$sTransactions%4$s for this %3$sevent%4$s.', 'event_espresso'),
4
-        '<a href="' . $filtered_registrations_link . '">',
5
-        '<a href="' . $filtered_transactions_link . '">',
6
-        '<a href="' . $event_link . '">',
4
+        '<a href="'.$filtered_registrations_link.'">',
5
+        '<a href="'.$filtered_transactions_link.'">',
6
+        '<a href="'.$event_link.'">',
7 7
         '</a>'
8 8
     ); ?>
9 9
 </div>
10
-<h3 id="reg-admin-reg-details-reg-nmbr-hdr"><?php echo $previous_registration . '&nbsp;';
11
-    echo __('Registration # ', 'event_espresso') . $reg_nmbr['value'];
12
-    echo '&nbsp;' . $next_registration; ?></h3>
10
+<h3 id="reg-admin-reg-details-reg-nmbr-hdr"><?php echo $previous_registration.'&nbsp;';
11
+    echo __('Registration # ', 'event_espresso').$reg_nmbr['value'];
12
+    echo '&nbsp;'.$next_registration; ?></h3>
13 13
 <h2 id="reg-admin-reg-details-reg-date-hdr"><?php echo $reg_datetime['value']; ?></h2>
14 14
 
15 15
 <?php if ($registration->group_size() > 1) : ?>
Please login to merge, or discard this patch.
registrations/templates/attendee_registrations_main_meta_box.template.php 2 patches
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -17,62 +17,62 @@
 block discarded – undo
17 17
                 <tr>
18 18
                     <td class="jst-left">
19 19
                         <?php
20
-                        $event_url = add_query_arg(
21
-                            array('action' => 'edit', 'post' => $registration->event_ID()),
22
-                            admin_url('admin.php?page=espresso_events')
23
-                        );
24
-                        echo EE_Registry::instance()->CAP->current_user_can(
25
-                            'ee_edit_event',
26
-                            'espresso_events_edit',
27
-                            $registration->event_ID()
28
-                        ) ? '<a href="' . $event_url . '"  title="'
29
-                            . esc_attr__(
30
-                                'Edit Event',
31
-                                'event_espresso'
32
-                            ) . '">' . $registration->event_name() . '</a>' : $registration->event_name();
33
-                        ?>
20
+						$event_url = add_query_arg(
21
+							array('action' => 'edit', 'post' => $registration->event_ID()),
22
+							admin_url('admin.php?page=espresso_events')
23
+						);
24
+						echo EE_Registry::instance()->CAP->current_user_can(
25
+							'ee_edit_event',
26
+							'espresso_events_edit',
27
+							$registration->event_ID()
28
+						) ? '<a href="' . $event_url . '"  title="'
29
+							. esc_attr__(
30
+								'Edit Event',
31
+								'event_espresso'
32
+							) . '">' . $registration->event_name() . '</a>' : $registration->event_name();
33
+						?>
34 34
                     </td>
35 35
                     <td class="jst-left">
36 36
                         <?php
37
-                        $reg_url = EE_Admin_Page::add_query_args_and_nonce(
38
-                            array('action' => 'view_registration', '_REG_ID' => $registration->ID()),
39
-                            REG_ADMIN_URL
40
-                        );
41
-                        echo EE_Registry::instance()->CAP->current_user_can(
42
-                            'ee_read_registration',
43
-                            'espresso_registrations_view_registration',
44
-                            $registration->ID()
45
-                        ) ? '
37
+						$reg_url = EE_Admin_Page::add_query_args_and_nonce(
38
+							array('action' => 'view_registration', '_REG_ID' => $registration->ID()),
39
+							REG_ADMIN_URL
40
+						);
41
+						echo EE_Registry::instance()->CAP->current_user_can(
42
+							'ee_read_registration',
43
+							'espresso_registrations_view_registration',
44
+							$registration->ID()
45
+						) ? '
46 46
 							<a href="' . $reg_url . '" title="'
47
-                            . esc_attr__(
48
-                                'View Registration Details',
49
-                                'event_espresso'
50
-                            ) . '">' .
51
-                            esc_html__('View Registration', 'event_espresso') .
52
-                            '</a>' : $registration->ID();
53
-                        ?>
47
+							. esc_attr__(
48
+								'View Registration Details',
49
+								'event_espresso'
50
+							) . '">' .
51
+							esc_html__('View Registration', 'event_espresso') .
52
+							'</a>' : $registration->ID();
53
+						?>
54 54
                     </td>
55 55
                     <td class="jst-left">
56 56
                         <?php
57
-                        $txn_url = EE_Admin_Page::add_query_args_and_nonce(
58
-                            array('action' => 'view_transaction', 'TXN_ID' => $registration->transaction_ID()),
59
-                            TXN_ADMIN_URL
60
-                        );
61
-                        echo EE_Registry::instance()->CAP->current_user_can(
62
-                            'ee_read_transaction',
63
-                            'espresso_transactions_view_transaction'
64
-                        ) ? '
57
+						$txn_url = EE_Admin_Page::add_query_args_and_nonce(
58
+							array('action' => 'view_transaction', 'TXN_ID' => $registration->transaction_ID()),
59
+							TXN_ADMIN_URL
60
+						);
61
+						echo EE_Registry::instance()->CAP->current_user_can(
62
+							'ee_read_transaction',
63
+							'espresso_transactions_view_transaction'
64
+						) ? '
65 65
 						<a href="' . $txn_url . '" title="'
66
-                            . esc_attr__(
67
-                                'View Transaction Details',
68
-                                'event_espresso'
69
-                            ) . '">' .
70
-                            sprintf(
71
-                                esc_html__('View Transaction %d', 'event_espresso'),
72
-                                $registration->transaction_ID()
73
-                            ) .
74
-                            '</a>' : $registration->transaction_ID();
75
-                        ?>
66
+							. esc_attr__(
67
+								'View Transaction Details',
68
+								'event_espresso'
69
+							) . '">' .
70
+							sprintf(
71
+								esc_html__('View Transaction %d', 'event_espresso'),
72
+								$registration->transaction_ID()
73
+							) .
74
+							'</a>' : $registration->transaction_ID();
75
+						?>
76 76
                     </td>
77 77
                     <td class="jst-left"><?php echo $registration->reg_code(); ?></td>
78 78
                     <td class="jst-rght"><?php echo EEH_Template::format_currency($registration->final_price()); ?></td>
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@  discard block
 block discarded – undo
25 25
                             'ee_edit_event',
26 26
                             'espresso_events_edit',
27 27
                             $registration->event_ID()
28
-                        ) ? '<a href="' . $event_url . '"  title="'
28
+                        ) ? '<a href="'.$event_url.'"  title="'
29 29
                             . esc_attr__(
30 30
                                 'Edit Event',
31 31
                                 'event_espresso'
32
-                            ) . '">' . $registration->event_name() . '</a>' : $registration->event_name();
32
+                            ).'">'.$registration->event_name().'</a>' : $registration->event_name();
33 33
                         ?>
34 34
                     </td>
35 35
                     <td class="jst-left">
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
                             'espresso_registrations_view_registration',
44 44
                             $registration->ID()
45 45
                         ) ? '
46
-							<a href="' . $reg_url . '" title="'
46
+							<a href="' . $reg_url.'" title="'
47 47
                             . esc_attr__(
48 48
                                 'View Registration Details',
49 49
                                 'event_espresso'
50
-                            ) . '">' .
51
-                            esc_html__('View Registration', 'event_espresso') .
50
+                            ).'">'.
51
+                            esc_html__('View Registration', 'event_espresso').
52 52
                             '</a>' : $registration->ID();
53 53
                         ?>
54 54
                     </td>
@@ -62,15 +62,15 @@  discard block
 block discarded – undo
62 62
                             'ee_read_transaction',
63 63
                             'espresso_transactions_view_transaction'
64 64
                         ) ? '
65
-						<a href="' . $txn_url . '" title="'
65
+						<a href="' . $txn_url.'" title="'
66 66
                             . esc_attr__(
67 67
                                 'View Transaction Details',
68 68
                                 'event_espresso'
69
-                            ) . '">' .
69
+                            ).'">'.
70 70
                             sprintf(
71 71
                                 esc_html__('View Transaction %d', 'event_espresso'),
72 72
                                 $registration->transaction_ID()
73
-                            ) .
73
+                            ).
74 74
                             '</a>' : $registration->transaction_ID();
75 75
                         ?>
76 76
                     </td>
Please login to merge, or discard this patch.
admin_pages/payments/Payments_Admin_Page_Init.core.php 2 patches
Indentation   +138 added lines, -138 removed lines patch added patch discarded remove patch
@@ -15,144 +15,144 @@
 block discarded – undo
15 15
 class Payments_Admin_Page_Init extends EE_Admin_Page_Init
16 16
 {
17 17
 
18
-    /**
19
-     * @var \EventEspresso\core\services\database\TableAnalysis $table_analysis
20
-     */
21
-    protected $_table_analysis;
22
-
23
-
24
-    /**
25
-     * Payments_Admin_Page_Init constructor.
26
-     */
27
-    public function __construct()
28
-    {
29
-        // define some page related constants
30
-        define('EE_PAYMENTS_PG_SLUG', 'espresso_payment_settings');
31
-        define('EE_PAYMENTS_ADMIN_URL', admin_url('admin.php?page=' . EE_PAYMENTS_PG_SLUG));
32
-        define('EE_PAYMENTS_ADMIN', EE_ADMIN_PAGES . 'payments' . DS);
33
-        define('EE_PAYMENTS_TEMPLATE_PATH', EE_PAYMENTS_ADMIN . 'templates' . DS);
34
-        define('EE_PAYMENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'payments/assets/');
35
-        $this->_table_analysis = EE_Registry::instance()->create('TableAnalysis', array(), true);
36
-        // check that there are active gateways on all admin page loads. but dont do it just yet
37
-        add_action('admin_notices', array($this, 'check_payment_gateway_setup'));
38
-
39
-        // Show/hide PP Standard along side PP Express.
40
-        add_filter(
41
-            'FHEE__Payments_Admin_Page___payment_methods_list__payment_methods',
42
-            array($this, 'unset_pp_standard')
43
-        );
44
-
45
-        parent::__construct();
46
-    }
47
-
48
-    protected function _set_init_properties()
49
-    {
50
-        $this->label = __('Payment Methods', 'event_espresso');
51
-    }
52
-
53
-
54
-    /**
55
-     * _set_menu_map
56
-     *
57
-     * @return void
58
-     */
59
-    protected function _set_menu_map()
60
-    {
61
-        $this->_menu_map = new EE_Admin_Page_Sub_Menu(
62
-            array(
63
-                'menu_group'      => 'settings',
64
-                'menu_order'      => 30,
65
-                'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
66
-                'parent_slug'     => 'espresso_events',
67
-                'menu_slug'       => EE_PAYMENTS_PG_SLUG,
68
-                'menu_label'      => __('Payment Methods', 'event_espresso'),
69
-                'capability'      => 'ee_manage_gateways',
70
-                'admin_init_page' => $this,
71
-            )
72
-        );
73
-    }
74
-
75
-
76
-    /**
77
-     * Checks that there is at least one active gateway. If not, add a notice
78
-     *
79
-     * @throws \EE_Error
80
-     */
81
-    public function check_payment_gateway_setup()
82
-    {
83
-        // ONLY do this check if models can query
84
-        // and avoid a bug where when we nuke EE4's data that this causes a fatal error
85
-        // because the tables are deleted just before this request runs. see https://events.codebasehq.com/projects/event-espresso/tickets/7539
86
-        if (! EE_Maintenance_Mode::instance()->models_can_query()
87
-            || ! $this->_get_table_analysis()->tableExists(EEM_Payment_Method::instance()->table())
88
-        ) {
89
-            return;
90
-        }
91
-
92
-
93
-        // ensure Payment_Method model is loaded
94
-        EE_Registry::instance()->load_model('Payment_Method');
95
-        $actives = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart);
96
-        if ($actives < 1) {
97
-            $url = EE_Admin_Page::add_query_args_and_nonce(array(), EE_PAYMENTS_ADMIN_URL);
98
-            echo '<div class="error">
18
+	/**
19
+	 * @var \EventEspresso\core\services\database\TableAnalysis $table_analysis
20
+	 */
21
+	protected $_table_analysis;
22
+
23
+
24
+	/**
25
+	 * Payments_Admin_Page_Init constructor.
26
+	 */
27
+	public function __construct()
28
+	{
29
+		// define some page related constants
30
+		define('EE_PAYMENTS_PG_SLUG', 'espresso_payment_settings');
31
+		define('EE_PAYMENTS_ADMIN_URL', admin_url('admin.php?page=' . EE_PAYMENTS_PG_SLUG));
32
+		define('EE_PAYMENTS_ADMIN', EE_ADMIN_PAGES . 'payments' . DS);
33
+		define('EE_PAYMENTS_TEMPLATE_PATH', EE_PAYMENTS_ADMIN . 'templates' . DS);
34
+		define('EE_PAYMENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'payments/assets/');
35
+		$this->_table_analysis = EE_Registry::instance()->create('TableAnalysis', array(), true);
36
+		// check that there are active gateways on all admin page loads. but dont do it just yet
37
+		add_action('admin_notices', array($this, 'check_payment_gateway_setup'));
38
+
39
+		// Show/hide PP Standard along side PP Express.
40
+		add_filter(
41
+			'FHEE__Payments_Admin_Page___payment_methods_list__payment_methods',
42
+			array($this, 'unset_pp_standard')
43
+		);
44
+
45
+		parent::__construct();
46
+	}
47
+
48
+	protected function _set_init_properties()
49
+	{
50
+		$this->label = __('Payment Methods', 'event_espresso');
51
+	}
52
+
53
+
54
+	/**
55
+	 * _set_menu_map
56
+	 *
57
+	 * @return void
58
+	 */
59
+	protected function _set_menu_map()
60
+	{
61
+		$this->_menu_map = new EE_Admin_Page_Sub_Menu(
62
+			array(
63
+				'menu_group'      => 'settings',
64
+				'menu_order'      => 30,
65
+				'show_on_menu'    => EE_Admin_Page_Menu_Map::BLOG_ADMIN_ONLY,
66
+				'parent_slug'     => 'espresso_events',
67
+				'menu_slug'       => EE_PAYMENTS_PG_SLUG,
68
+				'menu_label'      => __('Payment Methods', 'event_espresso'),
69
+				'capability'      => 'ee_manage_gateways',
70
+				'admin_init_page' => $this,
71
+			)
72
+		);
73
+	}
74
+
75
+
76
+	/**
77
+	 * Checks that there is at least one active gateway. If not, add a notice
78
+	 *
79
+	 * @throws \EE_Error
80
+	 */
81
+	public function check_payment_gateway_setup()
82
+	{
83
+		// ONLY do this check if models can query
84
+		// and avoid a bug where when we nuke EE4's data that this causes a fatal error
85
+		// because the tables are deleted just before this request runs. see https://events.codebasehq.com/projects/event-espresso/tickets/7539
86
+		if (! EE_Maintenance_Mode::instance()->models_can_query()
87
+			|| ! $this->_get_table_analysis()->tableExists(EEM_Payment_Method::instance()->table())
88
+		) {
89
+			return;
90
+		}
91
+
92
+
93
+		// ensure Payment_Method model is loaded
94
+		EE_Registry::instance()->load_model('Payment_Method');
95
+		$actives = EEM_Payment_Method::instance()->count_active(EEM_Payment_Method::scope_cart);
96
+		if ($actives < 1) {
97
+			$url = EE_Admin_Page::add_query_args_and_nonce(array(), EE_PAYMENTS_ADMIN_URL);
98
+			echo '<div class="error">
99 99
 				 <p>'
100
-                 . sprintf(
101
-                     __(
102
-                         "There are no Active Payment Methods setup for Event Espresso. Please %s activate at least one.%s",
103
-                         "event_espresso"
104
-                     ),
105
-                     "<a href='$url'>",
106
-                     "</a>"
107
-                 ) . '</p>
100
+				 . sprintf(
101
+					 __(
102
+						 "There are no Active Payment Methods setup for Event Espresso. Please %s activate at least one.%s",
103
+						 "event_espresso"
104
+					 ),
105
+					 "<a href='$url'>",
106
+					 "</a>"
107
+				 ) . '</p>
108 108
 			 </div>';
109
-        }
110
-    }
111
-
112
-    /**
113
-     * Gets the injected table analyzer, or throws an exception
114
-     *
115
-     * @return TableAnalysis
116
-     * @throws \EE_Error
117
-     */
118
-    protected function _get_table_analysis()
119
-    {
120
-        if ($this->_table_analysis instanceof TableAnalysis) {
121
-            return $this->_table_analysis;
122
-        } else {
123
-            throw new \EE_Error(
124
-                sprintf(
125
-                    __('Table analysis class on class %1$s is not set properly.', 'event_espresso'),
126
-                    get_class($this)
127
-                )
128
-            );
129
-        }
130
-    }
131
-
132
-
133
-    /**
134
-     * Hide PayPal Standard for "new" users.
135
-     */
136
-    public static function unset_pp_standard($payment_method_types)
137
-    {
138
-        $pps = EEM_Payment_Method::instance()->get_one_of_type('Paypal_Standard');
139
-        $ppstandard_active = (! empty($pps)) ? $pps->active() : false;
140
-        $ppstandard_active_before = false;
141
-        if ($pps) {
142
-            // PP Standard used before ?
143
-            $paypal_id = $pps->get_extra_meta('paypal_id', true);
144
-            if ($paypal_id && ! empty($paypal_id)) {
145
-                $ppstandard_active_before = true;
146
-            }
147
-        }
148
-
149
-        // Not using PP Standard? Then display only PayPal Express, do not show PayPal Standard.
150
-        if (apply_filters(
151
-            'FHEE__EE_PMT_Paypal_Express__register_payment_methods__hide_paypal_standard',
152
-            ! $ppstandard_active && ! $ppstandard_active_before
153
-        )) {
154
-            unset($payment_method_types['paypal_standard']);
155
-        }
156
-        return $payment_method_types;
157
-    }
109
+		}
110
+	}
111
+
112
+	/**
113
+	 * Gets the injected table analyzer, or throws an exception
114
+	 *
115
+	 * @return TableAnalysis
116
+	 * @throws \EE_Error
117
+	 */
118
+	protected function _get_table_analysis()
119
+	{
120
+		if ($this->_table_analysis instanceof TableAnalysis) {
121
+			return $this->_table_analysis;
122
+		} else {
123
+			throw new \EE_Error(
124
+				sprintf(
125
+					__('Table analysis class on class %1$s is not set properly.', 'event_espresso'),
126
+					get_class($this)
127
+				)
128
+			);
129
+		}
130
+	}
131
+
132
+
133
+	/**
134
+	 * Hide PayPal Standard for "new" users.
135
+	 */
136
+	public static function unset_pp_standard($payment_method_types)
137
+	{
138
+		$pps = EEM_Payment_Method::instance()->get_one_of_type('Paypal_Standard');
139
+		$ppstandard_active = (! empty($pps)) ? $pps->active() : false;
140
+		$ppstandard_active_before = false;
141
+		if ($pps) {
142
+			// PP Standard used before ?
143
+			$paypal_id = $pps->get_extra_meta('paypal_id', true);
144
+			if ($paypal_id && ! empty($paypal_id)) {
145
+				$ppstandard_active_before = true;
146
+			}
147
+		}
148
+
149
+		// Not using PP Standard? Then display only PayPal Express, do not show PayPal Standard.
150
+		if (apply_filters(
151
+			'FHEE__EE_PMT_Paypal_Express__register_payment_methods__hide_paypal_standard',
152
+			! $ppstandard_active && ! $ppstandard_active_before
153
+		)) {
154
+			unset($payment_method_types['paypal_standard']);
155
+		}
156
+		return $payment_method_types;
157
+	}
158 158
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
     {
29 29
         // define some page related constants
30 30
         define('EE_PAYMENTS_PG_SLUG', 'espresso_payment_settings');
31
-        define('EE_PAYMENTS_ADMIN_URL', admin_url('admin.php?page=' . EE_PAYMENTS_PG_SLUG));
32
-        define('EE_PAYMENTS_ADMIN', EE_ADMIN_PAGES . 'payments' . DS);
33
-        define('EE_PAYMENTS_TEMPLATE_PATH', EE_PAYMENTS_ADMIN . 'templates' . DS);
34
-        define('EE_PAYMENTS_ASSETS_URL', EE_ADMIN_PAGES_URL . 'payments/assets/');
31
+        define('EE_PAYMENTS_ADMIN_URL', admin_url('admin.php?page='.EE_PAYMENTS_PG_SLUG));
32
+        define('EE_PAYMENTS_ADMIN', EE_ADMIN_PAGES.'payments'.DS);
33
+        define('EE_PAYMENTS_TEMPLATE_PATH', EE_PAYMENTS_ADMIN.'templates'.DS);
34
+        define('EE_PAYMENTS_ASSETS_URL', EE_ADMIN_PAGES_URL.'payments/assets/');
35 35
         $this->_table_analysis = EE_Registry::instance()->create('TableAnalysis', array(), true);
36 36
         // check that there are active gateways on all admin page loads. but dont do it just yet
37 37
         add_action('admin_notices', array($this, 'check_payment_gateway_setup'));
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         // ONLY do this check if models can query
84 84
         // and avoid a bug where when we nuke EE4's data that this causes a fatal error
85 85
         // because the tables are deleted just before this request runs. see https://events.codebasehq.com/projects/event-espresso/tickets/7539
86
-        if (! EE_Maintenance_Mode::instance()->models_can_query()
86
+        if ( ! EE_Maintenance_Mode::instance()->models_can_query()
87 87
             || ! $this->_get_table_analysis()->tableExists(EEM_Payment_Method::instance()->table())
88 88
         ) {
89 89
             return;
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                      ),
105 105
                      "<a href='$url'>",
106 106
                      "</a>"
107
-                 ) . '</p>
107
+                 ).'</p>
108 108
 			 </div>';
109 109
         }
110 110
     }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     public static function unset_pp_standard($payment_method_types)
137 137
     {
138 138
         $pps = EEM_Payment_Method::instance()->get_one_of_type('Paypal_Standard');
139
-        $ppstandard_active = (! empty($pps)) ? $pps->active() : false;
139
+        $ppstandard_active = ( ! empty($pps)) ? $pps->active() : false;
140 140
         $ppstandard_active_before = false;
141 141
         if ($pps) {
142 142
             // PP Standard used before ?
Please login to merge, or discard this patch.
admin_pages/payments/help_tabs/payment_methods_overview.help_tab.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -7,80 +7,80 @@
 block discarded – undo
7 7
     <li>
8 8
         <strong><?php _e('Name', 'event_espresso'); ?></strong><br>
9 9
         <?php _e(
10
-            'The name of the payment method as customers see it in the registration form, in emails, in receipts, etc.',
11
-            'event_espresso'
12
-        ); ?>
10
+			'The name of the payment method as customers see it in the registration form, in emails, in receipts, etc.',
11
+			'event_espresso'
12
+		); ?>
13 13
     </li>
14 14
     <li>
15 15
         <strong><?php _e('Description', 'event_espresso'); ?></strong><br/>
16 16
         <?php _e(
17
-            'The description of how to use the payment method as customers will see it. This is mostly only seen during registration.',
18
-            'event_espresso'
19
-        ); ?>
17
+			'The description of how to use the payment method as customers will see it. This is mostly only seen during registration.',
18
+			'event_espresso'
19
+		); ?>
20 20
     </li>
21 21
     <li><strong><?php _e('Admin-Only Name', 'event_espresso'); ?></strong><br/>
22 22
         <?php _e(
23
-            'The name of the payment method as seen internally by site administrators and staff.',
24
-            'event_espresso'
25
-        ); ?>
23
+			'The name of the payment method as seen internally by site administrators and staff.',
24
+			'event_espresso'
25
+		); ?>
26 26
     </li>
27 27
     <li>
28 28
         <strong><?php _e('Admin-Only Description', 'event_espresso'); ?></strong><br/>
29 29
         <?php _e(
30
-            'The description of the payment method as seen internally by site administrators and staff.',
31
-            'event_espresso'
32
-        ); ?>
30
+			'The description of the payment method as seen internally by site administrators and staff.',
31
+			'event_espresso'
32
+		); ?>
33 33
     </li>
34 34
     <li>
35 35
         <strong><?php _e('Debug (sandbox) Mode', 'event_espresso'); ?></strong><br/>
36 36
         <?php _e(
37
-            'Many payment methods have a debug/sandbox mode where payments are not processed but are only simulated. This is helpful when setup and debugging.',
38
-            'event_espresso'
39
-        ); ?>
37
+			'Many payment methods have a debug/sandbox mode where payments are not processed but are only simulated. This is helpful when setup and debugging.',
38
+			'event_espresso'
39
+		); ?>
40 40
     </li>
41 41
     <li>
42 42
         <strong><?php _e('Open by Default', 'event_espresso'); ?></strong><br/>
43 43
         <?php _e(
44
-            'If checked, this payment method will be selected by default (assuming no other valid payment methods are also marked as open by default.)',
45
-            'event_espresso'
46
-        ); ?>
44
+			'If checked, this payment method will be selected by default (assuming no other valid payment methods are also marked as open by default.)',
45
+			'event_espresso'
46
+		); ?>
47 47
     </li>
48 48
     <li>
49 49
         <strong><?php _e('Button URL', 'event_espresso'); ?></strong><br/>
50 50
         <?php printf(
51
-            __(
52
-                'The URL of the button image for this payment method in the registration process. You may use any uploaded image on your website (click %s next to the field to select). If left blank, the default button image will be used.',
53
-                'event_espresso'
54
-            ),
55
-            '<img src="' . admin_url('images/media-button-image.gif') . '">'
56
-        ); ?>
51
+			__(
52
+				'The URL of the button image for this payment method in the registration process. You may use any uploaded image on your website (click %s next to the field to select). If left blank, the default button image will be used.',
53
+				'event_espresso'
54
+			),
55
+			'<img src="' . admin_url('images/media-button-image.gif') . '">'
56
+		); ?>
57 57
     </li>
58 58
     <li><strong><?php _e('Usable From', 'event_espresso'); ?></strong><br/>
59 59
         <?php _e('Where this payment method can be used from.', 'event_espresso'); ?>
60 60
         <ul>
61 61
             <li>
62 62
                 <?php _e(
63
-                    'Front-end Registration Page: the payment method will appear as an option during the normal registration process to customers and they can use it to process payments.',
64
-                    'event_espresso'
65
-                ); ?></li>
63
+					'Front-end Registration Page: the payment method will appear as an option during the normal registration process to customers and they can use it to process payments.',
64
+					'event_espresso'
65
+				); ?></li>
66 66
             <li>
67 67
                 <?php _e(
68
-                    'Admin Registration Page: when recording payments made from the transaction admin page, the payment method will appear as an option. Note: currently payments can only be RECORDED from the admin, they cannot be PROCESSED.',
69
-                    'event_espresso'
70
-                ); ?></li>
68
+					'Admin Registration Page: when recording payments made from the transaction admin page, the payment method will appear as an option. Note: currently payments can only be RECORDED from the admin, they cannot be PROCESSED.',
69
+					'event_espresso'
70
+				); ?></li>
71 71
         </ul>
72 72
     </li>
73 73
 </ul>
74 74
 <strong><?php _e('Recommendations', 'event_espresso'); ?></strong><br/>
75 75
 <?php _e(
76
-    'Want to see a tour of this screen? Click on the Payment Methods Overview Tour button which appears on the right side of the page. <br />To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.',
77
-    'event_espresso'
76
+	'Want to see a tour of this screen? Click on the Payment Methods Overview Tour button which appears on the right side of the page. <br />To learn more about the options on this page, take a look at the different tabs that appear on the left side of the page.',
77
+	'event_espresso'
78 78
 ); ?>
79 79
 </p>
80 80
 <p>
81 81
     <strong><?php _e('Screen Options', 'event_espresso'); ?></strong><br/>
82 82
     <?php _e(
83
-        'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.',
84
-        'event_espresso'
85
-    ); ?>
83
+		'You can customize the information that is shown on this page by toggling the Screen Options tab. Then you can add or remove checkmarks to hide or show certain content.',
84
+		'event_espresso'
85
+	); ?>
86 86
 </p>
87 87
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 'The URL of the button image for this payment method in the registration process. You may use any uploaded image on your website (click %s next to the field to select). If left blank, the default button image will be used.',
53 53
                 'event_espresso'
54 54
             ),
55
-            '<img src="' . admin_url('images/media-button-image.gif') . '">'
55
+            '<img src="'.admin_url('images/media-button-image.gif').'">'
56 56
         ); ?>
57 57
     </li>
58 58
     <li><strong><?php _e('Usable From', 'event_espresso'); ?></strong><br/>
Please login to merge, or discard this patch.
admin_pages/payments/templates/payment_log_details.template.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
                     <?php echo $payment_log->e(
66 66
                         'LOG_message',
67 67
                         'as_table'
68
-                    );// EEH_Template::layout_array_as_table($payment_log->content())?>
68
+                    ); // EEH_Template::layout_array_as_table($payment_log->content())?>
69 69
                 </td>
70 70
             </tr>
71 71
             </tbody>
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -36,17 +36,17 @@  discard block
 block discarded – undo
36 36
                 </th>
37 37
                 <td>
38 38
                     <?php
39
-                    if ($payment_log->object() instanceof EE_Transaction) {
40
-                        esc_html_e('Unknown', 'event_espresso');
41
-                    } else {
42
-                        echo $payment_method
43
-                        ? $payment_method->admin_name()
44
-                        : esc_html__(
45
-                            "No Longer Exists",
46
-                            'event_espresso'
47
-                        );
48
-                    }
49
-                    ?>
39
+					if ($payment_log->object() instanceof EE_Transaction) {
40
+						esc_html_e('Unknown', 'event_espresso');
41
+					} else {
42
+						echo $payment_method
43
+						? $payment_method->admin_name()
44
+						: esc_html__(
45
+							"No Longer Exists",
46
+							'event_espresso'
47
+						);
48
+					}
49
+					?>
50 50
 
51 51
                 </td>
52 52
             </tr>
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
                 </th>
70 70
                 <td>
71 71
                     <?php echo $payment_log->e(
72
-                        'LOG_message',
73
-                        'as_table'
74
-                    );// EEH_Template::layout_array_as_table($payment_log->content())?>
72
+						'LOG_message',
73
+						'as_table'
74
+					);// EEH_Template::layout_array_as_table($payment_log->content())?>
75 75
                 </td>
76 76
             </tr>
77 77
             </tbody>
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' . DS);
34
-        define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN . 'templates' . DS);
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' . DS);
34
+		define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN . 'templates' . DS);
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' . DS);
34
-        define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN . 'templates' . DS);
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'.DS);
34
+        define('EE_MAINTENANCE_TEMPLATE_PATH', EE_MAINTENANCE_ADMIN.'templates'.DS);
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.