Completed
Branch barista (01af75)
by
unknown
60:31 queued 51:15
created
core/services/dependencies/DependencyHandler.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,19 +7,19 @@
 block discarded – undo
7 7
 abstract class DependencyHandler implements DependencyHandlerInterface
8 8
 {
9 9
 
10
-    /**
11
-     * @var EE_Dependency_Map $dependency_map
12
-     */
13
-    protected $dependency_map;
10
+	/**
11
+	 * @var EE_Dependency_Map $dependency_map
12
+	 */
13
+	protected $dependency_map;
14 14
 
15 15
 
16
-    /**
17
-     * DependencyHandler constructor.
18
-     *
19
-     * @param EE_Dependency_Map $dependency_map
20
-     */
21
-    public function __construct(EE_Dependency_Map $dependency_map)
22
-    {
23
-        $this->dependency_map = $dependency_map;
24
-    }
16
+	/**
17
+	 * DependencyHandler constructor.
18
+	 *
19
+	 * @param EE_Dependency_Map $dependency_map
20
+	 */
21
+	public function __construct(EE_Dependency_Map $dependency_map)
22
+	{
23
+		$this->dependency_map = $dependency_map;
24
+	}
25 25
 }
Please login to merge, or discard this patch.
core/services/dependencies/DependencyHandlerInterface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 interface DependencyHandlerInterface
6 6
 {
7
-    /**
8
-     * @since $VID:$
9
-     */
10
-    public function registerDependencies();
7
+	/**
8
+	 * @since $VID:$
9
+	 */
10
+	public function registerDependencies();
11 11
 }
Please login to merge, or discard this patch.
core/services/routing/Router.php 1 patch
Indentation   +232 added lines, -232 removed lines patch added patch discarded remove patch
@@ -15,236 +15,236 @@
 block discarded – undo
15 15
 class Router
16 16
 {
17 17
 
18
-    /**
19
-     * @var EE_Dependency_Map $dependency_map
20
-     */
21
-    protected $dependency_map;
22
-
23
-    /**
24
-     * @var LoaderInterface $loader
25
-     */
26
-    protected $loader;
27
-
28
-    /**
29
-     * @var RouteHandler $route_handler
30
-     */
31
-    protected $route_handler;
32
-
33
-    /**
34
-     * @var string $route_request_type
35
-     */
36
-    protected $route_request_type;
37
-
38
-
39
-    /**
40
-     * RoutingSwitch constructor.
41
-     *
42
-     * @param EE_Dependency_Map $dependency_map
43
-     * @param LoaderInterface   $loader
44
-     * @param RouteHandler      $router
45
-     */
46
-    public function __construct(EE_Dependency_Map $dependency_map, LoaderInterface $loader, RouteHandler $router)
47
-    {
48
-        $this->dependency_map = $dependency_map;
49
-        $this->loader         = $loader;
50
-        $this->route_handler  = $router;
51
-    }
52
-
53
-
54
-    /**
55
-     * @throws Exception
56
-     */
57
-    public function loadPrimaryRoutes()
58
-    {
59
-        do_action(
60
-            'AHEE__EventEspresso_core_services_routing_Router__loadPrimaryRoutes',
61
-            $this->route_handler,
62
-            $this->route_request_type,
63
-            $this->dependency_map
64
-        );
65
-        $this->dependency_map->registerDependencies(
66
-            'EventEspresso\core\domain\entities\routing\handlers\admin\ActivationRequests',
67
-            Route::getFullDependencies()
68
-        );
69
-        $this->dependency_map->registerDependencies(
70
-            'EventEspresso\core\domain\entities\routing\handlers\shared\RegularRequests',
71
-            Route::getFullDependencies()
72
-        );
73
-        // now load and prep all primary Routes
74
-        $this->route_handler->addRoute('EventEspresso\core\domain\entities\routing\handlers\admin\ActivationRequests');
75
-        $this->route_handler->addRoute('EventEspresso\core\domain\entities\routing\handlers\shared\RegularRequests');
76
-        $this->route_request_type = $this->route_handler->getRouteRequestType();
77
-    }
78
-
79
-
80
-    /**
81
-     *
82
-     * @throws Exception
83
-     */
84
-    public function registerShortcodesModulesAndWidgets()
85
-    {
86
-        do_action(
87
-            'AHEE__EventEspresso_core_services_routing_Router__registerShortcodesModulesAndWidgets',
88
-            $this->route_handler,
89
-            $this->route_request_type,
90
-            $this->dependency_map
91
-        );
92
-        switch ($this->route_request_type) {
93
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
94
-                break;
95
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
96
-                $this->route_handler->addRoute(
97
-                    'EventEspresso\core\domain\entities\routing\handlers\frontend\ShortcodeRequests'
98
-                );
99
-                break;
100
-        }
101
-    }
102
-
103
-
104
-    /**
105
-     *
106
-     * @throws Exception
107
-     * @throws Exception
108
-     * @throws Exception
109
-     * @throws Exception
110
-     */
111
-    public function brewEspresso()
112
-    {
113
-        do_action(
114
-            'AHEE__EventEspresso_core_services_routing_Router__brewEspresso',
115
-            $this->route_handler,
116
-            $this->route_request_type,
117
-            $this->dependency_map
118
-        );
119
-        switch ($this->route_request_type) {
120
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
121
-                $this->route_handler->addRoute(
122
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\PueRequests'
123
-                );
124
-                break;
125
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
126
-                $this->route_handler->addRoute(
127
-                    'EventEspresso\core\domain\entities\routing\handlers\shared\GQLRequests'
128
-                );
129
-                $this->route_handler->addRoute(
130
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\PueRequests'
131
-                );
132
-                $this->route_handler->addRoute(
133
-                    'EventEspresso\core\domain\entities\routing\handlers\shared\RestApiRequests'
134
-                );
135
-                break;
136
-        }
137
-    }
138
-
139
-
140
-    /**
141
-     *
142
-     * @throws Exception
143
-     * @throws Exception
144
-     * @throws Exception
145
-     * @throws Exception
146
-     * @throws Exception
147
-     * @throws Exception
148
-     * @throws Exception
149
-     * @throws Exception
150
-     * @throws Exception
151
-     * @throws Exception
152
-     */
153
-    public function loadControllers()
154
-    {
155
-        do_action(
156
-            'AHEE__EventEspresso_core_services_routing_Router__loadControllers',
157
-            $this->route_handler,
158
-            $this->route_request_type,
159
-            $this->dependency_map
160
-        );
161
-        switch ($this->route_request_type) {
162
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
163
-                $this->route_handler->addRoute(
164
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\AdminRoute'
165
-                );
166
-                $this->route_handler->addRoute(
167
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\WordPressPluginsPage'
168
-                );
169
-                break;
170
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
171
-                $this->route_handler->addRoute(
172
-                    'EventEspresso\core\domain\entities\routing\handlers\frontend\FrontendRequests'
173
-                );
174
-                $this->route_handler->addRoute(
175
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\AdminRoute'
176
-                );
177
-                $this->route_handler->addRoute(
178
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\EspressoLegacyAdmin'
179
-                );
180
-                $this->route_handler->addRoute(
181
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\EspressoEventsAdmin'
182
-                );
183
-                $this->route_handler->addRoute(
184
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\EspressoEventEditor'
185
-                );
186
-                $this->route_handler->addRoute(
187
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\GutenbergEditor'
188
-                );
189
-                $this->route_handler->addRoute(
190
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\WordPressPluginsPage'
191
-                );
192
-                $this->route_handler->addRoute(
193
-                    'EventEspresso\core\domain\entities\routing\handlers\shared\WordPressHeartbeat'
194
-                );
195
-                break;
196
-        }
197
-    }
198
-
199
-
200
-    /**
201
-     *
202
-     * @throws Exception
203
-     * @throws Exception
204
-     */
205
-    public function coreLoadedAndReady()
206
-    {
207
-        do_action(
208
-            'AHEE__EventEspresso_core_services_routing_Router__coreLoadedAndReady',
209
-            $this->route_handler,
210
-            $this->route_request_type,
211
-            $this->dependency_map
212
-        );
213
-        switch ($this->route_request_type) {
214
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
215
-                break;
216
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
217
-                $this->route_handler->addRoute(
218
-                    'EventEspresso\core\domain\entities\routing\handlers\shared\AssetRequests'
219
-                );
220
-                $this->route_handler->addRoute(
221
-                    'EventEspresso\core\domain\entities\routing\handlers\shared\SessionRequests'
222
-                );
223
-                break;
224
-        }
225
-    }
226
-
227
-
228
-    /**
229
-     *
230
-     * @throws Exception
231
-     */
232
-    public function initializeLast()
233
-    {
234
-        do_action(
235
-            'AHEE__EventEspresso_core_services_routing_Router__initializeLast',
236
-            $this->route_handler,
237
-            $this->route_request_type,
238
-            $this->dependency_map
239
-        );
240
-        switch ($this->route_request_type) {
241
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
242
-                break;
243
-            case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
244
-                $this->route_handler->addRoute(
245
-                    'EventEspresso\core\domain\entities\routing\handlers\admin\PersonalDataRequests'
246
-                );
247
-                break;
248
-        }
249
-    }
18
+	/**
19
+	 * @var EE_Dependency_Map $dependency_map
20
+	 */
21
+	protected $dependency_map;
22
+
23
+	/**
24
+	 * @var LoaderInterface $loader
25
+	 */
26
+	protected $loader;
27
+
28
+	/**
29
+	 * @var RouteHandler $route_handler
30
+	 */
31
+	protected $route_handler;
32
+
33
+	/**
34
+	 * @var string $route_request_type
35
+	 */
36
+	protected $route_request_type;
37
+
38
+
39
+	/**
40
+	 * RoutingSwitch constructor.
41
+	 *
42
+	 * @param EE_Dependency_Map $dependency_map
43
+	 * @param LoaderInterface   $loader
44
+	 * @param RouteHandler      $router
45
+	 */
46
+	public function __construct(EE_Dependency_Map $dependency_map, LoaderInterface $loader, RouteHandler $router)
47
+	{
48
+		$this->dependency_map = $dependency_map;
49
+		$this->loader         = $loader;
50
+		$this->route_handler  = $router;
51
+	}
52
+
53
+
54
+	/**
55
+	 * @throws Exception
56
+	 */
57
+	public function loadPrimaryRoutes()
58
+	{
59
+		do_action(
60
+			'AHEE__EventEspresso_core_services_routing_Router__loadPrimaryRoutes',
61
+			$this->route_handler,
62
+			$this->route_request_type,
63
+			$this->dependency_map
64
+		);
65
+		$this->dependency_map->registerDependencies(
66
+			'EventEspresso\core\domain\entities\routing\handlers\admin\ActivationRequests',
67
+			Route::getFullDependencies()
68
+		);
69
+		$this->dependency_map->registerDependencies(
70
+			'EventEspresso\core\domain\entities\routing\handlers\shared\RegularRequests',
71
+			Route::getFullDependencies()
72
+		);
73
+		// now load and prep all primary Routes
74
+		$this->route_handler->addRoute('EventEspresso\core\domain\entities\routing\handlers\admin\ActivationRequests');
75
+		$this->route_handler->addRoute('EventEspresso\core\domain\entities\routing\handlers\shared\RegularRequests');
76
+		$this->route_request_type = $this->route_handler->getRouteRequestType();
77
+	}
78
+
79
+
80
+	/**
81
+	 *
82
+	 * @throws Exception
83
+	 */
84
+	public function registerShortcodesModulesAndWidgets()
85
+	{
86
+		do_action(
87
+			'AHEE__EventEspresso_core_services_routing_Router__registerShortcodesModulesAndWidgets',
88
+			$this->route_handler,
89
+			$this->route_request_type,
90
+			$this->dependency_map
91
+		);
92
+		switch ($this->route_request_type) {
93
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
94
+				break;
95
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
96
+				$this->route_handler->addRoute(
97
+					'EventEspresso\core\domain\entities\routing\handlers\frontend\ShortcodeRequests'
98
+				);
99
+				break;
100
+		}
101
+	}
102
+
103
+
104
+	/**
105
+	 *
106
+	 * @throws Exception
107
+	 * @throws Exception
108
+	 * @throws Exception
109
+	 * @throws Exception
110
+	 */
111
+	public function brewEspresso()
112
+	{
113
+		do_action(
114
+			'AHEE__EventEspresso_core_services_routing_Router__brewEspresso',
115
+			$this->route_handler,
116
+			$this->route_request_type,
117
+			$this->dependency_map
118
+		);
119
+		switch ($this->route_request_type) {
120
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
121
+				$this->route_handler->addRoute(
122
+					'EventEspresso\core\domain\entities\routing\handlers\admin\PueRequests'
123
+				);
124
+				break;
125
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
126
+				$this->route_handler->addRoute(
127
+					'EventEspresso\core\domain\entities\routing\handlers\shared\GQLRequests'
128
+				);
129
+				$this->route_handler->addRoute(
130
+					'EventEspresso\core\domain\entities\routing\handlers\admin\PueRequests'
131
+				);
132
+				$this->route_handler->addRoute(
133
+					'EventEspresso\core\domain\entities\routing\handlers\shared\RestApiRequests'
134
+				);
135
+				break;
136
+		}
137
+	}
138
+
139
+
140
+	/**
141
+	 *
142
+	 * @throws Exception
143
+	 * @throws Exception
144
+	 * @throws Exception
145
+	 * @throws Exception
146
+	 * @throws Exception
147
+	 * @throws Exception
148
+	 * @throws Exception
149
+	 * @throws Exception
150
+	 * @throws Exception
151
+	 * @throws Exception
152
+	 */
153
+	public function loadControllers()
154
+	{
155
+		do_action(
156
+			'AHEE__EventEspresso_core_services_routing_Router__loadControllers',
157
+			$this->route_handler,
158
+			$this->route_request_type,
159
+			$this->dependency_map
160
+		);
161
+		switch ($this->route_request_type) {
162
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
163
+				$this->route_handler->addRoute(
164
+					'EventEspresso\core\domain\entities\routing\handlers\admin\AdminRoute'
165
+				);
166
+				$this->route_handler->addRoute(
167
+					'EventEspresso\core\domain\entities\routing\handlers\admin\WordPressPluginsPage'
168
+				);
169
+				break;
170
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
171
+				$this->route_handler->addRoute(
172
+					'EventEspresso\core\domain\entities\routing\handlers\frontend\FrontendRequests'
173
+				);
174
+				$this->route_handler->addRoute(
175
+					'EventEspresso\core\domain\entities\routing\handlers\admin\AdminRoute'
176
+				);
177
+				$this->route_handler->addRoute(
178
+					'EventEspresso\core\domain\entities\routing\handlers\admin\EspressoLegacyAdmin'
179
+				);
180
+				$this->route_handler->addRoute(
181
+					'EventEspresso\core\domain\entities\routing\handlers\admin\EspressoEventsAdmin'
182
+				);
183
+				$this->route_handler->addRoute(
184
+					'EventEspresso\core\domain\entities\routing\handlers\admin\EspressoEventEditor'
185
+				);
186
+				$this->route_handler->addRoute(
187
+					'EventEspresso\core\domain\entities\routing\handlers\admin\GutenbergEditor'
188
+				);
189
+				$this->route_handler->addRoute(
190
+					'EventEspresso\core\domain\entities\routing\handlers\admin\WordPressPluginsPage'
191
+				);
192
+				$this->route_handler->addRoute(
193
+					'EventEspresso\core\domain\entities\routing\handlers\shared\WordPressHeartbeat'
194
+				);
195
+				break;
196
+		}
197
+	}
198
+
199
+
200
+	/**
201
+	 *
202
+	 * @throws Exception
203
+	 * @throws Exception
204
+	 */
205
+	public function coreLoadedAndReady()
206
+	{
207
+		do_action(
208
+			'AHEE__EventEspresso_core_services_routing_Router__coreLoadedAndReady',
209
+			$this->route_handler,
210
+			$this->route_request_type,
211
+			$this->dependency_map
212
+		);
213
+		switch ($this->route_request_type) {
214
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
215
+				break;
216
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
217
+				$this->route_handler->addRoute(
218
+					'EventEspresso\core\domain\entities\routing\handlers\shared\AssetRequests'
219
+				);
220
+				$this->route_handler->addRoute(
221
+					'EventEspresso\core\domain\entities\routing\handlers\shared\SessionRequests'
222
+				);
223
+				break;
224
+		}
225
+	}
226
+
227
+
228
+	/**
229
+	 *
230
+	 * @throws Exception
231
+	 */
232
+	public function initializeLast()
233
+	{
234
+		do_action(
235
+			'AHEE__EventEspresso_core_services_routing_Router__initializeLast',
236
+			$this->route_handler,
237
+			$this->route_request_type,
238
+			$this->dependency_map
239
+		);
240
+		switch ($this->route_request_type) {
241
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_ACTIVATION:
242
+				break;
243
+			case PrimaryRoute::ROUTE_REQUEST_TYPE_REGULAR:
244
+				$this->route_handler->addRoute(
245
+					'EventEspresso\core\domain\entities\routing\handlers\admin\PersonalDataRequests'
246
+				);
247
+				break;
248
+		}
249
+	}
250 250
 }
Please login to merge, or discard this patch.
core/domain/DomainBase.php 2 patches
Indentation   +217 added lines, -217 removed lines patch added patch discarded remove patch
@@ -17,221 +17,221 @@
 block discarded – undo
17 17
 abstract class DomainBase implements DomainInterface
18 18
 {
19 19
 
20
-    const ASSETS_FOLDER = 'assets/';
21
-
22
-    /**
23
-     * Equivalent to `__FILE__` for main plugin file.
24
-     *
25
-     * @var FilePath
26
-     */
27
-    private $plugin_file;
28
-
29
-    /**
30
-     * String indicating version for plugin
31
-     *
32
-     * @var string
33
-     */
34
-    private $version;
35
-
36
-    /**
37
-     * @var string $plugin_basename
38
-     */
39
-    private $plugin_basename;
40
-
41
-    /**
42
-     * @var string $plugin_path
43
-     */
44
-    private $plugin_path;
45
-
46
-    /**
47
-     * @var string $plugin_url
48
-     */
49
-    private $plugin_url;
50
-
51
-    /**
52
-     * @var string $asset_namespace
53
-     */
54
-    private $asset_namespace;
55
-
56
-    /**
57
-     * @var string $assets_path
58
-     */
59
-    private $assets_path;
60
-
61
-    /**
62
-     * @var bool
63
-     */
64
-    protected $initialized = false;
65
-
66
-
67
-    /**
68
-     * Initializes internal properties.
69
-     *
70
-     * @param FilePath $plugin_file
71
-     * @param Version  $version
72
-     * @param string $asset_namespace
73
-     */
74
-    public function __construct(FilePath $plugin_file, Version $version, $asset_namespace = Domain::ASSET_NAMESPACE)
75
-    {
76
-        $this->plugin_file = $plugin_file;
77
-        $this->version     = $version;
78
-        $this->initialize($asset_namespace);
79
-    }
80
-
81
-
82
-    /**
83
-     * @param string $asset_namespace
84
-     * @return void
85
-     * @since $VID:$
86
-     */
87
-    public function initialize($asset_namespace = Domain::ASSET_NAMESPACE)
88
-    {
89
-        if (! $this->initialized) {
90
-            $this->plugin_basename = plugin_basename($this->pluginFile());
91
-            $this->plugin_path     = plugin_dir_path($this->pluginFile());
92
-            $this->plugin_url      = plugin_dir_url($this->pluginFile());
93
-            $this->setAssetNamespace($asset_namespace);
94
-            $this->setDistributionAssetsPath();
95
-            $this->initialized = true;
96
-        }
97
-    }
98
-
99
-
100
-    /**
101
-     * @param string $asset_namespace
102
-     * @return void
103
-     */
104
-    public function setAssetNamespace($asset_namespace = Domain::ASSET_NAMESPACE)
105
-    {
106
-        if (! $this->asset_namespace) {
107
-            $this->asset_namespace = sanitize_key(
108
-                // convert directory separators to dashes and remove file extension
109
-                str_replace(['/', '.php'], ['-', ''], $asset_namespace)
110
-            );
111
-        }
112
-    }
113
-
114
-
115
-    /**
116
-     * @throws DomainException
117
-     * @since $VID:$
118
-     */
119
-    private function setDistributionAssetsPath()
120
-    {
121
-        $assets_path = $this->pluginPath() . DomainBase::ASSETS_FOLDER;
122
-        if (! is_readable($assets_path)) {
123
-            throw new DomainException(
124
-                sprintf(
125
-                    esc_html__(
126
-                        'The assets distribution folder was not found or is not readable. Please verify that "%1$s" exists and has valid permissions.',
127
-                        'event_espresso'
128
-                    ),
129
-                    $assets_path
130
-                )
131
-            );
132
-        }
133
-        $this->assets_path = trailingslashit($assets_path);
134
-    }
135
-
136
-
137
-    /**
138
-     * @return string
139
-     */
140
-    public function pluginFile()
141
-    {
142
-        return (string) $this->plugin_file;
143
-    }
144
-
145
-
146
-    /**
147
-     * @return string
148
-     */
149
-    public function pluginBasename()
150
-    {
151
-        return $this->plugin_basename;
152
-    }
153
-
154
-
155
-    /**
156
-     * @param string $additional_path
157
-     * @return string
158
-     */
159
-    public function pluginPath($additional_path = '')
160
-    {
161
-        return is_string($additional_path) && $additional_path !== ''
162
-            ? $this->plugin_path . $additional_path
163
-            : $this->plugin_path;
164
-    }
165
-
166
-
167
-    /**
168
-     * @param string $additional_path
169
-     * @return string
170
-     */
171
-    public function pluginUrl($additional_path = '')
172
-    {
173
-        return is_string($additional_path) && $additional_path !== ''
174
-            ? $this->plugin_url . $additional_path
175
-            : $this->plugin_url;
176
-    }
177
-
178
-
179
-    /**
180
-     * @return string
181
-     */
182
-    public function version()
183
-    {
184
-        return (string) $this->version;
185
-    }
186
-
187
-
188
-    /**
189
-     * @return Version
190
-     */
191
-    public function versionValueObject()
192
-    {
193
-        return $this->version;
194
-    }
195
-
196
-
197
-    /**
198
-     * @return string
199
-     */
200
-    public function distributionAssetsFolder()
201
-    {
202
-        return DomainBase::ASSETS_FOLDER;
203
-    }
204
-
205
-
206
-    /**
207
-     * @param string $additional_path
208
-     * @return string
209
-     */
210
-    public function distributionAssetsPath($additional_path = '')
211
-    {
212
-        return is_string($additional_path) && $additional_path !== ''
213
-            ? $this->assets_path . $additional_path
214
-            : $this->assets_path;
215
-    }
216
-
217
-
218
-    /**
219
-     * @param string $additional_path
220
-     * @return string
221
-     */
222
-    public function distributionAssetsUrl($additional_path = '')
223
-    {
224
-        return is_string($additional_path) && $additional_path !== ''
225
-            ? $this->plugin_url . DomainBase::ASSETS_FOLDER . $additional_path
226
-            : $this->plugin_url . DomainBase::ASSETS_FOLDER;
227
-    }
228
-
229
-
230
-    /**
231
-     * @return string
232
-     */
233
-    public function assetNamespace()
234
-    {
235
-        return $this->asset_namespace;
236
-    }
20
+	const ASSETS_FOLDER = 'assets/';
21
+
22
+	/**
23
+	 * Equivalent to `__FILE__` for main plugin file.
24
+	 *
25
+	 * @var FilePath
26
+	 */
27
+	private $plugin_file;
28
+
29
+	/**
30
+	 * String indicating version for plugin
31
+	 *
32
+	 * @var string
33
+	 */
34
+	private $version;
35
+
36
+	/**
37
+	 * @var string $plugin_basename
38
+	 */
39
+	private $plugin_basename;
40
+
41
+	/**
42
+	 * @var string $plugin_path
43
+	 */
44
+	private $plugin_path;
45
+
46
+	/**
47
+	 * @var string $plugin_url
48
+	 */
49
+	private $plugin_url;
50
+
51
+	/**
52
+	 * @var string $asset_namespace
53
+	 */
54
+	private $asset_namespace;
55
+
56
+	/**
57
+	 * @var string $assets_path
58
+	 */
59
+	private $assets_path;
60
+
61
+	/**
62
+	 * @var bool
63
+	 */
64
+	protected $initialized = false;
65
+
66
+
67
+	/**
68
+	 * Initializes internal properties.
69
+	 *
70
+	 * @param FilePath $plugin_file
71
+	 * @param Version  $version
72
+	 * @param string $asset_namespace
73
+	 */
74
+	public function __construct(FilePath $plugin_file, Version $version, $asset_namespace = Domain::ASSET_NAMESPACE)
75
+	{
76
+		$this->plugin_file = $plugin_file;
77
+		$this->version     = $version;
78
+		$this->initialize($asset_namespace);
79
+	}
80
+
81
+
82
+	/**
83
+	 * @param string $asset_namespace
84
+	 * @return void
85
+	 * @since $VID:$
86
+	 */
87
+	public function initialize($asset_namespace = Domain::ASSET_NAMESPACE)
88
+	{
89
+		if (! $this->initialized) {
90
+			$this->plugin_basename = plugin_basename($this->pluginFile());
91
+			$this->plugin_path     = plugin_dir_path($this->pluginFile());
92
+			$this->plugin_url      = plugin_dir_url($this->pluginFile());
93
+			$this->setAssetNamespace($asset_namespace);
94
+			$this->setDistributionAssetsPath();
95
+			$this->initialized = true;
96
+		}
97
+	}
98
+
99
+
100
+	/**
101
+	 * @param string $asset_namespace
102
+	 * @return void
103
+	 */
104
+	public function setAssetNamespace($asset_namespace = Domain::ASSET_NAMESPACE)
105
+	{
106
+		if (! $this->asset_namespace) {
107
+			$this->asset_namespace = sanitize_key(
108
+				// convert directory separators to dashes and remove file extension
109
+				str_replace(['/', '.php'], ['-', ''], $asset_namespace)
110
+			);
111
+		}
112
+	}
113
+
114
+
115
+	/**
116
+	 * @throws DomainException
117
+	 * @since $VID:$
118
+	 */
119
+	private function setDistributionAssetsPath()
120
+	{
121
+		$assets_path = $this->pluginPath() . DomainBase::ASSETS_FOLDER;
122
+		if (! is_readable($assets_path)) {
123
+			throw new DomainException(
124
+				sprintf(
125
+					esc_html__(
126
+						'The assets distribution folder was not found or is not readable. Please verify that "%1$s" exists and has valid permissions.',
127
+						'event_espresso'
128
+					),
129
+					$assets_path
130
+				)
131
+			);
132
+		}
133
+		$this->assets_path = trailingslashit($assets_path);
134
+	}
135
+
136
+
137
+	/**
138
+	 * @return string
139
+	 */
140
+	public function pluginFile()
141
+	{
142
+		return (string) $this->plugin_file;
143
+	}
144
+
145
+
146
+	/**
147
+	 * @return string
148
+	 */
149
+	public function pluginBasename()
150
+	{
151
+		return $this->plugin_basename;
152
+	}
153
+
154
+
155
+	/**
156
+	 * @param string $additional_path
157
+	 * @return string
158
+	 */
159
+	public function pluginPath($additional_path = '')
160
+	{
161
+		return is_string($additional_path) && $additional_path !== ''
162
+			? $this->plugin_path . $additional_path
163
+			: $this->plugin_path;
164
+	}
165
+
166
+
167
+	/**
168
+	 * @param string $additional_path
169
+	 * @return string
170
+	 */
171
+	public function pluginUrl($additional_path = '')
172
+	{
173
+		return is_string($additional_path) && $additional_path !== ''
174
+			? $this->plugin_url . $additional_path
175
+			: $this->plugin_url;
176
+	}
177
+
178
+
179
+	/**
180
+	 * @return string
181
+	 */
182
+	public function version()
183
+	{
184
+		return (string) $this->version;
185
+	}
186
+
187
+
188
+	/**
189
+	 * @return Version
190
+	 */
191
+	public function versionValueObject()
192
+	{
193
+		return $this->version;
194
+	}
195
+
196
+
197
+	/**
198
+	 * @return string
199
+	 */
200
+	public function distributionAssetsFolder()
201
+	{
202
+		return DomainBase::ASSETS_FOLDER;
203
+	}
204
+
205
+
206
+	/**
207
+	 * @param string $additional_path
208
+	 * @return string
209
+	 */
210
+	public function distributionAssetsPath($additional_path = '')
211
+	{
212
+		return is_string($additional_path) && $additional_path !== ''
213
+			? $this->assets_path . $additional_path
214
+			: $this->assets_path;
215
+	}
216
+
217
+
218
+	/**
219
+	 * @param string $additional_path
220
+	 * @return string
221
+	 */
222
+	public function distributionAssetsUrl($additional_path = '')
223
+	{
224
+		return is_string($additional_path) && $additional_path !== ''
225
+			? $this->plugin_url . DomainBase::ASSETS_FOLDER . $additional_path
226
+			: $this->plugin_url . DomainBase::ASSETS_FOLDER;
227
+	}
228
+
229
+
230
+	/**
231
+	 * @return string
232
+	 */
233
+	public function assetNamespace()
234
+	{
235
+		return $this->asset_namespace;
236
+	}
237 237
 }
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function initialize($asset_namespace = Domain::ASSET_NAMESPACE)
88 88
     {
89
-        if (! $this->initialized) {
89
+        if ( ! $this->initialized) {
90 90
             $this->plugin_basename = plugin_basename($this->pluginFile());
91 91
             $this->plugin_path     = plugin_dir_path($this->pluginFile());
92 92
             $this->plugin_url      = plugin_dir_url($this->pluginFile());
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function setAssetNamespace($asset_namespace = Domain::ASSET_NAMESPACE)
105 105
     {
106
-        if (! $this->asset_namespace) {
106
+        if ( ! $this->asset_namespace) {
107 107
             $this->asset_namespace = sanitize_key(
108 108
                 // convert directory separators to dashes and remove file extension
109 109
                 str_replace(['/', '.php'], ['-', ''], $asset_namespace)
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
      */
119 119
     private function setDistributionAssetsPath()
120 120
     {
121
-        $assets_path = $this->pluginPath() . DomainBase::ASSETS_FOLDER;
122
-        if (! is_readable($assets_path)) {
121
+        $assets_path = $this->pluginPath().DomainBase::ASSETS_FOLDER;
122
+        if ( ! is_readable($assets_path)) {
123 123
             throw new DomainException(
124 124
                 sprintf(
125 125
                     esc_html__(
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     public function pluginPath($additional_path = '')
160 160
     {
161 161
         return is_string($additional_path) && $additional_path !== ''
162
-            ? $this->plugin_path . $additional_path
162
+            ? $this->plugin_path.$additional_path
163 163
             : $this->plugin_path;
164 164
     }
165 165
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     public function pluginUrl($additional_path = '')
172 172
     {
173 173
         return is_string($additional_path) && $additional_path !== ''
174
-            ? $this->plugin_url . $additional_path
174
+            ? $this->plugin_url.$additional_path
175 175
             : $this->plugin_url;
176 176
     }
177 177
 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     public function distributionAssetsPath($additional_path = '')
211 211
     {
212 212
         return is_string($additional_path) && $additional_path !== ''
213
-            ? $this->assets_path . $additional_path
213
+            ? $this->assets_path.$additional_path
214 214
             : $this->assets_path;
215 215
     }
216 216
 
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
     public function distributionAssetsUrl($additional_path = '')
223 223
     {
224 224
         return is_string($additional_path) && $additional_path !== ''
225
-            ? $this->plugin_url . DomainBase::ASSETS_FOLDER . $additional_path
226
-            : $this->plugin_url . DomainBase::ASSETS_FOLDER;
225
+            ? $this->plugin_url.DomainBase::ASSETS_FOLDER.$additional_path
226
+            : $this->plugin_url.DomainBase::ASSETS_FOLDER;
227 227
     }
228 228
 
229 229
 
Please login to merge, or discard this patch.
registration_form/templates/question_groups_main_meta_box.template.php 1 patch
Indentation   +81 added lines, -81 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 /* @var EE_Question[] $all_questions */
12 12
 assert(isset($all_questions) && (empty($all_questions) || is_array($all_questions)));// list of unused questions
13 13
 foreach ($all_questions as $unused_question) {
14
-    assert($unused_question);
15
-    assert($unused_question instanceof EE_Question);
14
+	assert($unused_question);
15
+	assert($unused_question instanceof EE_Question);
16 16
 }
17 17
 /* @var array $values . Array of arrays, where each sub-array contains 2 keys: 'id' (internal value) and 'name' (label for displaying) */
18 18
 assert(is_array($values));
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
             <th>
32 32
                 <label for="QSG_name">
33 33
                     <?php _e('Group Name', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
34
-                        'group_name_info'
35
-                    ); ?>
34
+						'group_name_info'
35
+					); ?>
36 36
                 </label>
37 37
             </th>
38 38
             <td>
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
             <th>
47 47
                 <label for="QSG_identifier">
48 48
                     <?php _e('Group Identifier', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
49
-                        'group_identifier_info'
50
-                    ); ?>
49
+						'group_identifier_info'
50
+					); ?>
51 51
                 </label>
52 52
             </th>
53 53
             <td>
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
             <th>
67 67
                 <label for="QSG_desc">
68 68
                     <?php _e('Description', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
69
-                        'group_description_info'
70
-                    ); ?>
69
+						'group_description_info'
70
+					); ?>
71 71
                 </label>
72 72
             </th>
73 73
             <td>
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
             <th>
81 81
                 <label for="QSG_order">
82 82
                     <?php _e('Question Group Order', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
83
-                        'group_order_info'
84
-                    ); ?>
83
+						'group_order_info'
84
+					); ?>
85 85
                 </label>
86 86
             </th>
87 87
             <td>
@@ -94,17 +94,17 @@  discard block
 block discarded – undo
94 94
             <th>
95 95
                 <label>
96 96
                     <?php _e('Show Name', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
97
-                        'show_group_name_info'
98
-                    ); ?>
97
+						'show_group_name_info'
98
+					); ?>
99 99
                 </label>
100 100
             </th>
101 101
             <td>
102 102
                 <label for="QSG_show_group_name">
103 103
                     <?php echo EEH_Form_Fields::select_input(
104
-                        'QSG_show_group_name',
105
-                        $values,
106
-                        $question_group->show_group_name()
107
-                    ); ?>
104
+						'QSG_show_group_name',
105
+						$values,
106
+						$question_group->show_group_name()
107
+					); ?>
108 108
                     <p class="description"><?php _e('Show Group Name on Registration Page?', 'event_espresso'); ?></p>
109 109
                 </label>
110 110
             </td>
@@ -114,20 +114,20 @@  discard block
 block discarded – undo
114 114
             <th>
115 115
                 <label>
116 116
                     <?php _e(' Show Description', 'event_espresso'); ?><?php echo EEH_Template::get_help_tab_link(
117
-                        'show_group_description_info'
118
-                    ); ?>
117
+						'show_group_description_info'
118
+					); ?>
119 119
                 </label>
120 120
             </th>
121 121
             <td>
122 122
                 <label for="QSG_show_group_order">
123 123
                     <?php echo EEH_Form_Fields::select_input(
124
-                        'QSG_show_group_desc',
125
-                        $values,
126
-                        $question_group->show_group_desc()
127
-                    ); ?>
124
+						'QSG_show_group_desc',
125
+						$values,
126
+						$question_group->show_group_desc()
127
+					); ?>
128 128
                     <p class="description"><?php
129
-                        _e(' Show Group Description on Registration Page?', 'event_espresso');
130
-                    ?></p>
129
+						_e(' Show Group Description on Registration Page?', 'event_espresso');
130
+					?></p>
131 131
                 </label>
132 132
                 <input type="hidden" name="QSG_system" value="<?php echo $question_group->system_group(); ?>">
133 133
             </td>
@@ -143,82 +143,82 @@  discard block
 block discarded – undo
143 143
     <div class="form-table question-group-questions inside">
144 144
         <div class="padding">
145 145
             <p><span class="description"><?php
146
-                    _e(
147
-                        'Select which questions should be shown in this group by checking or unchecking boxes. You can drag and drop questions to reorder them. Your changes will be updated when you save.',
148
-                        'event_espresso'
149
-                    ); ?></span></p>
146
+					_e(
147
+						'Select which questions should be shown in this group by checking or unchecking boxes. You can drag and drop questions to reorder them. Your changes will be updated when you save.',
148
+						'event_espresso'
149
+					); ?></span></p>
150 150
             <div>
151 151
                 <ul class="question-list-sortable">
152 152
                     <?php
153
-                    $question_order = 0;
154
-                    $question_group_questions = $question_group->questions();
155
-                    foreach ($all_questions as $question_ID => $question) {
156
-                        if ($question instanceof EE_Question) {
157
-                            /*@var $question EE_Question*/
158
-                            $checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : '';
159
-                            // disable questions from the personal information question group
160
-                            // is it required in the current question group? if so don't allow admins to remove it
161
-                            $disabled = in_array(
162
-                                $question->system_ID(),
163
-                                EEM_Question::instance()->required_system_questions_in_system_question_group(
164
-                                    $QSG_system
165
-                                )
166
-                            ) ? 'disabled="disabled"' : '';
167
-                            // limit where system questions can appear
168
-                            if ($question->system_ID() &&
169
-                                ! in_array(
170
-                                    $question->system_ID(),
171
-                                    EEM_Question::instance()->allowed_system_questions_in_system_question_group(
172
-                                        $QSG_system
173
-                                    )
174
-                                )
175
-                            ) {
176
-                                continue; // skip over system question not assigned to this group except for the address system group cause we want the address questions to display even if they aren't selected (but still not show the personal system questions).  The third condition checks if we're displaying a non system question group and the question is a system question, then we skip because for non-system question groups we only want to show non-system questions.
177
-                            }
178
-                            ?>
153
+					$question_order = 0;
154
+					$question_group_questions = $question_group->questions();
155
+					foreach ($all_questions as $question_ID => $question) {
156
+						if ($question instanceof EE_Question) {
157
+							/*@var $question EE_Question*/
158
+							$checked = isset($question_group_questions[ $question_ID ]) ? ' checked="checked"' : '';
159
+							// disable questions from the personal information question group
160
+							// is it required in the current question group? if so don't allow admins to remove it
161
+							$disabled = in_array(
162
+								$question->system_ID(),
163
+								EEM_Question::instance()->required_system_questions_in_system_question_group(
164
+									$QSG_system
165
+								)
166
+							) ? 'disabled="disabled"' : '';
167
+							// limit where system questions can appear
168
+							if ($question->system_ID() &&
169
+								! in_array(
170
+									$question->system_ID(),
171
+									EEM_Question::instance()->allowed_system_questions_in_system_question_group(
172
+										$QSG_system
173
+									)
174
+								)
175
+							) {
176
+								continue; // skip over system question not assigned to this group except for the address system group cause we want the address questions to display even if they aren't selected (but still not show the personal system questions).  The third condition checks if we're displaying a non system question group and the question is a system question, then we skip because for non-system question groups we only want to show non-system questions.
177
+							}
178
+							?>
179 179
                             <li class="ee-question-sortable">
180 180
                                 <label for="question-<?php echo $question_ID ?>">
181 181
                                     <input type="checkbox" name="questions[<?php echo $question_ID; ?>]"
182 182
                                            id="question-<?php echo $question_ID; ?>"
183 183
                                            value="<?php echo $question_ID; ?>"<?php echo $disabled; ?><?php echo $checked; ?>/>
184 184
                                     <span class="question-text"><?php
185
-                                        echo trim($question->display_text())
186
-                                             . (95 <= strlen(trim($question->display_text()))
187
-                                                ? "&hellip;"
188
-                                                : '');
189
-                                                                ?>
185
+										echo trim($question->display_text())
186
+											 . (95 <= strlen(trim($question->display_text()))
187
+												? "&hellip;"
188
+												: '');
189
+																?>
190 190
                                     </span>
191 191
                                     <input class="question-group-QGQ_order" type="hidden"
192 192
                                            name="question_orders[<?php echo $question_ID; ?>]"
193 193
                                            value="<?php echo $question_order; ?>">
194 194
                                 </label>
195 195
                                 <?php
196
-                                if (EE_Registry::instance()->CAP->current_user_can(
197
-                                    'ee_edit_question',
198
-                                    'espresso_registration_form_edit_question',
199
-                                    $question->ID()
200
-                                )) {
201
-                                    $edit_query_args = array(
202
-                                        'action' => 'edit_question',
203
-                                        'QST_ID' => $question->ID(),
204
-                                    );
205
-                                    $edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
196
+								if (EE_Registry::instance()->CAP->current_user_can(
197
+									'ee_edit_question',
198
+									'espresso_registration_form_edit_question',
199
+									$question->ID()
200
+								)) {
201
+									$edit_query_args = array(
202
+										'action' => 'edit_question',
203
+										'QST_ID' => $question->ID(),
204
+									);
205
+									$edit_link = EE_Admin_Page::add_query_args_and_nonce($edit_query_args, EE_FORMS_ADMIN_URL);
206 206
 
207
-                                    echo '<a href="' . $edit_link . '" target="_blank" title="' .
208
-                                        sprintf(
209
-                                            esc_attr__('Edit %s', 'event_espresso'),
210
-                                            $question->admin_label()
211
-                                        )
212
-                                        . '"><span class="dashicons dashicons-edit"></span>
207
+									echo '<a href="' . $edit_link . '" target="_blank" title="' .
208
+										sprintf(
209
+											esc_attr__('Edit %s', 'event_espresso'),
210
+											$question->admin_label()
211
+										)
212
+										. '"><span class="dashicons dashicons-edit"></span>
213 213
                                         </a>';
214
-                                }
215
-                                ?>
214
+								}
215
+								?>
216 216
                             </li>
217 217
                             <?php
218
-                            $question_order++;
219
-                        }
220
-                    }
221
-                    ?>
218
+							$question_order++;
219
+						}
220
+					}
221
+					?>
222 222
                 </ul>
223 223
             </div>
224 224
         </div>
Please login to merge, or discard this patch.
caffeinated/admin/extend/about/templates/whats_new.template.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,58 +1,58 @@
 block discarded – undo
1 1
 <div class="changelog point-releases">
2 2
     <!-- <h3><?php echo esc_html(
3
-        _n('Minor Release Information', 'Minor Releases', 1, 'event_espresso')
4
-    ); ?></h3> -->
3
+		_n('Minor Release Information', 'Minor Releases', 1, 'event_espresso')
4
+	); ?></h3> -->
5 5
     <h3><?php echo esc_html(
6
-        _n('Major Release Information', 'Major Releases', 1, 'event_espresso')
7
-    ); ?></h3>
6
+		_n('Major Release Information', 'Major Releases', 1, 'event_espresso')
7
+	); ?></h3>
8 8
     <?php // $type = 'minor'; ?>
9 9
     <?php $type = 'major'; ?>
10 10
     <p><?php
11
-        printf(
12
-            esc_html__('%1$sVersion %2$s%3$s is a %4$s release.', 'event_espresso'),
13
-            '<strong>',
14
-            EVENT_ESPRESSO_VERSION,
15
-            '</strong>',
16
-            $type
17
-        ); ?>
11
+		printf(
12
+			esc_html__('%1$sVersion %2$s%3$s is a %4$s release.', 'event_espresso'),
13
+			'<strong>',
14
+			EVENT_ESPRESSO_VERSION,
15
+			'</strong>',
16
+			$type
17
+		); ?>
18 18
         <?php
19
-        $ver = explode('.', EVENT_ESPRESSO_VERSION);
20
-        array_pop($ver);
21
-        $ver = implode('.', $ver);
22
-        ?>
19
+		$ver = explode('.', EVENT_ESPRESSO_VERSION);
20
+		array_pop($ver);
21
+		$ver = implode('.', $ver);
22
+		?>
23 23
         <?php printf(
24
-            esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'),
25
-            '<a href="http://eventespresso.com/wiki/ee4-changelog/#' . $ver . '" target="_blank" rel="noopener noreferrer">',
26
-            '</a>'
27
-        ); ?>
24
+			esc_html__('For more information, see %1$sthe release notes%2$s.', 'event_espresso'),
25
+			'<a href="http://eventespresso.com/wiki/ee4-changelog/#' . $ver . '" target="_blank" rel="noopener noreferrer">',
26
+			'</a>'
27
+		); ?>
28 28
     </p>
29 29
 </div><!-- end .changelog .point-releases -->
30 30
 
31 31
 <div class="changelog">
32 32
     <?php
33
-    // maintenance mode on?
34
-    if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
35
-        ?>
33
+	// maintenance mode on?
34
+	if (EE_Maintenance_Mode::instance()->level() == EE_Maintenance_Mode::level_2_complete_maintenance) {
35
+		?>
36 36
         <div class="ee-attention">
37 37
             <h2 class="ee-maintenance-mode-callout"><?php
38
-                esc_html_e('Event Espresso is in full maintenance mode.', 'event_espresso');
39
-            ?></h2>
38
+				esc_html_e('Event Espresso is in full maintenance mode.', 'event_espresso');
39
+			?></h2>
40 40
             <p>
41 41
                 <?php
42
-                printf(
43
-                    esc_html__(
44
-                        'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %1$sEvent Espresso Maintenance%2$s page.',
45
-                        'event_espresso'
46
-                    ),
47
-                    '<a href="admin.php?page=espresso_maintenance_settings">',
48
-                    '</a>'
49
-                );
50
-                ?>
42
+				printf(
43
+					esc_html__(
44
+						'A previous version of Event Espresso has detected. But before anything else can happen, we need to know whether or not to migrate (copy over) your existing event data so that it can be utilized by EE4. For more instructions on what to do, please visit the %1$sEvent Espresso Maintenance%2$s page.',
45
+						'event_espresso'
46
+					),
47
+					'<a href="admin.php?page=espresso_maintenance_settings">',
48
+					'</a>'
49
+				);
50
+				?>
51 51
             </p>
52 52
         </div>
53 53
         <?php
54
-    }
55
-    ?>
54
+	}
55
+	?>
56 56
 
57 57
     <h2 class="about-headline-callout">Updates &amp; Fixes in EE 4.10</h2>
58 58
     <p>This release brought many background updates/improvements to existing core features, and support for many new
Please login to merge, or discard this patch.
admin/extend/events/templates/event_datetime_timezones.template.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
         <span class="current-date"> <?php echo $current_date; ?></span>
5 5
         <?php echo $current_time_help_link; ?>
6 6
         <a id="change-date-time-lnk" href="options-general.php" target="_blank"><?php
7
-            _e('Change timezone and date format settings?', 'event_espresso');
8
-        ?></a>
7
+			_e('Change timezone and date format settings?', 'event_espresso');
8
+		?></a>
9 9
 
10 10
         <h6> <?php _e('Event Timezone:', 'event_espresso') ?> </h6>
11 11
         <?php echo $event_timezone; ?>
Please login to merge, or discard this patch.
admin/new/pricing/templates/pricing_details_main_meta_box.template.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -4,40 +4,40 @@  discard block
 block discarded – undo
4 4
         <tbody>
5 5
         <tr valign="top">
6 6
             <th><label for="PRT_ID"><?php
7
-                    _e(
8
-                        'Type',
9
-                        'event_espresso'
10
-                    ); ?></label> <?php echo EEH_Template::get_help_tab_link('type_field_info'); ?></th>
7
+					_e(
8
+						'Type',
9
+						'event_espresso'
10
+					); ?></label> <?php echo EEH_Template::get_help_tab_link('type_field_info'); ?></th>
11 11
             <td>
12 12
                 <?php if ($price->type_obj() && $price->type_obj()->base_type() === 1) : ?>
13 13
                     <input type="hidden" name="PRT_ID" id="PRT_ID" value="<?php echo $price->type(); ?>"/>
14 14
                     <p><strong><?php _e('Price', 'event_espresso'); ?></strong></p>
15 15
                     <p class="description">
16 16
                         <?php
17
-                        _e(
18
-                            'This is the default base price. Every new ticket created will start off with this base price.',
19
-                            'event_espresso'
20
-                        );
21
-                        ?>
17
+						_e(
18
+							'This is the default base price. Every new ticket created will start off with this base price.',
19
+							'event_espresso'
20
+						);
21
+						?>
22 22
                     </p>
23 23
                 <?php else : ?>
24 24
                     <?php echo EEH_Form_Fields::select_input('PRT_ID', $price_types, $price->type(), 'id="PRT_ID"'); ?>
25 25
                     <p class="description">
26 26
                         <?php
27
-                            _e(
28
-                                'Price Modifier. Default items will apply to ALL new events you create.',
29
-                                'event_espresso'
30
-                            );
31
-                        ?></p>
27
+							_e(
28
+								'Price Modifier. Default items will apply to ALL new events you create.',
29
+								'event_espresso'
30
+							);
31
+						?></p>
32 32
                 <?php endif; ?>
33 33
             </td>
34 34
         </tr>
35 35
         <tr valign="top">
36 36
             <th><label for="PRC_name"><?php
37
-                    _e(
38
-                        'Name',
39
-                        'event_espresso'
40
-                    ); ?></label> <?php echo EEH_Template::get_help_tab_link('name_field_info'); ?></th>
37
+					_e(
38
+						'Name',
39
+						'event_espresso'
40
+					); ?></label> <?php echo EEH_Template::get_help_tab_link('name_field_info'); ?></th>
41 41
             <td>
42 42
                 <input class="regular-text" type="text" id="PRC_name" name="PRC_name"
43 43
                        value="<?php $price->f('PRC_name'); ?>"/>
@@ -45,22 +45,22 @@  discard block
 block discarded – undo
45 45
         </tr>
46 46
         <tr valign="top">
47 47
             <th><label for="PRC_desc"><?php
48
-                    _e(
49
-                        'Description',
50
-                        'event_espresso'
51
-                    ); ?></label> <?php echo EEH_Template::get_help_tab_link('description_field_info'); ?></th>
48
+					_e(
49
+						'Description',
50
+						'event_espresso'
51
+					); ?></label> <?php echo EEH_Template::get_help_tab_link('description_field_info'); ?></th>
52 52
             <td>
53 53
                     <textarea class="regular-text" id="PRC_desc" name="PRC_desc" rows="5"><?php
54
-                        $price->f('PRC_desc');
55
-                    ?></textarea><br/>
54
+						$price->f('PRC_desc');
55
+					?></textarea><br/>
56 56
             </td>
57 57
         </tr>
58 58
         <tr valign="top">
59 59
             <th><label for="PRC_amount"><?php
60
-                    _e(
61
-                        'Amount',
62
-                        'event_espresso'
63
-                    ); ?><?php echo EEH_Template::get_help_tab_link('amount_field_info'); ?></label></th>
60
+					_e(
61
+						'Amount',
62
+						'event_espresso'
63
+					); ?><?php echo EEH_Template::get_help_tab_link('amount_field_info'); ?></label></th>
64 64
             <td>
65 65
                 <input class="small-text ee-numeric" type="text" id="PRC_amount" name="PRC_amount"
66 66
                        value="<?php echo $price->amount(); ?>"/>
Please login to merge, or discard this patch.
admin/new/pricing/templates/event_tickets_datetime_ticket_row.template.php 3 patches
Indentation   +106 added lines, -106 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <tr valign="top" class="ee-ticket-sortable ticket-row<?php echo $ticket_archive_class;
2 2
 if (WP_DEBUG) {
3
-    echo ' ee-wp-debug';
3
+	echo ' ee-wp-debug';
4 4
 } ?>" id="display-ticketrow-<?php echo $tkt_row; ?>">
5 5
     <!--<td class="ee-tkt-order-field"><span class="dashicons dashicons-sort<?php echo $tkt_status_class; ?>"><input type="hidden" name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_order]" class="edit-ticket-TKT_order" value ="<?php echo $TKT_order; ?>" ></span></td>-->
6 6
     <td class="ee-tkt-order-field"><span
@@ -107,9 +107,9 @@  discard block
 block discarded – undo
107 107
                    class="edit-ticket-TKT_row" value="<?php echo $tkt_row; ?>">
108 108
 
109 109
             <!--<div class="total-price-container"><?php printf(
110
-                esc_html__('Total Final Price: %s', 'event_espresso'),
111
-                '<span class="ticket-price-amount">' . $TKT_price . '</span>'
112
-            ); ?> </div>-->
110
+				esc_html__('Total Final Price: %s', 'event_espresso'),
111
+				'<span class="ticket-price-amount">' . $TKT_price . '</span>'
112
+			); ?> </div>-->
113 113
             <textarea name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_description]"
114 114
                       class="edit-ticket-TKT_description ee-full-textarea-inp"
115 115
                       placeholder="Ticket Description"><?php echo $TKT_description; ?></textarea>
@@ -123,20 +123,20 @@  discard block
 block discarded – undo
123 123
                     <thead>
124 124
                     <tr valign="bottom">
125 125
                         <td><span class="TD_TKT_number_datetimes_label"><?php
126
-                                esc_html_e(
127
-                                    '# Datetimes',
128
-                                    'event_espresso'
129
-                                ); ?></span></td>
126
+								esc_html_e(
127
+									'# Datetimes',
128
+									'event_espresso'
129
+								); ?></span></td>
130 130
                         <td><span class="TD_TKT_min_qty_label"><?php
131
-                                esc_html_e(
132
-                                    'Minimum Quantity',
133
-                                    'event_espresso'
134
-                                ); ?></span></td>
131
+								esc_html_e(
132
+									'Minimum Quantity',
133
+									'event_espresso'
134
+								); ?></span></td>
135 135
                         <td><span class="TD_TKT_max_qty_label"><?php
136
-                                esc_html_e(
137
-                                    'Maximum Quantity',
138
-                                    'event_espresso'
139
-                                ); ?></span></td>
136
+								esc_html_e(
137
+									'Maximum Quantity',
138
+									'event_espresso'
139
+								); ?></span></td>
140 140
                     </tr>
141 141
                     </thead>
142 142
                     <tbody>
@@ -194,24 +194,24 @@  discard block
 block discarded – undo
194 194
                     <input type="checkbox"
195 195
                            name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_required]"
196 196
                            class="edit-ticket-TKT_required" value="1"<?php
197
-                            echo $TKT_required
198
-                                ? ' checked="checked"'
199
-                                : '';
200
-                            echo $disabled
201
-                                ? ' disabled'
202
-                                : ''; ?>>
197
+							echo $TKT_required
198
+								? ' checked="checked"'
199
+								: '';
200
+							echo $disabled
201
+								? ' disabled'
202
+								: ''; ?>>
203 203
                     <label for="edit-ticket-TKT_required"><?php
204
-                        esc_html_e(
205
-                            'This ticket is required (will appear first in frontend ticket lists).',
206
-                            'event_espresso'
207
-                        ); ?></label>
204
+						esc_html_e(
205
+							'This ticket is required (will appear first in frontend ticket lists).',
206
+							'event_espresso'
207
+						); ?></label>
208 208
                 </div>
209 209
                 <div class="ticket-is-taxable-container">
210 210
                     <?php if (! empty($tax_rows)) { ?>
211 211
                         <?php if ($disabled) : ?>
212 212
                             <?php
213
-                            $tax_value = ! empty($TKT_taxable) ? 1 : 0;
214
-                            ?>
213
+							$tax_value = ! empty($TKT_taxable) ? 1 : 0;
214
+							?>
215 215
                         <input class="TKT-taxable-checkbox" type="hidden"
216 216
                                name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_taxable]"
217 217
                                value="<?php echo $tax_value; ?>">
@@ -225,16 +225,16 @@  discard block
 block discarded – undo
225 225
                                value="1"<?php echo $TKT_taxable; ?>>
226 226
                         <?php endif; ?>
227 227
                     <label for="edit-ticket-TKT_taxable-<?php echo $tkt_row; ?>"> <?php
228
-                        esc_html_e('This ticket is taxable.', 'event_espresso'); ?>
228
+						esc_html_e('This ticket is taxable.', 'event_espresso'); ?>
229 229
                     <?php } //end tax_rows check ?>
230 230
                 </div>
231 231
             </div>
232 232
             <div class="price-table-container">
233 233
                 <h4 class="tickets-heading price-table-info"<?php echo $show_price_modifier; ?>><?php
234
-                    esc_html_e(
235
-                        'Price Modifiers',
236
-                        'event_espresso'
237
-                    ); ?></h4>
234
+					esc_html_e(
235
+						'Price Modifiers',
236
+						'event_espresso'
237
+					); ?></h4>
238 238
                 <table class="price-table">
239 239
                     <thead class="price-table-info"<?php echo $show_price_modifier; ?>>
240 240
                     <tr>
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
                     <tr class="price-subtotal-row TKT-taxes-display"<?php echo $display_subtotal; ?>>
255 255
                         <td colspan="4" class="ee-numeric">
256 256
                             <span class="TKT-taxable-subtotal-label"><strong><?php
257
-                                    esc_html_e(
258
-                                        'Subtotal',
259
-                                        'event_espresso'
260
-                                    ); ?></strong></span>
257
+									esc_html_e(
258
+										'Subtotal',
259
+										'event_espresso'
260
+									); ?></strong></span>
261 261
                         </td>
262 262
                         <td class="ee-numeric">
263 263
                             <span
@@ -290,51 +290,51 @@  discard block
 block discarded – undo
290 290
             <div style="clear:both"></div>
291 291
             <h4 class="tickets-heading"><?php esc_html_e('Event Datetimes', 'event_espresso'); ?></h4>
292 292
             <p><?php
293
-                esc_html_e(
294
-                    'This ticket will be usable (allow entrance) for the following selected event datetimes (click to select).  The "# Datetimes" amount (above) indicates how many of the assigned datetimes the ticket holder can gain access to:',
295
-                    'event_espresso'
296
-                ); ?></p>
293
+				esc_html_e(
294
+					'This ticket will be usable (allow entrance) for the following selected event datetimes (click to select).  The "# Datetimes" amount (above) indicates how many of the assigned datetimes the ticket holder can gain access to:',
295
+					'event_espresso'
296
+				); ?></p>
297 297
             <ul class="datetime-tickets-list">
298 298
                 <?php echo $ticket_datetimes_list; ?>
299 299
             </ul>
300 300
 
301 301
             <?php do_action(
302
-                'AHEE__event_tickets_datetime_ticket_row_template__advanced_details_end',
303
-                $tkt_row,
304
-                $TKT_ID
305
-            ); ?>
302
+				'AHEE__event_tickets_datetime_ticket_row_template__advanced_details_end',
303
+				$tkt_row,
304
+				$TKT_ID
305
+			); ?>
306 306
             <div class="ee-editor-footer-container">
307 307
                 <div class="ee-editor-id-container">
308 308
                     <span class="ee-item-id"><?php echo
309
-                        $TKT_ID
310
-                            ? sprintf(
311
-                                esc_html__('Ticket ID: %d', 'event_espresso'),
312
-                                $TKT_ID
313
-                            )
314
-                                             : ''; ?></span>
309
+						$TKT_ID
310
+							? sprintf(
311
+								esc_html__('Ticket ID: %d', 'event_espresso'),
312
+								$TKT_ID
313
+							)
314
+											 : ''; ?></span>
315 315
                 </div>
316 316
                 <div class="save-cancel-button-container">
317 317
                     <label for="edit-ticket-TKT_is_default_selector"><?php
318
-                        esc_html_e(
319
-                            'use this new ticket as a default ticket for any new events',
320
-                            'event_espresso'
321
-                        ); ?></label>
318
+						esc_html_e(
319
+							'use this new ticket as a default ticket for any new events',
320
+							'event_espresso'
321
+						); ?></label>
322 322
                     <input type="checkbox"
323 323
                            name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_is_default_selector]"
324 324
                            class="edit-ticket-TKT_is_default_selector" value="1"<?php
325
-                            echo $disabled
326
-                                ? ' disabled'
327
-                                : ''; ?>>
325
+							echo $disabled
326
+								? ' disabled'
327
+								: ''; ?>>
328 328
                     <input type="hidden"
329 329
                            name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_is_default]"
330 330
                            class="edit-ticket-TKT_is_default" value="<?php echo $TKT_is_default; ?>">
331 331
                     <!--<button class="button-primary ee-save-button" data-context="ticket" data-ticket-row="<?php echo $tkt_row; ?>"><?php esc_html_e(
332
-                        'Update Ticket',
333
-                        'event_espresso'
334
-                    ); ?></button>-->
332
+						'Update Ticket',
333
+						'event_espresso'
334
+					); ?></button>-->
335 335
                     <button class="button-secondary ee-cancel-button" data-context="ticket"
336 336
                             data-ticket-row="<?php echo $tkt_row; ?>"><?php
337
-                                    esc_html_e('Close', 'event_espresso'); ?></button>
337
+									esc_html_e('Close', 'event_espresso'); ?></button>
338 338
                 </div>
339 339
             </div>
340 340
             <!-- these hidden inputs are for tracking changes in dtts attached to tickets during a js session -->
@@ -356,47 +356,47 @@  discard block
 block discarded – undo
356 356
 </tr>
357 357
 <?php
358 358
 /**
359
- * template args in use
360
- *
361
- * $tkt_row
362
- * $tkt_status_class
363
- * $TKT_name
364
- * $TKT_start_date
365
- * $TKT_end_date
366
- * $TKT_status
367
- * $TKT_price
368
- * $TKT_qty
369
- * $TKT_uses
370
- * $TKT_min
371
- * $TKT_max
372
- * $TKT_sold
373
- * $TKT_registrations
374
- * $TKT_ID
375
- * $TKT_description
376
- * $TKT_is_default
377
- * $TKT_price_rows
378
- * $TKT_base_price
379
- * $TKT_base_price_ID
380
- * $TKT_order
381
- * $disabled
382
- * $ticket_archive_class
383
- * $trash_icon
384
- * $trash_hidden
385
- * $clone_icon
386
- * $display_edit_tkt_row
387
- * $edit_tkt_expanded
388
- *
389
- * $TKT_taxable
390
- * $display_subtotal
391
- * $TKT_subtotal_amount
392
- * $tax_rows
393
- *
394
- * $show_price_modifier;
395
- * $total_price_rows
396
- * $ticket_datetimes_list
397
- * $starting_ticket_datetime_rows (datetimes attached to ticket on page load)
398
- * $existing_ticket_price_ids;
399
- * $ticket_template_id;
400
- * $show_price_modifier
401
- * $show_price_mod_button
402
- */
359
+									 * template args in use
360
+									 *
361
+									 * $tkt_row
362
+									 * $tkt_status_class
363
+									 * $TKT_name
364
+									 * $TKT_start_date
365
+									 * $TKT_end_date
366
+									 * $TKT_status
367
+									 * $TKT_price
368
+									 * $TKT_qty
369
+									 * $TKT_uses
370
+									 * $TKT_min
371
+									 * $TKT_max
372
+									 * $TKT_sold
373
+									 * $TKT_registrations
374
+									 * $TKT_ID
375
+									 * $TKT_description
376
+									 * $TKT_is_default
377
+									 * $TKT_price_rows
378
+									 * $TKT_base_price
379
+									 * $TKT_base_price_ID
380
+									 * $TKT_order
381
+									 * $disabled
382
+									 * $ticket_archive_class
383
+									 * $trash_icon
384
+									 * $trash_hidden
385
+									 * $clone_icon
386
+									 * $display_edit_tkt_row
387
+									 * $edit_tkt_expanded
388
+									 *
389
+									 * $TKT_taxable
390
+									 * $display_subtotal
391
+									 * $TKT_subtotal_amount
392
+									 * $tax_rows
393
+									 *
394
+									 * $show_price_modifier;
395
+									 * $total_price_rows
396
+									 * $ticket_datetimes_list
397
+									 * $starting_ticket_datetime_rows (datetimes attached to ticket on page load)
398
+									 * $existing_ticket_price_ids;
399
+									 * $ticket_template_id;
400
+									 * $show_price_modifier
401
+									 * $show_price_mod_button
402
+									 */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
             <!--<div class="total-price-container"><?php printf(
110 110
                 esc_html__('Total Final Price: %s', 'event_espresso'),
111
-                '<span class="ticket-price-amount">' . $TKT_price . '</span>'
111
+                '<span class="ticket-price-amount">'.$TKT_price.'</span>'
112 112
             ); ?> </div>-->
113 113
             <textarea name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_description]"
114 114
                       class="edit-ticket-TKT_description ee-full-textarea-inp"
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
                         ); ?></label>
208 208
                 </div>
209 209
                 <div class="ticket-is-taxable-container">
210
-                    <?php if (! empty($tax_rows)) { ?>
210
+                    <?php if ( ! empty($tax_rows)) { ?>
211 211
                         <?php if ($disabled) : ?>
212 212
                             <?php
213 213
                             $tax_value = ! empty($TKT_taxable) ? 1 : 0;
Please login to merge, or discard this patch.
Braces   +40 added lines, -16 removed lines patch added patch discarded remove patch
@@ -19,8 +19,11 @@  discard block
 block discarded – undo
19 19
                    class="edit-ticket-TKT_start_date ee-text-inp" value="<?php echo $TKT_start_date; ?>">
20 20
             <input type="text" name="archived_ticket[TKT_start_date]" class="edit-ticket-TKT_start_date ee-text-inp"
21 21
                    value="<?php echo $TKT_start_date; ?>" disabled>
22
-        <?php else : ?>
23
-            <input id="edit-ticket-TKT_start_date-<?php echo $tkt_row; ?>" type="text"
22
+        <?php else {
23
+	: ?>
24
+            <input id="edit-ticket-TKT_start_date-<?php echo $tkt_row;
25
+}
26
+?>" type="text"
24 27
                    name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_start_date]"
25 28
                    class="edit-ticket-TKT_start_date ee-text-inp ee-datepicker" value="<?php echo $TKT_start_date; ?>"
26 29
                    data-context="start-ticket" data-date-field-context="#display-ticketrow-<?php echo $tkt_row; ?>"
@@ -34,8 +37,11 @@  discard block
 block discarded – undo
34 37
                    class="edit-ticket-TKT_end_date ee-text-inp" value="<?php echo $TKT_end_date; ?>">
35 38
             <input type="text" name="archived_ticket[TKT_end_date]" class="edit-ticket-TKT_end_date ee-text-inp"
36 39
                    value="<?php echo $TKT_end_date; ?>" disabled>
37
-        <?php else : ?>
38
-            <input id="edit-ticket-TKT_end_date-<?php echo $tkt_row; ?>" type="text"
40
+        <?php else {
41
+	: ?>
42
+            <input id="edit-ticket-TKT_end_date-<?php echo $tkt_row;
43
+}
44
+?>" type="text"
39 45
                    name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_end_date]"
40 46
                    class="edit-ticket-TKT_end_date ee-text-inp ee-datepicker" value="<?php echo $TKT_end_date; ?>"
41 47
                    data-context="end-ticket" data-date-field-context="#display-ticketrow-<?php echo $tkt_row; ?>"
@@ -51,8 +57,11 @@  discard block
 block discarded – undo
51 57
             <input type="text" name="archived_ticket[<?php echo $tkt_row; ?>][TKT_base_price]"
52 58
                    class="edit-ticket-TKT_base_price ee-small-text-inp edit-price-PRC_amount ee-numeric"
53 59
                    value="<?php echo $TKT_base_price; ?>" disabled>
54
-        <?php else : ?>
55
-            <input id="edit-ticket-TKT_base_price-<?php echo $tkt_row; ?>" type="text"
60
+        <?php else {
61
+	: ?>
62
+            <input id="edit-ticket-TKT_base_price-<?php echo $tkt_row;
63
+}
64
+?>" type="text"
56 65
                    name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_base_price]"
57 66
                    class="edit-ticket-TKT_base_price ee-small-text-inp edit-price-PRC_amount ee-numeric"
58 67
                    value="<?php echo $TKT_base_price; ?>">
@@ -69,8 +78,11 @@  discard block
 block discarded – undo
69 78
             <input type="text" class="edit-ticket-TKT_qty ee-small-text-inp ee-numeric"
70 79
                    name="archived_ticket[<?php echo $tkt_row; ?>][TKT_qty]" value="<?php echo $TKT_qty_for_input; ?>"
71 80
                    disabled>
72
-        <?php else : ?>
73
-            <input type="text" id="edit-ticket-TKT_qty-<?php echo $tkt_row; ?>"
81
+        <?php else {
82
+	: ?>
83
+            <input type="text" id="edit-ticket-TKT_qty-<?php echo $tkt_row;
84
+}
85
+?>"
74 86
                    class="edit-ticket-TKT_qty ee-small-text-inp ee-numeric"
75 87
                    name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_qty]"
76 88
                    value="<?php echo $TKT_qty_for_input; ?>">
@@ -149,9 +161,12 @@  discard block
 block discarded – undo
149 161
                                 <input type="text" class="edit-ticket-TKT_uses ee-small-text-inp ee-numeric"
150 162
                                        name="archived_ticket[<?php echo $tkt_row; ?>][TKT_uses]"
151 163
                                        value="<?php echo $TKT_uses; ?>" disabled>
152
-                            <?php else : ?>
164
+                            <?php else {
165
+	: ?>
153 166
                                 <input type="text" class="edit-ticket-TKT_uses ee-small-text-inp ee-numeric"
154
-                                       name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_uses]"
167
+                                       name="<?php echo $edit_tickets_name;
168
+}
169
+?>[<?php echo $tkt_row; ?>][TKT_uses]"
155 170
                                        value="<?php echo $TKT_uses; ?>">
156 171
                             <?php endif; ?>
157 172
                         </td>
@@ -163,9 +178,12 @@  discard block
 block discarded – undo
163 178
                                 <input type="text" class="edit-ticket-TKT_min ee-small-text-inp ee-numeric"
164 179
                                        name="archived_ticket[<?php echo $tkt_row; ?>][TKT_min]"
165 180
                                        value="<?php echo $TKT_min; ?>" disabled>
166
-                            <?php else : ?>
181
+                            <?php else {
182
+	: ?>
167 183
                                 <input type="text" class="edit-ticket-TKT_min ee-small-text-inp ee-numeric"
168
-                                       name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_min]"
184
+                                       name="<?php echo $edit_tickets_name;
185
+}
186
+?>[<?php echo $tkt_row; ?>][TKT_min]"
169 187
                                        value="<?php echo $TKT_min; ?>">
170 188
                             <?php endif; ?>
171 189
                         </td>
@@ -177,9 +195,12 @@  discard block
 block discarded – undo
177 195
                                 <input type="text" class="edit-ticket-TKT_max ee-small-text-inp ee-numeric"
178 196
                                        name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_max]"
179 197
                                        value="<?php echo $TKT_max; ?>" disabled>
180
-                            <?php else : ?>
198
+                            <?php else {
199
+	: ?>
181 200
                                 <input type="text" class="edit-ticket-TKT_max ee-small-text-inp ee-numeric"
182
-                                       name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_max]"
201
+                                       name="<?php echo $edit_tickets_name;
202
+}
203
+?>[<?php echo $tkt_row; ?>][TKT_max]"
183 204
                                        value="<?php echo $TKT_max; ?>">
184 205
                             <?php endif; ?>
185 206
                         </td>
@@ -218,8 +239,11 @@  discard block
 block discarded – undo
218 239
                         <input class="TKT-taxable-checkbox" id="edit-ticket-TKT_taxable-<?php echo $tkt_row; ?>"
219 240
                                type="checkbox" name="archived_ticket[<?php echo $tkt_row; ?>][TKT_taxable]"
220 241
                                value="1"<?php echo $TKT_taxable; ?> disabled>
221
-                        <?php else : ?>
222
-                        <input class="TKT-taxable-checkbox" id="edit-ticket-TKT_taxable-<?php echo $tkt_row; ?>"
242
+                        <?php else {
243
+	: ?>
244
+                        <input class="TKT-taxable-checkbox" id="edit-ticket-TKT_taxable-<?php echo $tkt_row;
245
+}
246
+?>"
223 247
                                type="checkbox"
224 248
                                name="<?php echo $edit_tickets_name; ?>[<?php echo $tkt_row; ?>][TKT_taxable]"
225 249
                                value="1"<?php echo $TKT_taxable; ?>>
Please login to merge, or discard this patch.