Completed
Branch master (d65695)
by
unknown
04:25
created
core/domain/entities/admin/GraphQLData/CurrentUser.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class CurrentUser extends GraphQLData
14 14
 {
15
-    /**
16
-     * @param array $where_params
17
-     * @return array|null
18
-     * @since 5.0.0.p
19
-     */
20
-    public function getData(array $where_params = [])
21
-    {
22
-        $field_key = 'viewer';
23
-        $query = <<<QUERY
15
+	/**
16
+	 * @param array $where_params
17
+	 * @return array|null
18
+	 * @since 5.0.0.p
19
+	 */
20
+	public function getData(array $where_params = [])
21
+	{
22
+		$field_key = 'viewer';
23
+		$query = <<<QUERY
24 24
         query GET_CURRENT_USER {
25 25
             {$field_key} {
26 26
                 id
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
             }
39 39
         }
40 40
 QUERY;
41
-        $this->setParams([
42
-            'operation_name' => 'GET_CURRENT_USER',
43
-            'query'          => $query,
44
-        ]);
41
+		$this->setParams([
42
+			'operation_name' => 'GET_CURRENT_USER',
43
+			'query'          => $query,
44
+		]);
45 45
 
46
-        return $this->getQueryResponse($field_key, $where_params);
47
-    }
46
+		return $this->getQueryResponse($field_key, $where_params);
47
+	}
48 48
 }
Please login to merge, or discard this patch.
core/domain/entities/admin/GraphQLData/Tickets.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,15 +12,15 @@  discard block
 block discarded – undo
12 12
  */
13 13
 class Tickets extends GraphQLData
14 14
 {
15
-    /**
16
-     * @param array $where_params
17
-     * @return array|null
18
-     * @since 5.0.0.p
19
-     */
20
-    public function getData(array $where_params = [])
21
-    {
22
-        $field_key = lcfirst($this->namespace) . 'Tickets';
23
-        $query = <<<QUERY
15
+	/**
16
+	 * @param array $where_params
17
+	 * @return array|null
18
+	 * @since 5.0.0.p
19
+	 */
20
+	public function getData(array $where_params = [])
21
+	{
22
+		$field_key = lcfirst($this->namespace) . 'Tickets';
23
+		$query = <<<QUERY
24 24
         query GET_TICKETS(\$where: {$this->namespace}RootQueryTicketsConnectionWhereArgs, \$first: Int, \$last: Int ) {
25 25
             {$field_key}(where: \$where, first: \$first, last: \$last) {
26 26
                 nodes {
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
             }
58 58
         }
59 59
 QUERY;
60
-        $this->setParams([
61
-            'operation_name' => 'GET_TICKETS',
62
-            'variables'      => [
63
-                'first' => 100,
64
-            ],
65
-            'query'          => $query,
66
-        ]);
60
+		$this->setParams([
61
+			'operation_name' => 'GET_TICKETS',
62
+			'variables'      => [
63
+				'first' => 100,
64
+			],
65
+			'query'          => $query,
66
+		]);
67 67
 
68
-        return $this->getQueryResponse($field_key, $where_params);
69
-    }
68
+		return $this->getQueryResponse($field_key, $where_params);
69
+	}
70 70
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/data_nodes/domains/EventEditor.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -19,51 +19,51 @@
 block discarded – undo
19 19
  */
20 20
 class EventEditor extends JsonDataNode
21 21
 {
22
-    const NODE_NAME = 'eventEditor';
22
+	const NODE_NAME = 'eventEditor';
23 23
 
24 24
 
25
-    /**
26
-     * @var EventEditorGraphQLData
27
-     */
28
-    protected $event_editor_gql_data;
25
+	/**
26
+	 * @var EventEditorGraphQLData
27
+	 */
28
+	protected $event_editor_gql_data;
29 29
 
30 30
 
31
-    /**
32
-     * EventEditor JsonDataNode constructor.
33
-     *
34
-     * @param EventEditorGraphQLData $event_editor_gql_data
35
-     * @param JsonDataNodeValidator  $validator
36
-     */
37
-    public function __construct(
38
-        EventEditorGraphQLData $event_editor_gql_data,
39
-        JsonDataNodeValidator $validator
40
-    ) {
41
-        parent::__construct($validator);
42
-        $this->event_editor_gql_data = $event_editor_gql_data;
43
-        $this->setDomain(EventEditor::NODE_NAME);
44
-        $this->setNodeName(EventEditor::NODE_NAME);
45
-    }
31
+	/**
32
+	 * EventEditor JsonDataNode constructor.
33
+	 *
34
+	 * @param EventEditorGraphQLData $event_editor_gql_data
35
+	 * @param JsonDataNodeValidator  $validator
36
+	 */
37
+	public function __construct(
38
+		EventEditorGraphQLData $event_editor_gql_data,
39
+		JsonDataNodeValidator $validator
40
+	) {
41
+		parent::__construct($validator);
42
+		$this->event_editor_gql_data = $event_editor_gql_data;
43
+		$this->setDomain(EventEditor::NODE_NAME);
44
+		$this->setNodeName(EventEditor::NODE_NAME);
45
+	}
46 46
 
47 47
 
48
-    /**
49
-     * @throws EE_Error
50
-     * @throws ReflectionException
51
-     * @since 5.0.0.p
52
-     */
53
-    public function initialize()
54
-    {
55
-        global $post;
56
-        $eventId = isset($_REQUEST['post']) ? absint($_REQUEST['post']) : 0;
57
-        // if there's no event ID but there IS a WP Post... then use the Post ID
58
-        $use_post_id = $eventId === 0 && $post instanceof WP_Post && $post->post_type === 'espresso_events';
59
-        $eventId = $use_post_id ? $post->ID : $eventId;
60
-        $related_data = apply_filters(
61
-            'FHEE__EventEspresso_core_domain_entities_routing_data_nodes_domains_EventEditor__initialize__related_data',
62
-            $this->event_editor_gql_data->getData($eventId),
63
-            $eventId
64
-        );
65
-        foreach ($related_data as $key => $value) {
66
-            $this->addData($key, $value);
67
-        }
68
-    }
48
+	/**
49
+	 * @throws EE_Error
50
+	 * @throws ReflectionException
51
+	 * @since 5.0.0.p
52
+	 */
53
+	public function initialize()
54
+	{
55
+		global $post;
56
+		$eventId = isset($_REQUEST['post']) ? absint($_REQUEST['post']) : 0;
57
+		// if there's no event ID but there IS a WP Post... then use the Post ID
58
+		$use_post_id = $eventId === 0 && $post instanceof WP_Post && $post->post_type === 'espresso_events';
59
+		$eventId = $use_post_id ? $post->ID : $eventId;
60
+		$related_data = apply_filters(
61
+			'FHEE__EventEspresso_core_domain_entities_routing_data_nodes_domains_EventEditor__initialize__related_data',
62
+			$this->event_editor_gql_data->getData($eventId),
63
+			$eventId
64
+		);
65
+		foreach ($related_data as $key => $value) {
66
+			$this->addData($key, $value);
67
+		}
68
+	}
69 69
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/data_nodes/core/Config.php 1 patch
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -16,92 +16,92 @@
 block discarded – undo
16 16
  */
17 17
 class Config extends JsonDataNode
18 18
 {
19
-    const NODE_NAME = 'config';
19
+	const NODE_NAME = 'config';
20 20
 
21
-    /**
22
-     * @var CurrentUser $current_user
23
-     */
24
-    private $current_user;
21
+	/**
22
+	 * @var CurrentUser $current_user
23
+	 */
24
+	private $current_user;
25 25
 
26
-    /**
27
-     * @var EspressoCoreDomain $core_domain
28
-     */
29
-    private $core_domain;
26
+	/**
27
+	 * @var EspressoCoreDomain $core_domain
28
+	 */
29
+	private $core_domain;
30 30
 
31
-    /**
32
-     * @var GeneralSettings $general_settings
33
-     */
34
-    private $general_settings;
31
+	/**
32
+	 * @var GeneralSettings $general_settings
33
+	 */
34
+	private $general_settings;
35 35
 
36
-    /**
37
-     * @var Locale $locale
38
-     */
39
-    private $locale;
36
+	/**
37
+	 * @var Locale $locale
38
+	 */
39
+	private $locale;
40 40
 
41
-    /**
42
-     * @var SiteCurrency $site_currency
43
-     */
44
-    private $site_currency;
41
+	/**
42
+	 * @var SiteCurrency $site_currency
43
+	 */
44
+	private $site_currency;
45 45
 
46
-    /**
47
-     * @var SitePermissions $site_permissions
48
-     */
49
-    private $site_permissions;
46
+	/**
47
+	 * @var SitePermissions $site_permissions
48
+	 */
49
+	private $site_permissions;
50 50
 
51
-    /**
52
-     * @var SiteUrls $site_urls
53
-     */
54
-    private $site_urls;
51
+	/**
52
+	 * @var SiteUrls $site_urls
53
+	 */
54
+	private $site_urls;
55 55
 
56 56
 
57
-    /**
58
-     * JsonDataNode constructor.
59
-     *
60
-     * @param CurrentUser        $current_user
61
-     * @param EspressoCoreDomain $core_domain
62
-     * @param GeneralSettings    $general_settings
63
-     * @param Locale $locale
64
-     * @param SiteCurrency $site_currency
65
-     * @param SitePermissions $site_permissions
66
-     * @param SiteUrls $site_urls
67
-     * @param JsonDataNodeValidator $validator
68
-     */
69
-    public function __construct(
70
-        CurrentUser $current_user,
71
-        EspressoCoreDomain $core_domain,
72
-        GeneralSettings $general_settings,
73
-        Locale $locale,
74
-        SiteCurrency $site_currency,
75
-        SitePermissions $site_permissions,
76
-        SiteUrls $site_urls,
77
-        JsonDataNodeValidator $validator
78
-    ) {
79
-        parent::__construct($validator);
80
-        $this->current_user = $current_user;
81
-        $this->core_domain = $core_domain;
82
-        $this->general_settings = $general_settings;
83
-        $this->locale = $locale;
84
-        $this->site_currency = $site_currency;
85
-        $this->site_permissions = $site_permissions;
86
-        $this->site_urls = $site_urls;
87
-        $this->setNodeName(Config::NODE_NAME);
88
-    }
57
+	/**
58
+	 * JsonDataNode constructor.
59
+	 *
60
+	 * @param CurrentUser        $current_user
61
+	 * @param EspressoCoreDomain $core_domain
62
+	 * @param GeneralSettings    $general_settings
63
+	 * @param Locale $locale
64
+	 * @param SiteCurrency $site_currency
65
+	 * @param SitePermissions $site_permissions
66
+	 * @param SiteUrls $site_urls
67
+	 * @param JsonDataNodeValidator $validator
68
+	 */
69
+	public function __construct(
70
+		CurrentUser $current_user,
71
+		EspressoCoreDomain $core_domain,
72
+		GeneralSettings $general_settings,
73
+		Locale $locale,
74
+		SiteCurrency $site_currency,
75
+		SitePermissions $site_permissions,
76
+		SiteUrls $site_urls,
77
+		JsonDataNodeValidator $validator
78
+	) {
79
+		parent::__construct($validator);
80
+		$this->current_user = $current_user;
81
+		$this->core_domain = $core_domain;
82
+		$this->general_settings = $general_settings;
83
+		$this->locale = $locale;
84
+		$this->site_currency = $site_currency;
85
+		$this->site_permissions = $site_permissions;
86
+		$this->site_urls = $site_urls;
87
+		$this->setNodeName(Config::NODE_NAME);
88
+	}
89 89
 
90 90
 
91
-    /**
92
-     * @throws DomainException
93
-     * @since 5.0.0.p
94
-     */
95
-    public function initialize()
96
-    {
97
-        $this->addDataNode($this->core_domain);
98
-        $this->addDataNode($this->current_user);
99
-        $this->addDataNode($this->general_settings);
100
-        $this->addDataNode($this->locale);
101
-        $this->addDataNode($this->site_currency);
102
-        $this->addDataNode($this->site_permissions);
103
-        $this->addDataNode($this->site_urls);
104
-        $this->addData('wp_debug', WP_DEBUG);
105
-        $this->setInitialized(true);
106
-    }
91
+	/**
92
+	 * @throws DomainException
93
+	 * @since 5.0.0.p
94
+	 */
95
+	public function initialize()
96
+	{
97
+		$this->addDataNode($this->core_domain);
98
+		$this->addDataNode($this->current_user);
99
+		$this->addDataNode($this->general_settings);
100
+		$this->addDataNode($this->locale);
101
+		$this->addDataNode($this->site_currency);
102
+		$this->addDataNode($this->site_permissions);
103
+		$this->addDataNode($this->site_urls);
104
+		$this->addData('wp_debug', WP_DEBUG);
105
+		$this->setInitialized(true);
106
+	}
107 107
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/data_nodes/core/SiteUrls.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -15,26 +15,26 @@
 block discarded – undo
15 15
  */
16 16
 class SiteUrls extends JsonDataNode
17 17
 {
18
-    const NODE_NAME = 'siteUrls';
18
+	const NODE_NAME = 'siteUrls';
19 19
 
20 20
 
21
-    /**
22
-     * @param JsonDataNodeValidator $validator
23
-     */
24
-    public function __construct(JsonDataNodeValidator $validator)
25
-    {
26
-        parent::__construct($validator);
27
-        $this->setNodeName(SiteUrls::NODE_NAME);
28
-    }
21
+	/**
22
+	 * @param JsonDataNodeValidator $validator
23
+	 */
24
+	public function __construct(JsonDataNodeValidator $validator)
25
+	{
26
+		parent::__construct($validator);
27
+		$this->setNodeName(SiteUrls::NODE_NAME);
28
+	}
29 29
 
30 30
 
31
-    /**
32
-     * @since 5.0.0.p
33
-     */
34
-    public function initialize()
35
-    {
36
-        $this->addData('admin', admin_url('/'));
37
-        $this->addData('home', site_url('/'));
38
-        $this->setInitialized(true);
39
-    }
31
+	/**
32
+	 * @since 5.0.0.p
33
+	 */
34
+	public function initialize()
35
+	{
36
+		$this->addData('admin', admin_url('/'));
37
+		$this->addData('home', site_url('/'));
38
+		$this->setInitialized(true);
39
+	}
40 40
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/data_nodes/core/Api.php 1 patch
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -18,38 +18,38 @@
 block discarded – undo
18 18
  */
19 19
 class Api extends JsonDataNode
20 20
 {
21
-    const NODE_NAME = 'api';
22
-
23
-
24
-    /**
25
-     * @param JsonDataNodeValidator $validator
26
-     */
27
-    public function __construct(JsonDataNodeValidator $validator)
28
-    {
29
-        parent::__construct($validator);
30
-        $this->setNodeName(Api::NODE_NAME);
31
-    }
32
-
33
-
34
-    /**
35
-     * @throws DomainException
36
-     * @since 5.0.0.p
37
-     */
38
-    public function initialize()
39
-    {
40
-        $this->addData('restApiNonce', wp_create_nonce('wp_rest'));
41
-        $this->addData('restApiBaseUrl', rest_url());
42
-        $this->addData('restApiRouteUrl', rest_url('ee/v4.8.36/'));
43
-        $this->addData('restApiCollectionEndpoints', EED_Core_Rest_Api::getCollectionRoutesIndexedByModelName());
44
-        $this->addData('restApiPrimaryKeys', EED_Core_Rest_Api::getPrimaryKeyNamesIndexedByModelName());
45
-
46
-        // route can be something like 'graphql'
47
-        $route = trim(Router::$route, '/');
48
-        // make sure we are dealing with sane folks
49
-        $has_pretty_permalinks = (bool) get_option('permalink_structure');
50
-        // if pretty permalinks, use '/graphql' otherwise '?graphql=1'
51
-        $graphqlEndpoint = $has_pretty_permalinks ? site_url($route) : add_query_arg($route, 1, site_url());
52
-        $this->addData('graphqlEndpoint', esc_url($graphqlEndpoint));
53
-        $this->setInitialized(true);
54
-    }
21
+	const NODE_NAME = 'api';
22
+
23
+
24
+	/**
25
+	 * @param JsonDataNodeValidator $validator
26
+	 */
27
+	public function __construct(JsonDataNodeValidator $validator)
28
+	{
29
+		parent::__construct($validator);
30
+		$this->setNodeName(Api::NODE_NAME);
31
+	}
32
+
33
+
34
+	/**
35
+	 * @throws DomainException
36
+	 * @since 5.0.0.p
37
+	 */
38
+	public function initialize()
39
+	{
40
+		$this->addData('restApiNonce', wp_create_nonce('wp_rest'));
41
+		$this->addData('restApiBaseUrl', rest_url());
42
+		$this->addData('restApiRouteUrl', rest_url('ee/v4.8.36/'));
43
+		$this->addData('restApiCollectionEndpoints', EED_Core_Rest_Api::getCollectionRoutesIndexedByModelName());
44
+		$this->addData('restApiPrimaryKeys', EED_Core_Rest_Api::getPrimaryKeyNamesIndexedByModelName());
45
+
46
+		// route can be something like 'graphql'
47
+		$route = trim(Router::$route, '/');
48
+		// make sure we are dealing with sane folks
49
+		$has_pretty_permalinks = (bool) get_option('permalink_structure');
50
+		// if pretty permalinks, use '/graphql' otherwise '?graphql=1'
51
+		$graphqlEndpoint = $has_pretty_permalinks ? site_url($route) : add_query_arg($route, 1, site_url());
52
+		$this->addData('graphqlEndpoint', esc_url($graphqlEndpoint));
53
+		$this->setInitialized(true);
54
+	}
55 55
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/data_nodes/EventEspressoData.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -20,49 +20,49 @@
 block discarded – undo
20 20
  */
21 21
 class EventEspressoData extends PrimaryJsonDataNode
22 22
 {
23
-    const NODE_NAME = 'eventEspressoData';
23
+	const NODE_NAME = 'eventEspressoData';
24 24
 
25
-    /**
26
-     * @var Api $api
27
-     */
28
-    private $api;
25
+	/**
26
+	 * @var Api $api
27
+	 */
28
+	private $api;
29 29
 
30
-    /**
31
-     * @var Config $config
32
-     */
33
-    private $config;
30
+	/**
31
+	 * @var Config $config
32
+	 */
33
+	private $config;
34 34
 
35
-    /**
36
-     * @var JedLocaleData $jed_locale
37
-     */
38
-    private $jed_locale;
35
+	/**
36
+	 * @var JedLocaleData $jed_locale
37
+	 */
38
+	private $jed_locale;
39 39
 
40 40
 
41
-    /**
42
-     * @param Api $api
43
-     * @param Config $config
44
-     * @param JedLocaleData         $jed_locale
45
-     * @param JsonDataNodeValidator $validator
46
-     */
47
-    public function __construct(Api $api, Config $config, JedLocaleData $jed_locale, JsonDataNodeValidator $validator)
48
-    {
49
-        parent::__construct($validator);
50
-        $this->api = $api;
51
-        $this->config = $config;
52
-        $this->jed_locale = $jed_locale;
53
-        $this->setNodeName(EventEspressoData::NODE_NAME);
54
-    }
41
+	/**
42
+	 * @param Api $api
43
+	 * @param Config $config
44
+	 * @param JedLocaleData         $jed_locale
45
+	 * @param JsonDataNodeValidator $validator
46
+	 */
47
+	public function __construct(Api $api, Config $config, JedLocaleData $jed_locale, JsonDataNodeValidator $validator)
48
+	{
49
+		parent::__construct($validator);
50
+		$this->api = $api;
51
+		$this->config = $config;
52
+		$this->jed_locale = $jed_locale;
53
+		$this->setNodeName(EventEspressoData::NODE_NAME);
54
+	}
55 55
 
56 56
 
57
-    /**
58
-     * @throws DomainException
59
-     * @since 5.0.0.p
60
-     */
61
-    public function initialize()
62
-    {
63
-        $this->addDataNode($this->api);
64
-        $this->addDataNode($this->config);
65
-        $this->addData('i18n', $this->jed_locale->getData(Domain::TEXT_DOMAIN));
66
-        $this->setInitialized(true);
67
-    }
57
+	/**
58
+	 * @throws DomainException
59
+	 * @since 5.0.0.p
60
+	 */
61
+	public function initialize()
62
+	{
63
+		$this->addDataNode($this->api);
64
+		$this->addDataNode($this->config);
65
+		$this->addData('i18n', $this->jed_locale->getData(Domain::TEXT_DOMAIN));
66
+		$this->setInitialized(true);
67
+	}
68 68
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/handlers/admin/EspressoEventsAdmin.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -14,36 +14,36 @@
 block discarded – undo
14 14
  */
15 15
 class EspressoEventsAdmin extends AdminRoute
16 16
 {
17
-    /**
18
-     * returns true if the current request matches this route
19
-     *
20
-     * @return bool
21
-     * @since   5.0.0.p
22
-     */
23
-    public function matchesCurrentRequest(): bool
24
-    {
25
-        global $pagenow;
26
-        return parent::matchesCurrentRequest()
27
-               && $pagenow
28
-               && $pagenow === 'admin.php'
29
-               && $this->request->getRequestParam('page') === 'espresso_events';
30
-    }
17
+	/**
18
+	 * returns true if the current request matches this route
19
+	 *
20
+	 * @return bool
21
+	 * @since   5.0.0.p
22
+	 */
23
+	public function matchesCurrentRequest(): bool
24
+	{
25
+		global $pagenow;
26
+		return parent::matchesCurrentRequest()
27
+			   && $pagenow
28
+			   && $pagenow === 'admin.php'
29
+			   && $this->request->getRequestParam('page') === 'espresso_events';
30
+	}
31 31
 
32 32
 
33
-    /**
34
-     * @since 5.0.0.p
35
-     */
36
-    protected function registerDependencies()
37
-    {
38
-        $this->dependency_map->registerDependencies(
39
-            'EventEspresso\core\domain\services\admin\events\default_settings\AdvancedEditorAdminFormSection',
40
-            AdminRoute::getDefaultDependencies()
41
-        );
42
-        $this->dependency_map->registerDependencies(
43
-            'EventEspresso\core\services\admin\AdminListTableFilters',
44
-            [
45
-                'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
46
-            ]
47
-        );
48
-    }
33
+	/**
34
+	 * @since 5.0.0.p
35
+	 */
36
+	protected function registerDependencies()
37
+	{
38
+		$this->dependency_map->registerDependencies(
39
+			'EventEspresso\core\domain\services\admin\events\default_settings\AdvancedEditorAdminFormSection',
40
+			AdminRoute::getDefaultDependencies()
41
+		);
42
+		$this->dependency_map->registerDependencies(
43
+			'EventEspresso\core\services\admin\AdminListTableFilters',
44
+			[
45
+				'EventEspresso\core\services\request\Request' => EE_Dependency_Map::load_from_cache,
46
+			]
47
+		);
48
+	}
49 49
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/handlers/admin/ActivationRequests.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -14,43 +14,43 @@
 block discarded – undo
14 14
  */
15 15
 class ActivationRequests extends PrimaryRoute
16 16
 {
17
-    /**
18
-     * returns true if the current request matches this route
19
-     *
20
-     * @return bool
21
-     * @since   5.0.0.p
22
-     */
23
-    public function matchesCurrentRequest(): bool
24
-    {
25
-        return $this->request->isActivation();
26
-    }
17
+	/**
18
+	 * returns true if the current request matches this route
19
+	 *
20
+	 * @return bool
21
+	 * @since   5.0.0.p
22
+	 */
23
+	public function matchesCurrentRequest(): bool
24
+	{
25
+		return $this->request->isActivation();
26
+	}
27 27
 
28 28
 
29
-    /**
30
-     * @since 5.0.0.p
31
-     */
32
-    protected function registerDependencies()
33
-    {
34
-        $this->dependency_map->registerDependencies(
35
-            'EventEspresso\core\domain\entities\routing\handlers\admin\AdminRoute',
36
-            AdminRoute::getDefaultDependencies()
37
-        );
38
-        $this->dependency_map->registerDependencies(
39
-            'EventEspresso\core\domain\entities\routing\handlers\admin\WordPressPluginsPage',
40
-            AdminRoute::getDefaultDependencies()
41
-        );
42
-    }
29
+	/**
30
+	 * @since 5.0.0.p
31
+	 */
32
+	protected function registerDependencies()
33
+	{
34
+		$this->dependency_map->registerDependencies(
35
+			'EventEspresso\core\domain\entities\routing\handlers\admin\AdminRoute',
36
+			AdminRoute::getDefaultDependencies()
37
+		);
38
+		$this->dependency_map->registerDependencies(
39
+			'EventEspresso\core\domain\entities\routing\handlers\admin\WordPressPluginsPage',
40
+			AdminRoute::getDefaultDependencies()
41
+		);
42
+	}
43 43
 
44 44
 
45
-    /**
46
-     * implements logic required to run during request
47
-     *
48
-     * @return bool
49
-     * @since   5.0.0.p
50
-     */
51
-    protected function requestHandler(): bool
52
-    {
53
-        $this->setRouteRequestType(PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION);
54
-        return true;
55
-    }
45
+	/**
46
+	 * implements logic required to run during request
47
+	 *
48
+	 * @return bool
49
+	 * @since   5.0.0.p
50
+	 */
51
+	protected function requestHandler(): bool
52
+	{
53
+		$this->setRouteRequestType(PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION);
54
+		return true;
55
+	}
56 56
 }
Please login to merge, or discard this patch.