Completed
Branch EDTR/input-labels (73d1b5)
by
unknown
11:26 queued 01:08
created
domain/entities/routing/specifications/admin/WordPressPostTypeEditor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
  */
16 16
 class WordPressPostTypeEditor extends RouteMatchSpecification
17 17
 {
18
-    /**
19
-     * returns true if current request matches specification
20
-     *
21
-     * @since 4.9.71.p
22
-     * @return boolean
23
-     */
24
-    public function isMatchingRoute()
25
-    {
26
-        global $pagenow;
27
-        return $pagenow && ($pagenow === 'post.php' || $pagenow === 'post-new.php');
28
-    }
18
+	/**
19
+	 * returns true if current request matches specification
20
+	 *
21
+	 * @since 4.9.71.p
22
+	 * @return boolean
23
+	 */
24
+	public function isMatchingRoute()
25
+	{
26
+		global $pagenow;
27
+		return $pagenow && ($pagenow === 'post.php' || $pagenow === 'post-new.php');
28
+	}
29 29
 }
Please login to merge, or discard this patch.
domain/entities/routing/specifications/admin/WordPressPageEditorAddNew.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -14,17 +14,17 @@
 block discarded – undo
14 14
  */
15 15
 class WordPressPageEditorAddNew extends RouteMatchSpecification
16 16
 {
17
-    /**
18
-     * returns true if current request matches specification
19
-     *
20
-     * @since 4.9.71.p
21
-     * @return boolean
22
-     */
23
-    public function isMatchingRoute()
24
-    {
25
-        global $pagenow;
26
-        return $pagenow
27
-               && $pagenow === 'post-new.php'
28
-               && $this->request->getRequestParam('post_type', 'post') === 'page';
29
-    }
17
+	/**
18
+	 * returns true if current request matches specification
19
+	 *
20
+	 * @since 4.9.71.p
21
+	 * @return boolean
22
+	 */
23
+	public function isMatchingRoute()
24
+	{
25
+		global $pagenow;
26
+		return $pagenow
27
+			   && $pagenow === 'post-new.php'
28
+			   && $this->request->getRequestParam('post_type', 'post') === 'page';
29
+	}
30 30
 }
Please login to merge, or discard this patch.
entities/routing/specifications/admin/EspressoStandardPostTypeEditor.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -15,21 +15,21 @@
 block discarded – undo
15 15
 class EspressoStandardPostTypeEditor extends RouteMatchSpecification
16 16
 {
17 17
 
18
-    /**
19
-     * returns true if current request matches specification
20
-     *
21
-     * @since 4.9.71.p
22
-     * @return boolean
23
-     */
24
-    public function isMatchingRoute()
25
-    {
26
-        global $pagenow;
27
-        return $pagenow
28
-               && $pagenow === 'admin.php'
29
-               && $this->request->getMatch('espresso_*') !== false
30
-               && (
31
-                   $this->request->getRequestParam('action') === 'edit'
32
-                   || $this->request->getRequestParam('action') === 'create_new'
33
-               );
34
-    }
18
+	/**
19
+	 * returns true if current request matches specification
20
+	 *
21
+	 * @since 4.9.71.p
22
+	 * @return boolean
23
+	 */
24
+	public function isMatchingRoute()
25
+	{
26
+		global $pagenow;
27
+		return $pagenow
28
+			   && $pagenow === 'admin.php'
29
+			   && $this->request->getMatch('espresso_*') !== false
30
+			   && (
31
+				   $this->request->getRequestParam('action') === 'edit'
32
+				   || $this->request->getRequestParam('action') === 'create_new'
33
+			   );
34
+	}
35 35
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/specifications/admin/WordPressPluginsPage.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,12 +15,12 @@
 block discarded – undo
15 15
 class WordPressPluginsPage extends RouteMatchSpecification
16 16
 {
17 17
 
18
-    /**
19
-     * @inheritDoc
20
-     */
21
-    public function isMatchingRoute()
22
-    {
23
-        global $pagenow;
24
-        return $this->request->isAdmin() && $pagenow && $pagenow === 'plugins.php';
25
-    }
18
+	/**
19
+	 * @inheritDoc
20
+	 */
21
+	public function isMatchingRoute()
22
+	{
23
+		global $pagenow;
24
+		return $this->request->isAdmin() && $pagenow && $pagenow === 'plugins.php';
25
+	}
26 26
 }
Please login to merge, or discard this patch.
entities/routing/specifications/admin/EspressoAttendeePostTypeEditor.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -14,18 +14,18 @@
 block discarded – undo
14 14
  */
15 15
 class EspressoAttendeePostTypeEditor extends RouteMatchSpecification
16 16
 {
17
-    /**
18
-     * returns true if current request matches specification
19
-     *
20
-     * @since 4.9.71.p
21
-     * @return boolean
22
-     */
23
-    public function isMatchingRoute()
24
-    {
25
-        global $pagenow;
26
-        return $pagenow
27
-               && $pagenow === 'admin.php'
28
-               && $this->request->getRequestParam('page') === 'espresso_registrations'
29
-               && $this->request->getRequestParam('action') === 'edit_attendee';
30
-    }
17
+	/**
18
+	 * returns true if current request matches specification
19
+	 *
20
+	 * @since 4.9.71.p
21
+	 * @return boolean
22
+	 */
23
+	public function isMatchingRoute()
24
+	{
25
+		global $pagenow;
26
+		return $pagenow
27
+			   && $pagenow === 'admin.php'
28
+			   && $this->request->getRequestParam('page') === 'espresso_registrations'
29
+			   && $this->request->getRequestParam('action') === 'edit_attendee';
30
+	}
31 31
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/specifications/admin/WordPressPageEditor.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -19,21 +19,21 @@
 block discarded – undo
19 19
 class WordPressPageEditor extends MatchAnyRouteSpecification
20 20
 {
21 21
 
22
-    /**
23
-     * WordPressPostsEditor constructor.
24
-     *
25
-     * @param WordPressPageEditorEdit   $edit_page_route_match
26
-     * @param WordPressPageEditorAddNew $create_page_route_match
27
-     * @param RequestInterface          $request
28
-     */
29
-    public function __construct(
30
-        WordPressPageEditorEdit $edit_page_route_match,
31
-        WordPressPageEditorAddNew $create_page_route_match,
32
-        RequestInterface $request
33
-    ) {
34
-        parent::__construct(
35
-            array($edit_page_route_match, $create_page_route_match),
36
-            $request
37
-        );
38
-    }
22
+	/**
23
+	 * WordPressPostsEditor constructor.
24
+	 *
25
+	 * @param WordPressPageEditorEdit   $edit_page_route_match
26
+	 * @param WordPressPageEditorAddNew $create_page_route_match
27
+	 * @param RequestInterface          $request
28
+	 */
29
+	public function __construct(
30
+		WordPressPageEditorEdit $edit_page_route_match,
31
+		WordPressPageEditorAddNew $create_page_route_match,
32
+		RequestInterface $request
33
+	) {
34
+		parent::__construct(
35
+			array($edit_page_route_match, $create_page_route_match),
36
+			$request
37
+		);
38
+	}
39 39
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/handlers/admin/EspressoEventEditor.php 1 patch
Indentation   +113 added lines, -113 removed lines patch added patch discarded remove patch
@@ -16,121 +16,121 @@
 block discarded – undo
16 16
 class EspressoEventEditor extends Route
17 17
 {
18 18
 
19
-    /**
20
-     * returns true if the current request matches this route
21
-     *
22
-     * @return bool
23
-     * @since   $VID:$
24
-     */
25
-    public function matchesCurrentRequest()
26
-    {
27
-        global $pagenow;
28
-        return $pagenow
29
-               && $pagenow === 'admin.php'
30
-               && $this->request->isAdmin()
31
-               && $this->request->getRequestParam('page') === 'espresso_events'
32
-               && (
33
-                   $this->request->getRequestParam('action') === 'create_new'
34
-                   || $this->request->getRequestParam('action') === 'edit'
35
-               );
36
-    }
19
+	/**
20
+	 * returns true if the current request matches this route
21
+	 *
22
+	 * @return bool
23
+	 * @since   $VID:$
24
+	 */
25
+	public function matchesCurrentRequest()
26
+	{
27
+		global $pagenow;
28
+		return $pagenow
29
+			   && $pagenow === 'admin.php'
30
+			   && $this->request->isAdmin()
31
+			   && $this->request->getRequestParam('page') === 'espresso_events'
32
+			   && (
33
+				   $this->request->getRequestParam('action') === 'create_new'
34
+				   || $this->request->getRequestParam('action') === 'edit'
35
+			   );
36
+	}
37 37
 
38 38
 
39
-    /**
40
-     * @since $VID:$
41
-     */
42
-    protected function registerDependencies()
43
-    {
44
-        $this->dependency_map->registerDependencies(
45
-            'EventEspresso\core\domain\services\assets\EspressoEditorAssetManager',
46
-            [
47
-                'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
48
-                'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
49
-                'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
50
-            ]
51
-        );
52
-        $this->dependency_map->registerDependencies(
53
-            'EventEspresso\core\domain\services\admin\events\editor\EventEditor',
54
-            [
55
-                'EE_Admin_Config'                                                               => EE_Dependency_Map::load_from_cache,
56
-                'EE_Event'                                                                      => EE_Dependency_Map::not_registered,
57
-                'EventEspresso\core\domain\entities\admin\GraphQLData\CurrentUser'              =>
58
-                    EE_Dependency_Map::not_registered,
59
-                'EventEspresso\core\domain\services\admin\events\editor\EventEditorGraphQLData' =>
60
-                    EE_Dependency_Map::load_from_cache,
61
-                'EventEspresso\core\domain\entities\admin\GraphQLData\GeneralSettings'          =>
62
-                    EE_Dependency_Map::load_from_cache,
63
-                'EventEspresso\core\services\assets\JedLocaleData'                              => EE_Dependency_Map::load_from_cache,
64
-            ]
65
-        );
66
-        $this->dependency_map->registerDependencies(
67
-            'EventEspresso\core\domain\services\admin\events\default_settings\AdvancedEditorAdminFormSection',
68
-            ['EE_Admin_Config' => EE_Dependency_Map::load_from_cache]
69
-        );
70
-        $this->dependency_map->registerDependencies(
71
-            'EventEspresso\core\domain\services\admin\events\editor\EventEditorGraphQLData',
72
-            [
73
-                'EventEspresso\core\domain\entities\admin\GraphQLData\Datetimes'                 => EE_Dependency_Map::load_from_cache,
74
-                'EventEspresso\core\domain\entities\admin\GraphQLData\Prices'                    => EE_Dependency_Map::load_from_cache,
75
-                'EventEspresso\core\domain\entities\admin\GraphQLData\PriceTypes'                => EE_Dependency_Map::load_from_cache,
76
-                'EventEspresso\core\domain\entities\admin\GraphQLData\Tickets'                   => EE_Dependency_Map::load_from_cache,
77
-                'EventEspresso\core\domain\services\admin\events\editor\NewEventDefaultEntities' => EE_Dependency_Map::load_from_cache,
78
-                'EventEspresso\core\domain\services\admin\events\editor\EventEntityRelations'    => EE_Dependency_Map::load_from_cache,
79
-            ]
80
-        );
81
-        $this->dependency_map->registerDependencies(
82
-            'EventEspresso\core\domain\services\admin\events\editor\EventEntityRelations',
83
-            [
84
-                'EEM_Datetime'   => EE_Dependency_Map::load_from_cache,
85
-                'EEM_Event'      => EE_Dependency_Map::load_from_cache,
86
-                'EEM_Price'      => EE_Dependency_Map::load_from_cache,
87
-                'EEM_Price_Type' => EE_Dependency_Map::load_from_cache,
88
-                'EEM_Ticket'     => EE_Dependency_Map::load_from_cache,
89
-            ]
90
-        );
91
-        $this->dependency_map->registerDependencies(
92
-            'EventEspresso\core\domain\services\admin\events\editor\NewEventDefaultEntities',
93
-            [
94
-                'EEM_Datetime'                                                       => EE_Dependency_Map::load_from_cache,
95
-                'EEM_Event'                                                          => EE_Dependency_Map::load_from_cache,
96
-                'EEM_Price'                                                          => EE_Dependency_Map::load_from_cache,
97
-                'EEM_Price_Type'                                                     => EE_Dependency_Map::load_from_cache,
98
-                'EEM_Ticket'                                                         => EE_Dependency_Map::load_from_cache,
99
-                'EventEspresso\core\domain\services\admin\entities\DefaultDatetimes' => EE_Dependency_Map::load_from_cache,
100
-            ]
101
-        );
102
-        $this->dependency_map->registerDependencies(
103
-            'EventEspresso\core\domain\services\admin\entities\DefaultDatetimes',
104
-            [
105
-                'EventEspresso\core\domain\services\admin\entities\DefaultTickets' => EE_Dependency_Map::load_from_cache,
106
-                'EEM_Datetime'                                                     => EE_Dependency_Map::load_from_cache,
107
-            ]
108
-        );
109
-        $this->dependency_map->registerDependencies(
110
-            'EventEspresso\core\domain\services\admin\entities\DefaultTickets',
111
-            [
112
-                'EventEspresso\core\domain\services\admin\entities\DefaultPrices' => EE_Dependency_Map::load_from_cache,
113
-                'EEM_Ticket'                                                      => EE_Dependency_Map::load_from_cache,
114
-            ]
115
-        );
116
-        $this->dependency_map->registerDependencies(
117
-            'EventEspresso\core\domain\services\admin\entities\DefaultPrices',
118
-            [
119
-                'EEM_Price'      => EE_Dependency_Map::load_from_cache,
120
-                'EEM_Price_Type' => EE_Dependency_Map::load_from_cache,
121
-            ]
122
-        );
123
-    }
39
+	/**
40
+	 * @since $VID:$
41
+	 */
42
+	protected function registerDependencies()
43
+	{
44
+		$this->dependency_map->registerDependencies(
45
+			'EventEspresso\core\domain\services\assets\EspressoEditorAssetManager',
46
+			[
47
+				'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
48
+				'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
49
+				'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
50
+			]
51
+		);
52
+		$this->dependency_map->registerDependencies(
53
+			'EventEspresso\core\domain\services\admin\events\editor\EventEditor',
54
+			[
55
+				'EE_Admin_Config'                                                               => EE_Dependency_Map::load_from_cache,
56
+				'EE_Event'                                                                      => EE_Dependency_Map::not_registered,
57
+				'EventEspresso\core\domain\entities\admin\GraphQLData\CurrentUser'              =>
58
+					EE_Dependency_Map::not_registered,
59
+				'EventEspresso\core\domain\services\admin\events\editor\EventEditorGraphQLData' =>
60
+					EE_Dependency_Map::load_from_cache,
61
+				'EventEspresso\core\domain\entities\admin\GraphQLData\GeneralSettings'          =>
62
+					EE_Dependency_Map::load_from_cache,
63
+				'EventEspresso\core\services\assets\JedLocaleData'                              => EE_Dependency_Map::load_from_cache,
64
+			]
65
+		);
66
+		$this->dependency_map->registerDependencies(
67
+			'EventEspresso\core\domain\services\admin\events\default_settings\AdvancedEditorAdminFormSection',
68
+			['EE_Admin_Config' => EE_Dependency_Map::load_from_cache]
69
+		);
70
+		$this->dependency_map->registerDependencies(
71
+			'EventEspresso\core\domain\services\admin\events\editor\EventEditorGraphQLData',
72
+			[
73
+				'EventEspresso\core\domain\entities\admin\GraphQLData\Datetimes'                 => EE_Dependency_Map::load_from_cache,
74
+				'EventEspresso\core\domain\entities\admin\GraphQLData\Prices'                    => EE_Dependency_Map::load_from_cache,
75
+				'EventEspresso\core\domain\entities\admin\GraphQLData\PriceTypes'                => EE_Dependency_Map::load_from_cache,
76
+				'EventEspresso\core\domain\entities\admin\GraphQLData\Tickets'                   => EE_Dependency_Map::load_from_cache,
77
+				'EventEspresso\core\domain\services\admin\events\editor\NewEventDefaultEntities' => EE_Dependency_Map::load_from_cache,
78
+				'EventEspresso\core\domain\services\admin\events\editor\EventEntityRelations'    => EE_Dependency_Map::load_from_cache,
79
+			]
80
+		);
81
+		$this->dependency_map->registerDependencies(
82
+			'EventEspresso\core\domain\services\admin\events\editor\EventEntityRelations',
83
+			[
84
+				'EEM_Datetime'   => EE_Dependency_Map::load_from_cache,
85
+				'EEM_Event'      => EE_Dependency_Map::load_from_cache,
86
+				'EEM_Price'      => EE_Dependency_Map::load_from_cache,
87
+				'EEM_Price_Type' => EE_Dependency_Map::load_from_cache,
88
+				'EEM_Ticket'     => EE_Dependency_Map::load_from_cache,
89
+			]
90
+		);
91
+		$this->dependency_map->registerDependencies(
92
+			'EventEspresso\core\domain\services\admin\events\editor\NewEventDefaultEntities',
93
+			[
94
+				'EEM_Datetime'                                                       => EE_Dependency_Map::load_from_cache,
95
+				'EEM_Event'                                                          => EE_Dependency_Map::load_from_cache,
96
+				'EEM_Price'                                                          => EE_Dependency_Map::load_from_cache,
97
+				'EEM_Price_Type'                                                     => EE_Dependency_Map::load_from_cache,
98
+				'EEM_Ticket'                                                         => EE_Dependency_Map::load_from_cache,
99
+				'EventEspresso\core\domain\services\admin\entities\DefaultDatetimes' => EE_Dependency_Map::load_from_cache,
100
+			]
101
+		);
102
+		$this->dependency_map->registerDependencies(
103
+			'EventEspresso\core\domain\services\admin\entities\DefaultDatetimes',
104
+			[
105
+				'EventEspresso\core\domain\services\admin\entities\DefaultTickets' => EE_Dependency_Map::load_from_cache,
106
+				'EEM_Datetime'                                                     => EE_Dependency_Map::load_from_cache,
107
+			]
108
+		);
109
+		$this->dependency_map->registerDependencies(
110
+			'EventEspresso\core\domain\services\admin\entities\DefaultTickets',
111
+			[
112
+				'EventEspresso\core\domain\services\admin\entities\DefaultPrices' => EE_Dependency_Map::load_from_cache,
113
+				'EEM_Ticket'                                                      => EE_Dependency_Map::load_from_cache,
114
+			]
115
+		);
116
+		$this->dependency_map->registerDependencies(
117
+			'EventEspresso\core\domain\services\admin\entities\DefaultPrices',
118
+			[
119
+				'EEM_Price'      => EE_Dependency_Map::load_from_cache,
120
+				'EEM_Price_Type' => EE_Dependency_Map::load_from_cache,
121
+			]
122
+		);
123
+	}
124 124
 
125 125
 
126
-    /**
127
-     * implements logic required to run during request
128
-     *
129
-     * @return bool
130
-     * @since   $VID:$
131
-     */
132
-    protected function requestHandler()
133
-    {
134
-        return false;
135
-    }
126
+	/**
127
+	 * implements logic required to run during request
128
+	 *
129
+	 * @return bool
130
+	 * @since   $VID:$
131
+	 */
132
+	protected function requestHandler()
133
+	{
134
+		return false;
135
+	}
136 136
 }
Please login to merge, or discard this patch.
core/domain/entities/routing/handlers/admin/WordPressPluginsPage.php 1 patch
Indentation   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -17,56 +17,56 @@
 block discarded – undo
17 17
 class WordPressPluginsPage extends Route
18 18
 {
19 19
 
20
-    /**
21
-     * returns true if the current request matches this route
22
-     *
23
-     * @return bool
24
-     * @since   $VID:$
25
-     */
26
-    public function matchesCurrentRequest()
27
-    {
28
-        global $pagenow;
29
-        return $this->request->isAdmin() && $pagenow && $pagenow === 'plugins.php';
30
-    }
20
+	/**
21
+	 * returns true if the current request matches this route
22
+	 *
23
+	 * @return bool
24
+	 * @since   $VID:$
25
+	 */
26
+	public function matchesCurrentRequest()
27
+	{
28
+		global $pagenow;
29
+		return $this->request->isAdmin() && $pagenow && $pagenow === 'plugins.php';
30
+	}
31 31
 
32 32
 
33
-    /**
34
-     * @since $VID:$
35
-     */
36
-    protected function registerDependencies()
37
-    {
38
-        $this->dependency_map->registerDependencies(
39
-            'EventEspresso\core\domain\services\assets\WordpressPluginsPageAssetManager',
40
-            [
41
-                'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
42
-                'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
43
-                'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
44
-                'EventEspresso\core\domain\services\admin\ExitModal' => EE_Dependency_Map::load_from_cache,
45
-            ]
46
-        );
47
-        $this->dependency_map->registerDependencies(
48
-            'EventEspresso\core\domain\services\admin\ExitModal',
49
-            ['EventEspresso\core\services\assets\Registry' => EE_Dependency_Map::load_from_cache]
50
-        );
51
-        $this->dependency_map->registerDependencies(
52
-            'EventEspresso\core\domain\services\admin\PluginUpsells',
53
-            ['EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache]
54
-        );
55
-    }
33
+	/**
34
+	 * @since $VID:$
35
+	 */
36
+	protected function registerDependencies()
37
+	{
38
+		$this->dependency_map->registerDependencies(
39
+			'EventEspresso\core\domain\services\assets\WordpressPluginsPageAssetManager',
40
+			[
41
+				'EventEspresso\core\domain\Domain'                   => EE_Dependency_Map::load_from_cache,
42
+				'EventEspresso\core\services\assets\AssetCollection' => EE_Dependency_Map::load_from_cache,
43
+				'EventEspresso\core\services\assets\Registry'        => EE_Dependency_Map::load_from_cache,
44
+				'EventEspresso\core\domain\services\admin\ExitModal' => EE_Dependency_Map::load_from_cache,
45
+			]
46
+		);
47
+		$this->dependency_map->registerDependencies(
48
+			'EventEspresso\core\domain\services\admin\ExitModal',
49
+			['EventEspresso\core\services\assets\Registry' => EE_Dependency_Map::load_from_cache]
50
+		);
51
+		$this->dependency_map->registerDependencies(
52
+			'EventEspresso\core\domain\services\admin\PluginUpsells',
53
+			['EventEspresso\core\domain\Domain' => EE_Dependency_Map::load_from_cache]
54
+		);
55
+	}
56 56
 
57 57
 
58
-    /**
59
-     * implements logic required to run during request
60
-     *
61
-     * @return bool
62
-     * @since   $VID:$
63
-     */
64
-    protected function requestHandler()
65
-    {
66
-        $this->loader->getShared('EventEspresso\core\domain\services\assets\WordpressPluginsPageAssetManager');
67
-        /** @var PluginUpsells $plugin_upsells */
68
-        $plugin_upsells = $this->loader->getShared('EventEspresso\core\domain\services\admin\PluginUpsells');
69
-        $plugin_upsells->decafUpsells();
70
-        return true;
71
-    }
58
+	/**
59
+	 * implements logic required to run during request
60
+	 *
61
+	 * @return bool
62
+	 * @since   $VID:$
63
+	 */
64
+	protected function requestHandler()
65
+	{
66
+		$this->loader->getShared('EventEspresso\core\domain\services\assets\WordpressPluginsPageAssetManager');
67
+		/** @var PluginUpsells $plugin_upsells */
68
+		$plugin_upsells = $this->loader->getShared('EventEspresso\core\domain\services\admin\PluginUpsells');
69
+		$plugin_upsells->decafUpsells();
70
+		return true;
71
+	}
72 72
 }
Please login to merge, or discard this patch.
espresso.php 2 patches
Indentation   +103 added lines, -103 removed lines patch added patch discarded remove patch
@@ -37,128 +37,128 @@
 block discarded – undo
37 37
  * @since           4.0
38 38
  */
39 39
 if (function_exists('espresso_version')) {
40
-    if (! function_exists('espresso_duplicate_plugin_error')) {
41
-        /**
42
-         *    espresso_duplicate_plugin_error
43
-         *    displays if more than one version of EE is activated at the same time
44
-         */
45
-        function espresso_duplicate_plugin_error()
46
-        {
47
-            ?>
40
+	if (! function_exists('espresso_duplicate_plugin_error')) {
41
+		/**
42
+		 *    espresso_duplicate_plugin_error
43
+		 *    displays if more than one version of EE is activated at the same time
44
+		 */
45
+		function espresso_duplicate_plugin_error()
46
+		{
47
+			?>
48 48
             <div class="error">
49 49
                 <p>
50 50
                     <?php
51
-                    echo esc_html__(
52
-                        'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.',
53
-                        'event_espresso'
54
-                    ); ?>
51
+					echo esc_html__(
52
+						'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.',
53
+						'event_espresso'
54
+					); ?>
55 55
                 </p>
56 56
             </div>
57 57
             <?php
58
-            espresso_deactivate_plugin(plugin_basename(__FILE__));
59
-        }
60
-    }
61
-    add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
58
+			espresso_deactivate_plugin(plugin_basename(__FILE__));
59
+		}
60
+	}
61
+	add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
62 62
 } else {
63
-    define('EE_MIN_PHP_VER_REQUIRED', '5.4.0');
64
-    if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
65
-        /**
66
-         * espresso_minimum_php_version_error
67
-         *
68
-         * @return void
69
-         */
70
-        function espresso_minimum_php_version_error()
71
-        {
72
-            ?>
63
+	define('EE_MIN_PHP_VER_REQUIRED', '5.4.0');
64
+	if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
65
+		/**
66
+		 * espresso_minimum_php_version_error
67
+		 *
68
+		 * @return void
69
+		 */
70
+		function espresso_minimum_php_version_error()
71
+		{
72
+			?>
73 73
             <div class="error">
74 74
                 <p>
75 75
                     <?php
76
-                    printf(
77
-                        esc_html__(
78
-                            'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.',
79
-                            'event_espresso'
80
-                        ),
81
-                        EE_MIN_PHP_VER_REQUIRED,
82
-                        PHP_VERSION,
83
-                        '<br/>',
84
-                        '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>'
85
-                    );
86
-                    ?>
76
+					printf(
77
+						esc_html__(
78
+							'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.',
79
+							'event_espresso'
80
+						),
81
+						EE_MIN_PHP_VER_REQUIRED,
82
+						PHP_VERSION,
83
+						'<br/>',
84
+						'<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>'
85
+					);
86
+					?>
87 87
                 </p>
88 88
             </div>
89 89
             <?php
90
-            espresso_deactivate_plugin(plugin_basename(__FILE__));
91
-        }
90
+			espresso_deactivate_plugin(plugin_basename(__FILE__));
91
+		}
92 92
 
93
-        add_action('admin_notices', 'espresso_minimum_php_version_error', 1);
94
-    } else {
95
-        define('EVENT_ESPRESSO_MAIN_FILE', __FILE__);
96
-        /**
97
-         * espresso_version
98
-         * Returns the plugin version
99
-         *
100
-         * @return string
101
-         */
102
-        function espresso_version()
103
-        {
104
-            return apply_filters('FHEE__espresso__espresso_version', '4.10.5.rc.000');
105
-        }
93
+		add_action('admin_notices', 'espresso_minimum_php_version_error', 1);
94
+	} else {
95
+		define('EVENT_ESPRESSO_MAIN_FILE', __FILE__);
96
+		/**
97
+		 * espresso_version
98
+		 * Returns the plugin version
99
+		 *
100
+		 * @return string
101
+		 */
102
+		function espresso_version()
103
+		{
104
+			return apply_filters('FHEE__espresso__espresso_version', '4.10.5.rc.000');
105
+		}
106 106
 
107
-        /**
108
-         * espresso_plugin_activation
109
-         * adds a wp-option to indicate that EE has been activated via the WP admin plugins page
110
-         */
111
-        function espresso_plugin_activation()
112
-        {
113
-            update_option('ee_espresso_activation', true);
107
+		/**
108
+		 * espresso_plugin_activation
109
+		 * adds a wp-option to indicate that EE has been activated via the WP admin plugins page
110
+		 */
111
+		function espresso_plugin_activation()
112
+		{
113
+			update_option('ee_espresso_activation', true);
114 114
 
115
-            // Run WP GraphQL activation callback
116
-            if (PHP_VERSION_ID < 70100) {
117
-                return;
118
-            }
119
-            if (! class_exists('WPGraphQL')) {
120
-                require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php';
121
-            }
122
-            graphql_init()->activate();
123
-        }
115
+			// Run WP GraphQL activation callback
116
+			if (PHP_VERSION_ID < 70100) {
117
+				return;
118
+			}
119
+			if (! class_exists('WPGraphQL')) {
120
+				require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php';
121
+			}
122
+			graphql_init()->activate();
123
+		}
124 124
 
125
-        register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation');
125
+		register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation');
126 126
 
127
-        /**
128
-         * espresso_plugin_deactivation
129
-         */
130
-        function espresso_plugin_deactivation()
131
-        {
132
-            // Run WP GraphQL deactivation callback
133
-            if (PHP_VERSION_ID < 70100) {
134
-                return;
135
-            }
136
-            if (! class_exists('WPGraphQL')) {
137
-                require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php';
138
-            }
139
-            graphql_init()->deactivate();
140
-        }
141
-        register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation');
127
+		/**
128
+		 * espresso_plugin_deactivation
129
+		 */
130
+		function espresso_plugin_deactivation()
131
+		{
132
+			// Run WP GraphQL deactivation callback
133
+			if (PHP_VERSION_ID < 70100) {
134
+				return;
135
+			}
136
+			if (! class_exists('WPGraphQL')) {
137
+				require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php';
138
+			}
139
+			graphql_init()->deactivate();
140
+		}
141
+		register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation');
142 142
 
143
-        require_once __DIR__ . '/core/bootstrap_espresso.php';
144
-        bootstrap_espresso();
145
-    }
143
+		require_once __DIR__ . '/core/bootstrap_espresso.php';
144
+		bootstrap_espresso();
145
+	}
146 146
 }
147 147
 if (! function_exists('espresso_deactivate_plugin')) {
148
-    /**
149
-     *    deactivate_plugin
150
-     * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
151
-     *
152
-     * @access public
153
-     * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file
154
-     * @return    void
155
-     */
156
-    function espresso_deactivate_plugin($plugin_basename = '')
157
-    {
158
-        if (! function_exists('deactivate_plugins')) {
159
-            require_once ABSPATH . 'wp-admin/includes/plugin.php';
160
-        }
161
-        unset($_GET['activate'], $_REQUEST['activate']);
162
-        deactivate_plugins($plugin_basename);
163
-    }
148
+	/**
149
+	 *    deactivate_plugin
150
+	 * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
151
+	 *
152
+	 * @access public
153
+	 * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file
154
+	 * @return    void
155
+	 */
156
+	function espresso_deactivate_plugin($plugin_basename = '')
157
+	{
158
+		if (! function_exists('deactivate_plugins')) {
159
+			require_once ABSPATH . 'wp-admin/includes/plugin.php';
160
+		}
161
+		unset($_GET['activate'], $_REQUEST['activate']);
162
+		deactivate_plugins($plugin_basename);
163
+	}
164 164
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
  * @since           4.0
38 38
  */
39 39
 if (function_exists('espresso_version')) {
40
-    if (! function_exists('espresso_duplicate_plugin_error')) {
40
+    if ( ! function_exists('espresso_duplicate_plugin_error')) {
41 41
         /**
42 42
          *    espresso_duplicate_plugin_error
43 43
          *    displays if more than one version of EE is activated at the same time
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
62 62
 } else {
63 63
     define('EE_MIN_PHP_VER_REQUIRED', '5.4.0');
64
-    if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
64
+    if ( ! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
65 65
         /**
66 66
          * espresso_minimum_php_version_error
67 67
          *
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
             if (PHP_VERSION_ID < 70100) {
117 117
                 return;
118 118
             }
119
-            if (! class_exists('WPGraphQL')) {
120
-                require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php';
119
+            if ( ! class_exists('WPGraphQL')) {
120
+                require_once EE_THIRD_PARTY.'wp-graphql/wp-graphql.php';
121 121
             }
122 122
             graphql_init()->activate();
123 123
         }
@@ -133,18 +133,18 @@  discard block
 block discarded – undo
133 133
             if (PHP_VERSION_ID < 70100) {
134 134
                 return;
135 135
             }
136
-            if (! class_exists('WPGraphQL')) {
137
-                require_once EE_THIRD_PARTY . 'wp-graphql/wp-graphql.php';
136
+            if ( ! class_exists('WPGraphQL')) {
137
+                require_once EE_THIRD_PARTY.'wp-graphql/wp-graphql.php';
138 138
             }
139 139
             graphql_init()->deactivate();
140 140
         }
141 141
         register_deactivation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_deactivation');
142 142
 
143
-        require_once __DIR__ . '/core/bootstrap_espresso.php';
143
+        require_once __DIR__.'/core/bootstrap_espresso.php';
144 144
         bootstrap_espresso();
145 145
     }
146 146
 }
147
-if (! function_exists('espresso_deactivate_plugin')) {
147
+if ( ! function_exists('espresso_deactivate_plugin')) {
148 148
     /**
149 149
      *    deactivate_plugin
150 150
      * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
      */
156 156
     function espresso_deactivate_plugin($plugin_basename = '')
157 157
     {
158
-        if (! function_exists('deactivate_plugins')) {
159
-            require_once ABSPATH . 'wp-admin/includes/plugin.php';
158
+        if ( ! function_exists('deactivate_plugins')) {
159
+            require_once ABSPATH.'wp-admin/includes/plugin.php';
160 160
         }
161 161
         unset($_GET['activate'], $_REQUEST['activate']);
162 162
         deactivate_plugins($plugin_basename);
Please login to merge, or discard this patch.