Completed
Branch master (724475)
by
unknown
05:49
created
core/services/options/JsonWpOptionSerializableInterface.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
  */
18 18
 interface JsonWpOptionSerializableInterface extends JsonSerializableAndUnserializable
19 19
 {
20
-    /**
21
-     * Gets the value to use for wp_options.option_name. Note this is not static, so it can use object properties to
22
-     * determine what option name to use.
23
-     * @since 4.9.80.p
24
-     * @return string
25
-     */
26
-    public function getWpOptionName();
20
+	/**
21
+	 * Gets the value to use for wp_options.option_name. Note this is not static, so it can use object properties to
22
+	 * determine what option name to use.
23
+	 * @since 4.9.80.p
24
+	 * @return string
25
+	 */
26
+	public function getWpOptionName();
27 27
 }
28 28
 // End of file JsonWpOptionSerializableInterface.php
29 29
 // Location: EventEspresso\core\services\options/JsonWpOptionSerializableInterface.php
Please login to merge, or discard this patch.
admin/new/pricing/help_tabs/pricing_add_new_price_type.help_tab.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 <p><strong><?php esc_html_e('Add New Price Type', 'event_espresso'); ?></strong></p>
5 5
 <p>
6 6
 <?php printf(
7
-    esc_html__('This page allows you to create a new price type for %s.', 'event_espresso'),
8
-    Domain::brandName()
7
+	esc_html__('This page allows you to create a new price type for %s.', 'event_espresso'),
8
+	Domain::brandName()
9 9
 ); ?>
10 10
 </p>
11 11
 <ul>
Please login to merge, or discard this patch.
admin/new/pricing/help_tabs/pricing_edit_default_price.help_tab.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 <p><strong><?php esc_html_e('Edit Default Price', 'event_espresso'); ?></strong></p>
5 5
 <p>
6 6
 <?php printf(
7
-    esc_html__('This page allows you to edit a default price for %s.', 'event_espresso'),
8
-    Domain::brandName()
7
+	esc_html__('This page allows you to edit a default price for %s.', 'event_espresso'),
8
+	Domain::brandName()
9 9
 ); ?>
10 10
 </p>
11 11
 <ul>
Please login to merge, or discard this patch.
admin/new/pricing/help_tabs/pricing_edit_price_type.help_tab.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 <p><strong><?php esc_html_e('Edit Price Type', 'event_espresso'); ?></strong></p>
5 5
 <p>
6 6
 <?php printf(
7
-    esc_html__('This page allows you to edit a price type for %s.', 'event_espresso'),
8
-    Domain::brandName()
7
+	esc_html__('This page allows you to edit a price type for %s.', 'event_espresso'),
8
+	Domain::brandName()
9 9
 ); ?>
10 10
 </p>
11 11
 <ul>
Please login to merge, or discard this patch.
admin/new/pricing/help_tabs/pricing_add_new_default_price.help_tab.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 <p><strong><?php esc_html_e('Add New Default Price', 'event_espresso'); ?></strong></p>
5 5
 <p>
6 6
 <?php printf(
7
-    esc_html__('This page allows you to create a new default price for %s.', 'event_espresso'),
8
-    Domain::brandName()
7
+	esc_html__('This page allows you to create a new default price for %s.', 'event_espresso'),
8
+	Domain::brandName()
9 9
 ); ?>
10 10
 </p>
11 11
 <ul>
Please login to merge, or discard this patch.
core/domain/services/admin/ajax/WordpressHeartbeat.php 2 patches
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.
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -16,52 +16,52 @@
 block discarded – undo
16 16
  */
17 17
 class WordpressHeartbeat
18 18
 {
19
-    const RESPONSE_KEY_THANK_YOU_PAGE = 'espresso_thank_you_page';
19
+	const RESPONSE_KEY_THANK_YOU_PAGE = 'espresso_thank_you_page';
20 20
 
21
-    /**
22
-     * @var LoaderInterface $loader
23
-     */
24
-    protected $loader;
21
+	/**
22
+	 * @var LoaderInterface $loader
23
+	 */
24
+	protected $loader;
25 25
 
26
-    /**
27
-     * @var RequestInterface $request
28
-     */
29
-    protected $request;
26
+	/**
27
+	 * @var RequestInterface $request
28
+	 */
29
+	protected $request;
30 30
 
31 31
 
32
-    /**
33
-     * WordpressHeartbeat constructor.
34
-     *
35
-     * @param LoaderInterface  $loader
36
-     * @param RequestInterface $request
37
-     */
38
-    public function __construct(
39
-        LoaderInterface $loader,
40
-        RequestInterface $request
41
-    ) {
42
-        $this->loader = $loader;
43
-        $this->request = $request;
44
-        do_action('AHEE__EventEspresso_core_domain_services_admin_ajax_WordpressHeartbeat__constructor', $this);
45
-        add_action('AHEE__EE_System__core_loaded_and_ready', array($this, 'resolveRoutes'));
46
-    }
32
+	/**
33
+	 * WordpressHeartbeat constructor.
34
+	 *
35
+	 * @param LoaderInterface  $loader
36
+	 * @param RequestInterface $request
37
+	 */
38
+	public function __construct(
39
+		LoaderInterface $loader,
40
+		RequestInterface $request
41
+	) {
42
+		$this->loader = $loader;
43
+		$this->request = $request;
44
+		do_action('AHEE__EventEspresso_core_domain_services_admin_ajax_WordpressHeartbeat__constructor', $this);
45
+		add_action('AHEE__EE_System__core_loaded_and_ready', array($this, 'resolveRoutes'));
46
+	}
47 47
 
48 48
 
49
-    /**
50
-     * @since 4.9.76.p
51
-     * @throws InvalidClassException
52
-     */
53
-    public function resolveRoutes()
54
-    {
55
-        $screenID = $this->request->getRequestParam('screen_id');
56
-        $heartbeat_data = $this->request->getRequestParam('data', [], 'string', true);
57
-        if ($screenID === 'espresso_events') {
58
-            $this->loader->getShared(
59
-                'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat'
60
-            );
61
-        } elseif ($screenID === 'front' && ! empty($heartbeat_data[ self::RESPONSE_KEY_THANK_YOU_PAGE ])) {
62
-            $this->loader->getShared(
63
-                'EventEspresso\core\domain\services\admin\ajax\ThankYouPageIpnMonitor'
64
-            );
65
-        }
66
-    }
49
+	/**
50
+	 * @since 4.9.76.p
51
+	 * @throws InvalidClassException
52
+	 */
53
+	public function resolveRoutes()
54
+	{
55
+		$screenID = $this->request->getRequestParam('screen_id');
56
+		$heartbeat_data = $this->request->getRequestParam('data', [], 'string', true);
57
+		if ($screenID === 'espresso_events') {
58
+			$this->loader->getShared(
59
+				'EventEspresso\core\domain\services\admin\ajax\EventEditorHeartbeat'
60
+			);
61
+		} elseif ($screenID === 'front' && ! empty($heartbeat_data[ self::RESPONSE_KEY_THANK_YOU_PAGE ])) {
62
+			$this->loader->getShared(
63
+				'EventEspresso\core\domain\services\admin\ajax\ThankYouPageIpnMonitor'
64
+			);
65
+		}
66
+	}
67 67
 }
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.
admin_pages/registrations/Registrations_Admin_Page_Init.core.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,15 +23,15 @@
 block discarded – undo
23 23
     public function __construct()
24 24
     {
25 25
         do_action('AHEE_log', __FILE__, __FUNCTION__, '');
26
-        if (! defined('REG_PG_SLUG')) {
26
+        if ( ! defined('REG_PG_SLUG')) {
27 27
             define('REG_PG_SLUG', 'espresso_registrations');
28 28
             define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG)));
29
-            define('REG_ADMIN', EE_ADMIN_PAGES . 'registrations/');
30
-            define('REG_ADMIN_URL', admin_url('admin.php?page=' . REG_PG_SLUG));
31
-            define('REG_ASSETS_PATH', REG_ADMIN . 'assets/');
32
-            define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/');
33
-            define('REG_TEMPLATE_PATH', REG_ADMIN . 'templates/');
34
-            define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/');
29
+            define('REG_ADMIN', EE_ADMIN_PAGES.'registrations/');
30
+            define('REG_ADMIN_URL', admin_url('admin.php?page='.REG_PG_SLUG));
31
+            define('REG_ASSETS_PATH', REG_ADMIN.'assets/');
32
+            define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL.'registrations/assets/');
33
+            define('REG_TEMPLATE_PATH', REG_ADMIN.'templates/');
34
+            define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL.'registrations/templates/');
35 35
         }
36 36
 
37 37
         parent::__construct();
Please login to merge, or discard this patch.
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -13,48 +13,48 @@
 block discarded – undo
13 13
  */
14 14
 class Registrations_Admin_Page_Init extends EE_Admin_Page_CPT_Init
15 15
 {
16
-    /**
17
-     *        constructor
18
-     *
19
-     * @Constructor
20
-     * @access public
21
-     * @return void
22
-     */
23
-    public function __construct()
24
-    {
25
-        do_action('AHEE_log', __FILE__, __FUNCTION__, '');
26
-        if (! defined('REG_PG_SLUG')) {
27
-            define('REG_PG_SLUG', 'espresso_registrations');
28
-            define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG)));
29
-            define('REG_ADMIN', EE_ADMIN_PAGES . 'registrations/');
30
-            define('REG_ADMIN_URL', admin_url('admin.php?page=' . REG_PG_SLUG));
31
-            define('REG_ASSETS_PATH', REG_ADMIN . 'assets/');
32
-            define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/');
33
-            define('REG_TEMPLATE_PATH', REG_ADMIN . 'templates/');
34
-            define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/');
35
-        }
16
+	/**
17
+	 *        constructor
18
+	 *
19
+	 * @Constructor
20
+	 * @access public
21
+	 * @return void
22
+	 */
23
+	public function __construct()
24
+	{
25
+		do_action('AHEE_log', __FILE__, __FUNCTION__, '');
26
+		if (! defined('REG_PG_SLUG')) {
27
+			define('REG_PG_SLUG', 'espresso_registrations');
28
+			define('REG_PG_NAME', ucwords(str_replace('_', '', REG_PG_SLUG)));
29
+			define('REG_ADMIN', EE_ADMIN_PAGES . 'registrations/');
30
+			define('REG_ADMIN_URL', admin_url('admin.php?page=' . REG_PG_SLUG));
31
+			define('REG_ASSETS_PATH', REG_ADMIN . 'assets/');
32
+			define('REG_ASSETS_URL', EE_ADMIN_PAGES_URL . 'registrations/assets/');
33
+			define('REG_TEMPLATE_PATH', REG_ADMIN . 'templates/');
34
+			define('REG_TEMPLATE_URL', EE_ADMIN_PAGES_URL . 'registrations/templates/');
35
+		}
36 36
 
37
-        parent::__construct();
38
-    }
37
+		parent::__construct();
38
+	}
39 39
 
40 40
 
41
-    protected function _set_init_properties()
42
-    {
43
-        $this->label = esc_html__('Registrations Overview', 'event_espresso');
44
-    }
41
+	protected function _set_init_properties()
42
+	{
43
+		$this->label = esc_html__('Registrations Overview', 'event_espresso');
44
+	}
45 45
 
46 46
 
47
-    public function getMenuProperties(): array
48
-    {
49
-        return [
50
-            'menu_type'    => AdminMenuItem::TYPE_MENU_SUB_ITEM,
51
-            'menu_group'   => AdminMenuGroup::MENU_SLUG_MAIN,
52
-            'menu_order'   => 40,
53
-            'show_on_menu' => AdminMenuItem::DISPLAY_BLOG_ONLY,
54
-            'parent_slug'  => AdminMenuTopLevel::MENU_PARENT_ACTIVE,
55
-            'menu_slug'    => REG_PG_SLUG,
56
-            'menu_label'   => esc_html__('Registrations', 'event_espresso'),
57
-            'capability'   => 'ee_read_registrations',
58
-        ];
59
-    }
47
+	public function getMenuProperties(): array
48
+	{
49
+		return [
50
+			'menu_type'    => AdminMenuItem::TYPE_MENU_SUB_ITEM,
51
+			'menu_group'   => AdminMenuGroup::MENU_SLUG_MAIN,
52
+			'menu_order'   => 40,
53
+			'show_on_menu' => AdminMenuItem::DISPLAY_BLOG_ONLY,
54
+			'parent_slug'  => AdminMenuTopLevel::MENU_PARENT_ACTIVE,
55
+			'menu_slug'    => REG_PG_SLUG,
56
+			'menu_label'   => esc_html__('Registrations', 'event_espresso'),
57
+			'capability'   => 'ee_read_registrations',
58
+		];
59
+	}
60 60
 }
Please login to merge, or discard this patch.
core/services/bootstrap/BootstrapCore.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         // load interfaces
200 200
         espresso_load_required(
201 201
             'EEH_Autoloader',
202
-            EE_CORE . 'helpers/EEH_Autoloader.helper.php'
202
+            EE_CORE.'helpers/EEH_Autoloader.helper.php'
203 203
         );
204 204
         EEH_Autoloader::instance();
205 205
     }
@@ -213,13 +213,13 @@  discard block
 block discarded – undo
213 213
     protected function setAutoloadersForRequiredFiles()
214 214
     {
215 215
         // load interfaces
216
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'interfaces', true);
216
+        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE.'interfaces', true);
217 217
         // load helpers
218 218
         EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_HELPERS);
219 219
         // register legacy request stack classes just in case
220
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'request_stack/');
220
+        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE.'request_stack/');
221 221
         // register legacy middleware classes just in case
222
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'middleware/');
222
+        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE.'middleware/');
223 223
     }
224 224
 
225 225
 
Please login to merge, or discard this patch.
Indentation   +187 added lines, -187 removed lines patch added patch discarded remove patch
@@ -54,213 +54,213 @@
 block discarded – undo
54 54
  */
55 55
 class BootstrapCore
56 56
 {
57
-    private LoaderInterface $loader;
57
+	private LoaderInterface $loader;
58 58
 
59
-    protected RequestInterface $request;
59
+	protected RequestInterface $request;
60 60
 
61
-    protected ResponseInterface $response;
61
+	protected ResponseInterface $response;
62 62
 
63
-    protected RequestStackBuilder $request_stack_builder;
63
+	protected RequestStackBuilder $request_stack_builder;
64 64
 
65
-    protected RequestStack $request_stack;
65
+	protected RequestStack $request_stack;
66 66
 
67 67
 
68
-    /**
69
-     * BootstrapCore constructor.
70
-     */
71
-    public function __construct()
72
-    {
73
-        do_action('AHEE__EventEspresso_core_services_bootstrap_BootstrapCore___construct');
74
-        // construct request stack and run middleware apps as soon as all WP plugins are loaded
75
-        add_action('plugins_loaded', [$this, 'initialize'], 0);
76
-    }
68
+	/**
69
+	 * BootstrapCore constructor.
70
+	 */
71
+	public function __construct()
72
+	{
73
+		do_action('AHEE__EventEspresso_core_services_bootstrap_BootstrapCore___construct');
74
+		// construct request stack and run middleware apps as soon as all WP plugins are loaded
75
+		add_action('plugins_loaded', [$this, 'initialize'], 0);
76
+	}
77 77
 
78 78
 
79
-    /**
80
-     * @throws DomainException
81
-     * @throws EE_Error
82
-     * @throws Exception
83
-     * @throws InvalidArgumentException
84
-     * @throws InvalidClassException
85
-     * @throws InvalidDataTypeException
86
-     * @throws InvalidFilePathException
87
-     * @throws InvalidInterfaceException
88
-     * @throws InvalidRequestStackMiddlewareException
89
-     * @throws OutOfBoundsException
90
-     * @throws ReflectionException
91
-     * @throws Throwable
92
-     */
93
-    public function initialize()
94
-    {
95
-        $this->bootstrapDependencyInjectionContainer();
96
-        $this->bootstrapDomain();
97
-        $bootstrap_request = $this->bootstrapRequestResponseObjects();
98
-        add_action(
99
-            'EE_Load_Espresso_Core__handle_request__initialize_core_loading',
100
-            [$bootstrap_request, 'setupLegacyRequest']
101
-        );
102
-        $this->runRequestStack();
103
-    }
79
+	/**
80
+	 * @throws DomainException
81
+	 * @throws EE_Error
82
+	 * @throws Exception
83
+	 * @throws InvalidArgumentException
84
+	 * @throws InvalidClassException
85
+	 * @throws InvalidDataTypeException
86
+	 * @throws InvalidFilePathException
87
+	 * @throws InvalidInterfaceException
88
+	 * @throws InvalidRequestStackMiddlewareException
89
+	 * @throws OutOfBoundsException
90
+	 * @throws ReflectionException
91
+	 * @throws Throwable
92
+	 */
93
+	public function initialize()
94
+	{
95
+		$this->bootstrapDependencyInjectionContainer();
96
+		$this->bootstrapDomain();
97
+		$bootstrap_request = $this->bootstrapRequestResponseObjects();
98
+		add_action(
99
+			'EE_Load_Espresso_Core__handle_request__initialize_core_loading',
100
+			[$bootstrap_request, 'setupLegacyRequest']
101
+		);
102
+		$this->runRequestStack();
103
+	}
104 104
 
105 105
 
106
-    /**
107
-     * @throws ReflectionException
108
-     * @throws EE_Error
109
-     * @throws InvalidArgumentException
110
-     * @throws InvalidDataTypeException
111
-     * @throws InvalidInterfaceException
112
-     * @throws OutOfBoundsException
113
-     */
114
-    private function bootstrapDependencyInjectionContainer()
115
-    {
116
-        $bootstrap_di = new BootstrapDependencyInjectionContainer();
117
-        $bootstrap_di->buildLegacyDependencyInjectionContainer();
118
-        $bootstrap_di->buildLoader();
119
-        $registry       = $bootstrap_di->getRegistry();
120
-        $dependency_map = $bootstrap_di->getDependencyMap();
121
-        $dependency_map->initialize();
122
-        $registry->initialize();
123
-        $this->loader = $bootstrap_di->getLoader();
124
-    }
106
+	/**
107
+	 * @throws ReflectionException
108
+	 * @throws EE_Error
109
+	 * @throws InvalidArgumentException
110
+	 * @throws InvalidDataTypeException
111
+	 * @throws InvalidInterfaceException
112
+	 * @throws OutOfBoundsException
113
+	 */
114
+	private function bootstrapDependencyInjectionContainer()
115
+	{
116
+		$bootstrap_di = new BootstrapDependencyInjectionContainer();
117
+		$bootstrap_di->buildLegacyDependencyInjectionContainer();
118
+		$bootstrap_di->buildLoader();
119
+		$registry       = $bootstrap_di->getRegistry();
120
+		$dependency_map = $bootstrap_di->getDependencyMap();
121
+		$dependency_map->initialize();
122
+		$registry->initialize();
123
+		$this->loader = $bootstrap_di->getLoader();
124
+	}
125 125
 
126 126
 
127
-    /**
128
-     * configures the Domain object for core
129
-     *
130
-     * @return void
131
-     * @throws DomainException
132
-     * @throws InvalidArgumentException
133
-     * @throws InvalidDataTypeException
134
-     * @throws InvalidClassException
135
-     * @throws InvalidFilePathException
136
-     * @throws InvalidInterfaceException
137
-     */
138
-    private function bootstrapDomain()
139
-    {
140
-        DomainFactory::getEventEspressoCoreDomain();
141
-    }
127
+	/**
128
+	 * configures the Domain object for core
129
+	 *
130
+	 * @return void
131
+	 * @throws DomainException
132
+	 * @throws InvalidArgumentException
133
+	 * @throws InvalidDataTypeException
134
+	 * @throws InvalidClassException
135
+	 * @throws InvalidFilePathException
136
+	 * @throws InvalidInterfaceException
137
+	 */
138
+	private function bootstrapDomain()
139
+	{
140
+		DomainFactory::getEventEspressoCoreDomain();
141
+	}
142 142
 
143 143
 
144
-    /**
145
-     * sets up the request and response objects
146
-     *
147
-     * @return BootstrapRequestResponseObjects
148
-     * @throws InvalidArgumentException
149
-     */
150
-    private function bootstrapRequestResponseObjects(): BootstrapRequestResponseObjects
151
-    {
152
-        /** @var BootstrapRequestResponseObjects $bootstrap_request */
153
-        $bootstrap_request = $this->loader->getShared(
154
-            'EventEspresso\core\services\bootstrap\BootstrapRequestResponseObjects',
155
-            [$this->loader]
156
-        );
157
-        $bootstrap_request->buildRequestResponse();
158
-        $bootstrap_request->shareRequestResponse();
159
-        $this->request  = $this->loader->getShared('EventEspresso\core\services\request\Request');
160
-        $this->response = $this->loader->getShared('EventEspresso\core\services\request\Response');
161
-        return $bootstrap_request;
162
-    }
144
+	/**
145
+	 * sets up the request and response objects
146
+	 *
147
+	 * @return BootstrapRequestResponseObjects
148
+	 * @throws InvalidArgumentException
149
+	 */
150
+	private function bootstrapRequestResponseObjects(): BootstrapRequestResponseObjects
151
+	{
152
+		/** @var BootstrapRequestResponseObjects $bootstrap_request */
153
+		$bootstrap_request = $this->loader->getShared(
154
+			'EventEspresso\core\services\bootstrap\BootstrapRequestResponseObjects',
155
+			[$this->loader]
156
+		);
157
+		$bootstrap_request->buildRequestResponse();
158
+		$bootstrap_request->shareRequestResponse();
159
+		$this->request  = $this->loader->getShared('EventEspresso\core\services\request\Request');
160
+		$this->response = $this->loader->getShared('EventEspresso\core\services\request\Response');
161
+		return $bootstrap_request;
162
+	}
163 163
 
164 164
 
165
-    /**
166
-     * run_request_stack
167
-     * construct request stack and run middleware apps
168
-     *
169
-     * @throws EE_Error
170
-     * @throws Exception
171
-     * @throws Throwable
172
-     */
173
-    public function runRequestStack()
174
-    {
175
-        $this->loadAutoloader();
176
-        $this->setAutoloadersForRequiredFiles();
177
-        $this->request_stack_builder = $this->buildRequestStack();
178
-        $this->request_stack         = $this->request_stack_builder->resolve(
179
-            new RequestStackCoreApp()
180
-        );
181
-        $this->request_stack->handleRequest($this->request, $this->response);
182
-        $this->request_stack->handleResponse();
183
-    }
165
+	/**
166
+	 * run_request_stack
167
+	 * construct request stack and run middleware apps
168
+	 *
169
+	 * @throws EE_Error
170
+	 * @throws Exception
171
+	 * @throws Throwable
172
+	 */
173
+	public function runRequestStack()
174
+	{
175
+		$this->loadAutoloader();
176
+		$this->setAutoloadersForRequiredFiles();
177
+		$this->request_stack_builder = $this->buildRequestStack();
178
+		$this->request_stack         = $this->request_stack_builder->resolve(
179
+			new RequestStackCoreApp()
180
+		);
181
+		$this->request_stack->handleRequest($this->request, $this->response);
182
+		$this->request_stack->handleResponse();
183
+	}
184 184
 
185 185
 
186
-    /**
187
-     * load_autoloader
188
-     *
189
-     * @throws EE_Error
190
-     */
191
-    protected function loadAutoloader()
192
-    {
193
-        // load interfaces
194
-        espresso_load_required(
195
-            'EEH_Autoloader',
196
-            EE_CORE . 'helpers/EEH_Autoloader.helper.php'
197
-        );
198
-        EEH_Autoloader::instance();
199
-    }
186
+	/**
187
+	 * load_autoloader
188
+	 *
189
+	 * @throws EE_Error
190
+	 */
191
+	protected function loadAutoloader()
192
+	{
193
+		// load interfaces
194
+		espresso_load_required(
195
+			'EEH_Autoloader',
196
+			EE_CORE . 'helpers/EEH_Autoloader.helper.php'
197
+		);
198
+		EEH_Autoloader::instance();
199
+	}
200 200
 
201 201
 
202
-    /**
203
-     * load_required_files
204
-     *
205
-     * @throws EE_Error
206
-     */
207
-    protected function setAutoloadersForRequiredFiles()
208
-    {
209
-        // load interfaces
210
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'interfaces', true);
211
-        // load helpers
212
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_HELPERS);
213
-        // register legacy request stack classes just in case
214
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'request_stack/');
215
-        // register legacy middleware classes just in case
216
-        EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'middleware/');
217
-    }
202
+	/**
203
+	 * load_required_files
204
+	 *
205
+	 * @throws EE_Error
206
+	 */
207
+	protected function setAutoloadersForRequiredFiles()
208
+	{
209
+		// load interfaces
210
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'interfaces', true);
211
+		// load helpers
212
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_HELPERS);
213
+		// register legacy request stack classes just in case
214
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'request_stack/');
215
+		// register legacy middleware classes just in case
216
+		EEH_Autoloader::register_autoloaders_for_each_file_in_folder(EE_CORE . 'middleware/');
217
+	}
218 218
 
219 219
 
220
-    /**
221
-     * build_request_stack
222
-     *
223
-     * @return RequestStackBuilder
224
-     */
225
-    public function buildRequestStack(): RequestStackBuilder
226
-    {
227
-        $request_stack_builder = new RequestStackBuilder($this->loader);
228
-        /**
229
-         * ! IMPORTANT ! The middleware stack operates FILO : FIRST IN LAST OUT
230
-         * so items at the beginning of the final middleware stack will run last.
231
-         * First parameter is the middleware classname, second is an array of arguments
232
-         */
233
-        $stack_apps = apply_filters(
234
-            'FHEE__EventEspresso_core_services_bootstrap_BootstrapCore__buildRequestStack__stack_apps',
235
-            [
236
-                // first in last out
237
-                BotDetector::class                 => [],
238
-                DetectFileEditorRequest::class     => [],
239
-                PreProductionVersionWarning::class => [],
240
-                RecommendedVersions::class         => [],
241
-                DetectLogin::class                 => [],
242
-                // last in first out
243
-                SkipRequests::class                => [],
244
-            ]
245
-        );
246
-        // legacy filter for backwards compatibility
247
-        $stack_apps = apply_filters(
248
-            'FHEE__EE_Bootstrap__build_request_stack__stack_apps',
249
-            $stack_apps
250
-        );
251
-        // load middleware onto stack : FILO (First In Last Out)
252
-        // items at the beginning of the $stack_apps array will run last
253
-        foreach ((array) $stack_apps as $stack_app => $stack_app_args) {
254
-            $request_stack_builder->push([$stack_app, $stack_app_args]);
255
-        }
256
-        // finally, we'll add this on its own because we need it to always be part of the stack
257
-        // and we also need it to always run first because the rest of the system relies on it
258
-        $request_stack_builder->push(
259
-            [SetRequestTypeContextChecker::class, []]
260
-        );
261
-        return apply_filters(
262
-            'FHEE__EE_Bootstrap__build_request_stack__request_stack_builder',
263
-            $request_stack_builder
264
-        );
265
-    }
220
+	/**
221
+	 * build_request_stack
222
+	 *
223
+	 * @return RequestStackBuilder
224
+	 */
225
+	public function buildRequestStack(): RequestStackBuilder
226
+	{
227
+		$request_stack_builder = new RequestStackBuilder($this->loader);
228
+		/**
229
+		 * ! IMPORTANT ! The middleware stack operates FILO : FIRST IN LAST OUT
230
+		 * so items at the beginning of the final middleware stack will run last.
231
+		 * First parameter is the middleware classname, second is an array of arguments
232
+		 */
233
+		$stack_apps = apply_filters(
234
+			'FHEE__EventEspresso_core_services_bootstrap_BootstrapCore__buildRequestStack__stack_apps',
235
+			[
236
+				// first in last out
237
+				BotDetector::class                 => [],
238
+				DetectFileEditorRequest::class     => [],
239
+				PreProductionVersionWarning::class => [],
240
+				RecommendedVersions::class         => [],
241
+				DetectLogin::class                 => [],
242
+				// last in first out
243
+				SkipRequests::class                => [],
244
+			]
245
+		);
246
+		// legacy filter for backwards compatibility
247
+		$stack_apps = apply_filters(
248
+			'FHEE__EE_Bootstrap__build_request_stack__stack_apps',
249
+			$stack_apps
250
+		);
251
+		// load middleware onto stack : FILO (First In Last Out)
252
+		// items at the beginning of the $stack_apps array will run last
253
+		foreach ((array) $stack_apps as $stack_app => $stack_app_args) {
254
+			$request_stack_builder->push([$stack_app, $stack_app_args]);
255
+		}
256
+		// finally, we'll add this on its own because we need it to always be part of the stack
257
+		// and we also need it to always run first because the rest of the system relies on it
258
+		$request_stack_builder->push(
259
+			[SetRequestTypeContextChecker::class, []]
260
+		);
261
+		return apply_filters(
262
+			'FHEE__EE_Bootstrap__build_request_stack__request_stack_builder',
263
+			$request_stack_builder
264
+		);
265
+	}
266 266
 }
Please login to merge, or discard this patch.