Completed
Branch dependabot/composer/tijsverkoy... (491ea6)
by
unknown
32:00 queued 25:42
created
core/request_stack/EE_Request_Stack.core.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -12,25 +12,25 @@
 block discarded – undo
12 12
  */
13 13
 class EE_Request_Stack
14 14
 {
15
-    /**
16
-     * @deprecated  4.9.53
17
-     * @param    EEI_Request_Decorator $application
18
-     * @param    array                 $middlewares
19
-     */
20
-    public function __construct(EEI_Request_Decorator $application, $middlewares = array())
21
-    {
22
-        EE_Error::doing_it_wrong(
23
-            __METHOD__,
24
-            sprintf(
25
-                esc_html__(
26
-                    'This class is deprecated. Please use %1$s instead. All Event Espresso request stack classes have been moved to %2$s and are now under the %3$s namespace',
27
-                    'event_espresso'
28
-                ),
29
-                'EventEspresso\core\services\request\RequestStack',
30
-                '\core\services\request',
31
-                'EventEspresso\core\services\request'
32
-            ),
33
-            '4.9.53'
34
-        );
35
-    }
15
+	/**
16
+	 * @deprecated  4.9.53
17
+	 * @param    EEI_Request_Decorator $application
18
+	 * @param    array                 $middlewares
19
+	 */
20
+	public function __construct(EEI_Request_Decorator $application, $middlewares = array())
21
+	{
22
+		EE_Error::doing_it_wrong(
23
+			__METHOD__,
24
+			sprintf(
25
+				esc_html__(
26
+					'This class is deprecated. Please use %1$s instead. All Event Espresso request stack classes have been moved to %2$s and are now under the %3$s namespace',
27
+					'event_espresso'
28
+				),
29
+				'EventEspresso\core\services\request\RequestStack',
30
+				'\core\services\request',
31
+				'EventEspresso\core\services\request'
32
+			),
33
+			'4.9.53'
34
+		);
35
+	}
36 36
 }
Please login to merge, or discard this patch.
core/request_stack/EE_Request_Stack_Builder.core.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -12,46 +12,46 @@
 block discarded – undo
12 12
  */
13 13
 class EE_Request_Stack_Builder
14 14
 {
15
-    /**
16
-     * EE_Request_Stack_Builder
17
-     */
18
-    public function __construct()
19
-    {
20
-        EE_Error::doing_it_wrong(
21
-            __METHOD__,
22
-            sprintf(
23
-                esc_html__(
24
-                    'This class is deprecated. Please use %1$s instead. All Event Espresso request stack classes have been moved to %2$s and are now under the %3$s namespace',
25
-                    'event_espresso'
26
-                ),
27
-                'EventEspresso\core\services\request\RequestStackBuilder',
28
-                '\core\services\request',
29
-                'EventEspresso\core\services\request'
30
-            ),
31
-            '4.9.53'
32
-        );
33
-    }
15
+	/**
16
+	 * EE_Request_Stack_Builder
17
+	 */
18
+	public function __construct()
19
+	{
20
+		EE_Error::doing_it_wrong(
21
+			__METHOD__,
22
+			sprintf(
23
+				esc_html__(
24
+					'This class is deprecated. Please use %1$s instead. All Event Espresso request stack classes have been moved to %2$s and are now under the %3$s namespace',
25
+					'event_espresso'
26
+				),
27
+				'EventEspresso\core\services\request\RequestStackBuilder',
28
+				'\core\services\request',
29
+				'EventEspresso\core\services\request'
30
+			),
31
+			'4.9.53'
32
+		);
33
+	}
34 34
 
35
-    /**
36
-     * @deprecated  4.9.53
37
-     */
38
-    public function unshift()
39
-    {
40
-    }
35
+	/**
36
+	 * @deprecated  4.9.53
37
+	 */
38
+	public function unshift()
39
+	{
40
+	}
41 41
 
42 42
 
43
-    /**
44
-     * @deprecated  4.9.53
45
-     */
46
-    public function push()
47
-    {
48
-    }
43
+	/**
44
+	 * @deprecated  4.9.53
45
+	 */
46
+	public function push()
47
+	{
48
+	}
49 49
 
50 50
 
51
-    /**
52
-     * @deprecated  4.9.53
53
-     */
54
-    public function resolve(EEI_Request_Decorator $application)
55
-    {
56
-    }
51
+	/**
52
+	 * @deprecated  4.9.53
53
+	 */
54
+	public function resolve(EEI_Request_Decorator $application)
55
+	{
56
+	}
57 57
 }
Please login to merge, or discard this patch.
core/request_stack/EE_Request.core.php 1 patch
Indentation   +355 added lines, -355 removed lines patch added patch discarded remove patch
@@ -17,359 +17,359 @@
 block discarded – undo
17 17
  */
18 18
 class EE_Request implements LegacyRequestInterface, InterminableInterface
19 19
 {
20
-    /**
21
-     * @var RequestInterface $request
22
-     */
23
-    private $request;
24
-
25
-    /**
26
-     * whether current request is for the admin but NOT via AJAX
27
-     *
28
-     * @var boolean $admin
29
-     */
30
-    public $admin = false;
31
-
32
-    /**
33
-     * whether current request is via AJAX
34
-     *
35
-     * @var boolean $ajax
36
-     */
37
-    public $ajax = false;
38
-
39
-    /**
40
-     * whether current request is via AJAX from the frontend of the site
41
-     *
42
-     * @var boolean $front_ajax
43
-     */
44
-    public $front_ajax = false;
45
-
46
-
47
-    /**
48
-     * @deprecated 4.9.53
49
-     * @param array $get
50
-     * @param array $post
51
-     * @param array $cookie
52
-     * @param array $server
53
-     */
54
-    public function __construct(
55
-        array $get = array(),
56
-        array $post = array(),
57
-        array $cookie = array(),
58
-        array $server = array()
59
-    ) {
60
-    }
61
-
62
-
63
-    /**
64
-     * @return RequestInterface
65
-     * @throws InvalidArgumentException
66
-     * @throws InvalidInterfaceException
67
-     * @throws InvalidDataTypeException
68
-     */
69
-    private function request()
70
-    {
71
-        if ($this->request instanceof RequestInterface) {
72
-            return $this->request;
73
-        }
74
-        $loader = LoaderFactory::getLoader();
75
-        $this->request = $loader->getShared('EventEspresso\core\services\request\RequestInterface');
76
-        return $this->request;
77
-    }
78
-
79
-
80
-    /**
81
-     * @param RequestInterface $request
82
-     */
83
-    public function setRequest(RequestInterface $request)
84
-    {
85
-        $this->request = $request;
86
-    }
87
-
88
-
89
-    /**
90
-     * @deprecated 4.9.53
91
-     * @return array
92
-     * @throws InvalidArgumentException
93
-     * @throws InvalidDataTypeException
94
-     * @throws InvalidInterfaceException
95
-     */
96
-    public function get_params()
97
-    {
98
-        return $this->request()->getParams();
99
-    }
100
-
101
-
102
-    /**
103
-     * @deprecated 4.9.53
104
-     * @return array
105
-     * @throws InvalidArgumentException
106
-     * @throws InvalidDataTypeException
107
-     * @throws InvalidInterfaceException
108
-     */
109
-    public function post_params()
110
-    {
111
-        return $this->request()->postParams();
112
-    }
113
-
114
-
115
-    /**
116
-     * @deprecated 4.9.53
117
-     * @return array
118
-     * @throws InvalidArgumentException
119
-     * @throws InvalidDataTypeException
120
-     * @throws InvalidInterfaceException
121
-     */
122
-    public function cookie_params()
123
-    {
124
-        return $this->request()->cookieParams();
125
-    }
126
-
127
-
128
-    /**
129
-     * @deprecated 4.9.53
130
-     * @return array
131
-     * @throws InvalidArgumentException
132
-     * @throws InvalidDataTypeException
133
-     * @throws InvalidInterfaceException
134
-     */
135
-    public function server_params()
136
-    {
137
-        return $this->request()->serverParams();
138
-    }
139
-
140
-
141
-    /**
142
-     * returns sanitized contents of $_REQUEST
143
-     *
144
-     * @deprecated 4.9.53
145
-     * @return array
146
-     * @throws InvalidArgumentException
147
-     * @throws InvalidDataTypeException
148
-     * @throws InvalidInterfaceException
149
-     */
150
-    public function params()
151
-    {
152
-        return $this->request()->requestParams();
153
-    }
154
-
155
-
156
-    /**
157
-     * @deprecated 4.9.53
158
-     * @param      $key
159
-     * @param      $value
160
-     * @param bool $override_ee
161
-     * @return void
162
-     * @throws InvalidArgumentException
163
-     * @throws InvalidDataTypeException
164
-     * @throws InvalidInterfaceException
165
-     */
166
-    public function set($key, $value, $override_ee = false)
167
-    {
168
-        $this->request()->setRequestParam($key, $value, $override_ee);
169
-    }
170
-
171
-
172
-    /**
173
-     * returns   the value for a request param if the given key exists
174
-     *
175
-     * @deprecated 4.9.53
176
-     * @param      $key
177
-     * @param null $default
178
-     * @return mixed
179
-     * @throws InvalidArgumentException
180
-     * @throws InvalidDataTypeException
181
-     * @throws InvalidInterfaceException
182
-     */
183
-    public function get($key, $default = null)
184
-    {
185
-        return $this->request()->getRequestParam($key, $default);
186
-    }
187
-
188
-
189
-    /**
190
-     * check if param exists
191
-     *
192
-     * @deprecated 4.9.53
193
-     * @param $key
194
-     * @return bool
195
-     * @throws InvalidArgumentException
196
-     * @throws InvalidDataTypeException
197
-     * @throws InvalidInterfaceException
198
-     */
199
-    public function is_set($key)
200
-    {
201
-        return $this->request()->requestParamIsSet($key);
202
-    }
203
-
204
-
205
-    /**
206
-     * remove param
207
-     *
208
-     * @deprecated 4.9.53
209
-     * @param      $key
210
-     * @param bool $unset_from_global_too
211
-     * @throws InvalidArgumentException
212
-     * @throws InvalidDataTypeException
213
-     * @throws InvalidInterfaceException
214
-     */
215
-    public function un_set($key, $unset_from_global_too = false)
216
-    {
217
-        $this->request()->unSetRequestParam($key, $unset_from_global_too);
218
-    }
219
-
220
-
221
-    /**
222
-     * @deprecated 4.9.53
223
-     * @return string
224
-     * @throws InvalidArgumentException
225
-     * @throws InvalidDataTypeException
226
-     * @throws InvalidInterfaceException
227
-     */
228
-    public function ip_address()
229
-    {
230
-        return $this->request()->ipAddress();
231
-    }
232
-
233
-
234
-    /**
235
-     * @deprecated 4.9.53
236
-     * @return bool
237
-     * @throws InvalidArgumentException
238
-     * @throws InvalidDataTypeException
239
-     * @throws InvalidInterfaceException
240
-     */
241
-    public function isAdmin()
242
-    {
243
-        return $this->request()->isAdmin();
244
-    }
245
-
246
-
247
-    /**
248
-     * @deprecated 4.9.53
249
-     * @return mixed
250
-     * @throws InvalidArgumentException
251
-     * @throws InvalidDataTypeException
252
-     * @throws InvalidInterfaceException
253
-     */
254
-    public function isAjax()
255
-    {
256
-        return $this->request()->isAjax();
257
-    }
258
-
259
-
260
-    /**
261
-     * @deprecated 4.9.53
262
-     * @return mixed
263
-     * @throws InvalidArgumentException
264
-     * @throws InvalidDataTypeException
265
-     * @throws InvalidInterfaceException
266
-     */
267
-    public function isFrontAjax()
268
-    {
269
-        return $this->request()->isFrontAjax();
270
-    }
271
-
272
-
273
-    /**
274
-     * @deprecated 4.9.53
275
-     * @return mixed|string
276
-     * @throws InvalidArgumentException
277
-     * @throws InvalidDataTypeException
278
-     * @throws InvalidInterfaceException
279
-     */
280
-    public function requestUri()
281
-    {
282
-        return $this->request()->requestUri();
283
-    }
284
-
285
-
286
-    /**
287
-     * @deprecated 4.9.53
288
-     * @return string
289
-     * @throws InvalidArgumentException
290
-     * @throws InvalidDataTypeException
291
-     * @throws InvalidInterfaceException
292
-     */
293
-    public function userAgent()
294
-    {
295
-        return $this->request()->userAgent();
296
-    }
297
-
298
-
299
-    /**
300
-     * @deprecated 4.9.53
301
-     * @param string $user_agent
302
-     * @throws InvalidArgumentException
303
-     * @throws InvalidDataTypeException
304
-     * @throws InvalidInterfaceException
305
-     */
306
-    public function setUserAgent($user_agent = '')
307
-    {
308
-        $this->request()->setUserAgent($user_agent);
309
-    }
310
-
311
-
312
-    /**
313
-     * @deprecated 4.9.53
314
-     * @return bool
315
-     * @throws InvalidArgumentException
316
-     * @throws InvalidDataTypeException
317
-     * @throws InvalidInterfaceException
318
-     */
319
-    public function isBot()
320
-    {
321
-        return $this->request()->isBot();
322
-    }
323
-
324
-
325
-    /**
326
-     * @deprecated 4.9.53
327
-     * @param bool $is_bot
328
-     * @throws InvalidArgumentException
329
-     * @throws InvalidDataTypeException
330
-     * @throws InvalidInterfaceException
331
-     */
332
-    public function setIsBot($is_bot)
333
-    {
334
-        $this->request()->setIsBot($is_bot);
335
-    }
336
-
337
-
338
-    /**
339
-     * check if a request parameter exists whose key that matches the supplied wildcard pattern
340
-     * and return the value for the first match found
341
-     * wildcards can be either of the following:
342
-     *      ? to represent a single character of any type
343
-     *      * to represent one or more characters of any type
344
-     *
345
-     * @param string     $pattern
346
-     * @param null|mixed $default
347
-     * @return false|int
348
-     * @throws InvalidArgumentException
349
-     * @throws InvalidInterfaceException
350
-     * @throws InvalidDataTypeException
351
-     */
352
-    public function getMatch($pattern, $default = null)
353
-    {
354
-        return $this->request()->getMatch($pattern, $default);
355
-    }
356
-
357
-
358
-    /**
359
-     * check if a request parameter exists whose key matches the supplied wildcard pattern
360
-     * wildcards can be either of the following:
361
-     *      ? to represent a single character of any type
362
-     *      * to represent one or more characters of any type
363
-     * returns true if a match is found or false if not
364
-     *
365
-     * @param string $pattern
366
-     * @return false|int
367
-     * @throws InvalidArgumentException
368
-     * @throws InvalidInterfaceException
369
-     * @throws InvalidDataTypeException
370
-     */
371
-    public function matches($pattern)
372
-    {
373
-        return $this->request()->matches($pattern);
374
-    }
20
+	/**
21
+	 * @var RequestInterface $request
22
+	 */
23
+	private $request;
24
+
25
+	/**
26
+	 * whether current request is for the admin but NOT via AJAX
27
+	 *
28
+	 * @var boolean $admin
29
+	 */
30
+	public $admin = false;
31
+
32
+	/**
33
+	 * whether current request is via AJAX
34
+	 *
35
+	 * @var boolean $ajax
36
+	 */
37
+	public $ajax = false;
38
+
39
+	/**
40
+	 * whether current request is via AJAX from the frontend of the site
41
+	 *
42
+	 * @var boolean $front_ajax
43
+	 */
44
+	public $front_ajax = false;
45
+
46
+
47
+	/**
48
+	 * @deprecated 4.9.53
49
+	 * @param array $get
50
+	 * @param array $post
51
+	 * @param array $cookie
52
+	 * @param array $server
53
+	 */
54
+	public function __construct(
55
+		array $get = array(),
56
+		array $post = array(),
57
+		array $cookie = array(),
58
+		array $server = array()
59
+	) {
60
+	}
61
+
62
+
63
+	/**
64
+	 * @return RequestInterface
65
+	 * @throws InvalidArgumentException
66
+	 * @throws InvalidInterfaceException
67
+	 * @throws InvalidDataTypeException
68
+	 */
69
+	private function request()
70
+	{
71
+		if ($this->request instanceof RequestInterface) {
72
+			return $this->request;
73
+		}
74
+		$loader = LoaderFactory::getLoader();
75
+		$this->request = $loader->getShared('EventEspresso\core\services\request\RequestInterface');
76
+		return $this->request;
77
+	}
78
+
79
+
80
+	/**
81
+	 * @param RequestInterface $request
82
+	 */
83
+	public function setRequest(RequestInterface $request)
84
+	{
85
+		$this->request = $request;
86
+	}
87
+
88
+
89
+	/**
90
+	 * @deprecated 4.9.53
91
+	 * @return array
92
+	 * @throws InvalidArgumentException
93
+	 * @throws InvalidDataTypeException
94
+	 * @throws InvalidInterfaceException
95
+	 */
96
+	public function get_params()
97
+	{
98
+		return $this->request()->getParams();
99
+	}
100
+
101
+
102
+	/**
103
+	 * @deprecated 4.9.53
104
+	 * @return array
105
+	 * @throws InvalidArgumentException
106
+	 * @throws InvalidDataTypeException
107
+	 * @throws InvalidInterfaceException
108
+	 */
109
+	public function post_params()
110
+	{
111
+		return $this->request()->postParams();
112
+	}
113
+
114
+
115
+	/**
116
+	 * @deprecated 4.9.53
117
+	 * @return array
118
+	 * @throws InvalidArgumentException
119
+	 * @throws InvalidDataTypeException
120
+	 * @throws InvalidInterfaceException
121
+	 */
122
+	public function cookie_params()
123
+	{
124
+		return $this->request()->cookieParams();
125
+	}
126
+
127
+
128
+	/**
129
+	 * @deprecated 4.9.53
130
+	 * @return array
131
+	 * @throws InvalidArgumentException
132
+	 * @throws InvalidDataTypeException
133
+	 * @throws InvalidInterfaceException
134
+	 */
135
+	public function server_params()
136
+	{
137
+		return $this->request()->serverParams();
138
+	}
139
+
140
+
141
+	/**
142
+	 * returns sanitized contents of $_REQUEST
143
+	 *
144
+	 * @deprecated 4.9.53
145
+	 * @return array
146
+	 * @throws InvalidArgumentException
147
+	 * @throws InvalidDataTypeException
148
+	 * @throws InvalidInterfaceException
149
+	 */
150
+	public function params()
151
+	{
152
+		return $this->request()->requestParams();
153
+	}
154
+
155
+
156
+	/**
157
+	 * @deprecated 4.9.53
158
+	 * @param      $key
159
+	 * @param      $value
160
+	 * @param bool $override_ee
161
+	 * @return void
162
+	 * @throws InvalidArgumentException
163
+	 * @throws InvalidDataTypeException
164
+	 * @throws InvalidInterfaceException
165
+	 */
166
+	public function set($key, $value, $override_ee = false)
167
+	{
168
+		$this->request()->setRequestParam($key, $value, $override_ee);
169
+	}
170
+
171
+
172
+	/**
173
+	 * returns   the value for a request param if the given key exists
174
+	 *
175
+	 * @deprecated 4.9.53
176
+	 * @param      $key
177
+	 * @param null $default
178
+	 * @return mixed
179
+	 * @throws InvalidArgumentException
180
+	 * @throws InvalidDataTypeException
181
+	 * @throws InvalidInterfaceException
182
+	 */
183
+	public function get($key, $default = null)
184
+	{
185
+		return $this->request()->getRequestParam($key, $default);
186
+	}
187
+
188
+
189
+	/**
190
+	 * check if param exists
191
+	 *
192
+	 * @deprecated 4.9.53
193
+	 * @param $key
194
+	 * @return bool
195
+	 * @throws InvalidArgumentException
196
+	 * @throws InvalidDataTypeException
197
+	 * @throws InvalidInterfaceException
198
+	 */
199
+	public function is_set($key)
200
+	{
201
+		return $this->request()->requestParamIsSet($key);
202
+	}
203
+
204
+
205
+	/**
206
+	 * remove param
207
+	 *
208
+	 * @deprecated 4.9.53
209
+	 * @param      $key
210
+	 * @param bool $unset_from_global_too
211
+	 * @throws InvalidArgumentException
212
+	 * @throws InvalidDataTypeException
213
+	 * @throws InvalidInterfaceException
214
+	 */
215
+	public function un_set($key, $unset_from_global_too = false)
216
+	{
217
+		$this->request()->unSetRequestParam($key, $unset_from_global_too);
218
+	}
219
+
220
+
221
+	/**
222
+	 * @deprecated 4.9.53
223
+	 * @return string
224
+	 * @throws InvalidArgumentException
225
+	 * @throws InvalidDataTypeException
226
+	 * @throws InvalidInterfaceException
227
+	 */
228
+	public function ip_address()
229
+	{
230
+		return $this->request()->ipAddress();
231
+	}
232
+
233
+
234
+	/**
235
+	 * @deprecated 4.9.53
236
+	 * @return bool
237
+	 * @throws InvalidArgumentException
238
+	 * @throws InvalidDataTypeException
239
+	 * @throws InvalidInterfaceException
240
+	 */
241
+	public function isAdmin()
242
+	{
243
+		return $this->request()->isAdmin();
244
+	}
245
+
246
+
247
+	/**
248
+	 * @deprecated 4.9.53
249
+	 * @return mixed
250
+	 * @throws InvalidArgumentException
251
+	 * @throws InvalidDataTypeException
252
+	 * @throws InvalidInterfaceException
253
+	 */
254
+	public function isAjax()
255
+	{
256
+		return $this->request()->isAjax();
257
+	}
258
+
259
+
260
+	/**
261
+	 * @deprecated 4.9.53
262
+	 * @return mixed
263
+	 * @throws InvalidArgumentException
264
+	 * @throws InvalidDataTypeException
265
+	 * @throws InvalidInterfaceException
266
+	 */
267
+	public function isFrontAjax()
268
+	{
269
+		return $this->request()->isFrontAjax();
270
+	}
271
+
272
+
273
+	/**
274
+	 * @deprecated 4.9.53
275
+	 * @return mixed|string
276
+	 * @throws InvalidArgumentException
277
+	 * @throws InvalidDataTypeException
278
+	 * @throws InvalidInterfaceException
279
+	 */
280
+	public function requestUri()
281
+	{
282
+		return $this->request()->requestUri();
283
+	}
284
+
285
+
286
+	/**
287
+	 * @deprecated 4.9.53
288
+	 * @return string
289
+	 * @throws InvalidArgumentException
290
+	 * @throws InvalidDataTypeException
291
+	 * @throws InvalidInterfaceException
292
+	 */
293
+	public function userAgent()
294
+	{
295
+		return $this->request()->userAgent();
296
+	}
297
+
298
+
299
+	/**
300
+	 * @deprecated 4.9.53
301
+	 * @param string $user_agent
302
+	 * @throws InvalidArgumentException
303
+	 * @throws InvalidDataTypeException
304
+	 * @throws InvalidInterfaceException
305
+	 */
306
+	public function setUserAgent($user_agent = '')
307
+	{
308
+		$this->request()->setUserAgent($user_agent);
309
+	}
310
+
311
+
312
+	/**
313
+	 * @deprecated 4.9.53
314
+	 * @return bool
315
+	 * @throws InvalidArgumentException
316
+	 * @throws InvalidDataTypeException
317
+	 * @throws InvalidInterfaceException
318
+	 */
319
+	public function isBot()
320
+	{
321
+		return $this->request()->isBot();
322
+	}
323
+
324
+
325
+	/**
326
+	 * @deprecated 4.9.53
327
+	 * @param bool $is_bot
328
+	 * @throws InvalidArgumentException
329
+	 * @throws InvalidDataTypeException
330
+	 * @throws InvalidInterfaceException
331
+	 */
332
+	public function setIsBot($is_bot)
333
+	{
334
+		$this->request()->setIsBot($is_bot);
335
+	}
336
+
337
+
338
+	/**
339
+	 * check if a request parameter exists whose key that matches the supplied wildcard pattern
340
+	 * and return the value for the first match found
341
+	 * wildcards can be either of the following:
342
+	 *      ? to represent a single character of any type
343
+	 *      * to represent one or more characters of any type
344
+	 *
345
+	 * @param string     $pattern
346
+	 * @param null|mixed $default
347
+	 * @return false|int
348
+	 * @throws InvalidArgumentException
349
+	 * @throws InvalidInterfaceException
350
+	 * @throws InvalidDataTypeException
351
+	 */
352
+	public function getMatch($pattern, $default = null)
353
+	{
354
+		return $this->request()->getMatch($pattern, $default);
355
+	}
356
+
357
+
358
+	/**
359
+	 * check if a request parameter exists whose key matches the supplied wildcard pattern
360
+	 * wildcards can be either of the following:
361
+	 *      ? to represent a single character of any type
362
+	 *      * to represent one or more characters of any type
363
+	 * returns true if a match is found or false if not
364
+	 *
365
+	 * @param string $pattern
366
+	 * @return false|int
367
+	 * @throws InvalidArgumentException
368
+	 * @throws InvalidInterfaceException
369
+	 * @throws InvalidDataTypeException
370
+	 */
371
+	public function matches($pattern)
372
+	{
373
+		return $this->request()->matches($pattern);
374
+	}
375 375
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Event_Venue.class.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -5,23 +5,23 @@
 block discarded – undo
5 5
  */
6 6
 class EE_Event_Venue extends EE_Base_Class
7 7
 {
8
-    /**
9
-     * @param array $props_n_values
10
-     * @return EE_Event_Venue|mixed
11
-     */
12
-    public static function new_instance($props_n_values = array())
13
-    {
14
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
15
-        return $has_object ? $has_object : new self($props_n_values);
16
-    }
8
+	/**
9
+	 * @param array $props_n_values
10
+	 * @return EE_Event_Venue|mixed
11
+	 */
12
+	public static function new_instance($props_n_values = array())
13
+	{
14
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
15
+		return $has_object ? $has_object : new self($props_n_values);
16
+	}
17 17
 
18 18
 
19
-    /**
20
-     * @param array $props_n_values
21
-     * @return EE_Event_Venue
22
-     */
23
-    public static function new_instance_from_db($props_n_values = array())
24
-    {
25
-        return new self($props_n_values, true);
26
-    }
19
+	/**
20
+	 * @param array $props_n_values
21
+	 * @return EE_Event_Venue
22
+	 */
23
+	public static function new_instance_from_db($props_n_values = array())
24
+	{
25
+		return new self($props_n_values, true);
26
+	}
27 27
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Term_Taxonomy.class.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -11,80 +11,80 @@
 block discarded – undo
11 11
  */
12 12
 class EE_Term_Taxonomy extends EE_Base_Class
13 13
 {
14
-    /**
15
-     * @param array $props_n_values
16
-     * @return EE_Term_Taxonomy
17
-     */
18
-    public static function new_instance($props_n_values = array())
19
-    {
20
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
21
-        return $has_object ? $has_object : new self($props_n_values);
22
-    }
14
+	/**
15
+	 * @param array $props_n_values
16
+	 * @return EE_Term_Taxonomy
17
+	 */
18
+	public static function new_instance($props_n_values = array())
19
+	{
20
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
21
+		return $has_object ? $has_object : new self($props_n_values);
22
+	}
23 23
 
24 24
 
25
-    /**
26
-     * @param array $props_n_values
27
-     * @return EE_Term_Taxonomy
28
-     */
29
-    public static function new_instance_from_db($props_n_values = array())
30
-    {
31
-        return new self($props_n_values, true);
32
-    }
25
+	/**
26
+	 * @param array $props_n_values
27
+	 * @return EE_Term_Taxonomy
28
+	 */
29
+	public static function new_instance_from_db($props_n_values = array())
30
+	{
31
+		return new self($props_n_values, true);
32
+	}
33 33
 
34 34
 
35
-    /**
36
-     * Gets taxonomy
37
-     *
38
-     * @return string
39
-     */
40
-    public function taxonomy()
41
-    {
42
-        return $this->get('taxonomy');
43
-    }
35
+	/**
36
+	 * Gets taxonomy
37
+	 *
38
+	 * @return string
39
+	 */
40
+	public function taxonomy()
41
+	{
42
+		return $this->get('taxonomy');
43
+	}
44 44
 
45 45
 
46
-    /**
47
-     * Sets taxonomy
48
-     *
49
-     * @param string $taxonomy
50
-     * @return boolean
51
-     */
52
-    public function set_taxonomy($taxonomy)
53
-    {
54
-        $this->set('taxonomy', $taxonomy);
55
-    }
46
+	/**
47
+	 * Sets taxonomy
48
+	 *
49
+	 * @param string $taxonomy
50
+	 * @return boolean
51
+	 */
52
+	public function set_taxonomy($taxonomy)
53
+	{
54
+		$this->set('taxonomy', $taxonomy);
55
+	}
56 56
 
57 57
 
58
-    /**
59
-     * Gets term_count
60
-     *
61
-     * @return int
62
-     */
63
-    public function count()
64
-    {
65
-        return $this->get('term_count');
66
-    }
58
+	/**
59
+	 * Gets term_count
60
+	 *
61
+	 * @return int
62
+	 */
63
+	public function count()
64
+	{
65
+		return $this->get('term_count');
66
+	}
67 67
 
68 68
 
69
-    /**
70
-     * Sets term_count
71
-     *
72
-     * @param int $term_count
73
-     * @return boolean
74
-     */
75
-    public function set_count($term_count)
76
-    {
77
-        $this->set('term_count', $term_count);
78
-    }
69
+	/**
70
+	 * Sets term_count
71
+	 *
72
+	 * @param int $term_count
73
+	 * @return boolean
74
+	 */
75
+	public function set_count($term_count)
76
+	{
77
+		$this->set('term_count', $term_count);
78
+	}
79 79
 
80 80
 
81
-    /**
82
-     * Gets the term for this term taxonomy
83
-     *
84
-     * @return EE_Term
85
-     */
86
-    public function term()
87
-    {
88
-        return $this->get_first_related('Term');
89
-    }
81
+	/**
82
+	 * Gets the term for this term taxonomy
83
+	 *
84
+	 * @return EE_Term
85
+	 */
86
+	public function term()
87
+	{
88
+		return $this->get_first_related('Term');
89
+	}
90 90
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Question_Group_Question.class.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -5,23 +5,23 @@
 block discarded – undo
5 5
  */
6 6
 class EE_Question_Group_Question extends EE_Base_Class
7 7
 {
8
-    /**
9
-     * @param array $props_n_values
10
-     * @return EE_Question_Group_Question|mixed
11
-     */
12
-    public static function new_instance($props_n_values = array())
13
-    {
14
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
15
-        return $has_object ? $has_object : new self($props_n_values);
16
-    }
8
+	/**
9
+	 * @param array $props_n_values
10
+	 * @return EE_Question_Group_Question|mixed
11
+	 */
12
+	public static function new_instance($props_n_values = array())
13
+	{
14
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
15
+		return $has_object ? $has_object : new self($props_n_values);
16
+	}
17 17
 
18 18
 
19
-    /**
20
-     * @param array $props_n_values
21
-     * @return EE_Question_Group_Question
22
-     */
23
-    public static function new_instance_from_db($props_n_values = array())
24
-    {
25
-        return new self($props_n_values, true);
26
-    }
19
+	/**
20
+	 * @param array $props_n_values
21
+	 * @return EE_Question_Group_Question
22
+	 */
23
+	public static function new_instance_from_db($props_n_values = array())
24
+	{
25
+		return new self($props_n_values, true);
26
+	}
27 27
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Ticket_Template.class.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -11,25 +11,25 @@
 block discarded – undo
11 11
  */
12 12
 class EE_Ticket_Template extends EE_Base_Class
13 13
 {
14
-    /**
15
-     * @param array  $props_n_values
16
-     * @param string $timezone
17
-     * @return EE_Ticket_Template|mixed
18
-     */
19
-    public static function new_instance($props_n_values = array(), $timezone = '')
20
-    {
21
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone);
22
-        return $has_object ? $has_object : new self($props_n_values, false, $timezone);
23
-    }
14
+	/**
15
+	 * @param array  $props_n_values
16
+	 * @param string $timezone
17
+	 * @return EE_Ticket_Template|mixed
18
+	 */
19
+	public static function new_instance($props_n_values = array(), $timezone = '')
20
+	{
21
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__, $timezone);
22
+		return $has_object ? $has_object : new self($props_n_values, false, $timezone);
23
+	}
24 24
 
25 25
 
26
-    /**
27
-     * @param array  $props_n_values
28
-     * @param string $timezone
29
-     * @return EE_Ticket_Template
30
-     */
31
-    public static function new_instance_from_db($props_n_values = array(), $timezone = '')
32
-    {
33
-        return new self($props_n_values, true, $timezone);
34
-    }
26
+	/**
27
+	 * @param array  $props_n_values
28
+	 * @param string $timezone
29
+	 * @return EE_Ticket_Template
30
+	 */
31
+	public static function new_instance_from_db($props_n_values = array(), $timezone = '')
32
+	{
33
+		return new self($props_n_values, true, $timezone);
34
+	}
35 35
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Extra_Meta.class.php 1 patch
Indentation   +111 added lines, -111 removed lines patch added patch discarded remove patch
@@ -9,115 +9,115 @@
 block discarded – undo
9 9
  */
10 10
 class EE_Extra_Meta extends EE_Base_Class
11 11
 {
12
-    /**
13
-     * @param array $props_n_values
14
-     * @return EE_Extra_Meta|mixed
15
-     */
16
-    public static function new_instance($props_n_values = array())
17
-    {
18
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
19
-        return $has_object ? $has_object : new self($props_n_values);
20
-    }
21
-
22
-
23
-    /**
24
-     * @param array $props_n_values
25
-     * @return EE_Extra_Meta
26
-     */
27
-    public static function new_instance_from_db($props_n_values = array())
28
-    {
29
-        return new self($props_n_values, true);
30
-    }
31
-
32
-
33
-    /**
34
-     * Gets FK_ID
35
-     *
36
-     * @return int
37
-     */
38
-    public function FK_ID()
39
-    {
40
-        return $this->get('FK_ID');
41
-    }
42
-
43
-
44
-    /**
45
-     * Sets FK_ID
46
-     *
47
-     * @param int $FK_ID
48
-     * @return boolean
49
-     */
50
-    public function set_FK_ID($FK_ID)
51
-    {
52
-        $this->set('FK_ID', $FK_ID);
53
-    }
54
-
55
-
56
-    /**
57
-     * Gets model
58
-     *
59
-     * @return string
60
-     */
61
-    public function model()
62
-    {
63
-        return $this->get('EXM_model');
64
-    }
65
-
66
-
67
-    /**
68
-     * Sets model
69
-     *
70
-     * @param string $model
71
-     * @return boolean
72
-     */
73
-    public function set_model($model)
74
-    {
75
-        $this->set('EXM_model', $model);
76
-    }
77
-
78
-
79
-    /**
80
-     * Gets key
81
-     *
82
-     * @return string
83
-     */
84
-    public function key()
85
-    {
86
-        return $this->get('EXM_key');
87
-    }
88
-
89
-
90
-    /**
91
-     * Sets key
92
-     *
93
-     * @param string $key
94
-     * @return boolean
95
-     */
96
-    public function set_key($key)
97
-    {
98
-        $this->set('EXM_key', $key);
99
-    }
100
-
101
-
102
-    /**
103
-     * Gets value
104
-     *
105
-     * @return string
106
-     */
107
-    public function value()
108
-    {
109
-        return $this->get('EXM_value');
110
-    }
111
-
112
-
113
-    /**
114
-     * Sets value
115
-     *
116
-     * @param string $value
117
-     * @return boolean
118
-     */
119
-    public function set_value($value)
120
-    {
121
-        $this->set('EXM_value', $value);
122
-    }
12
+	/**
13
+	 * @param array $props_n_values
14
+	 * @return EE_Extra_Meta|mixed
15
+	 */
16
+	public static function new_instance($props_n_values = array())
17
+	{
18
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
19
+		return $has_object ? $has_object : new self($props_n_values);
20
+	}
21
+
22
+
23
+	/**
24
+	 * @param array $props_n_values
25
+	 * @return EE_Extra_Meta
26
+	 */
27
+	public static function new_instance_from_db($props_n_values = array())
28
+	{
29
+		return new self($props_n_values, true);
30
+	}
31
+
32
+
33
+	/**
34
+	 * Gets FK_ID
35
+	 *
36
+	 * @return int
37
+	 */
38
+	public function FK_ID()
39
+	{
40
+		return $this->get('FK_ID');
41
+	}
42
+
43
+
44
+	/**
45
+	 * Sets FK_ID
46
+	 *
47
+	 * @param int $FK_ID
48
+	 * @return boolean
49
+	 */
50
+	public function set_FK_ID($FK_ID)
51
+	{
52
+		$this->set('FK_ID', $FK_ID);
53
+	}
54
+
55
+
56
+	/**
57
+	 * Gets model
58
+	 *
59
+	 * @return string
60
+	 */
61
+	public function model()
62
+	{
63
+		return $this->get('EXM_model');
64
+	}
65
+
66
+
67
+	/**
68
+	 * Sets model
69
+	 *
70
+	 * @param string $model
71
+	 * @return boolean
72
+	 */
73
+	public function set_model($model)
74
+	{
75
+		$this->set('EXM_model', $model);
76
+	}
77
+
78
+
79
+	/**
80
+	 * Gets key
81
+	 *
82
+	 * @return string
83
+	 */
84
+	public function key()
85
+	{
86
+		return $this->get('EXM_key');
87
+	}
88
+
89
+
90
+	/**
91
+	 * Sets key
92
+	 *
93
+	 * @param string $key
94
+	 * @return boolean
95
+	 */
96
+	public function set_key($key)
97
+	{
98
+		$this->set('EXM_key', $key);
99
+	}
100
+
101
+
102
+	/**
103
+	 * Gets value
104
+	 *
105
+	 * @return string
106
+	 */
107
+	public function value()
108
+	{
109
+		return $this->get('EXM_value');
110
+	}
111
+
112
+
113
+	/**
114
+	 * Sets value
115
+	 *
116
+	 * @param string $value
117
+	 * @return boolean
118
+	 */
119
+	public function set_value($value)
120
+	{
121
+		$this->set('EXM_value', $value);
122
+	}
123 123
 }
Please login to merge, or discard this patch.
core/db_classes/EE_Term_Relationship.class.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -9,23 +9,23 @@
 block discarded – undo
9 9
  */
10 10
 class EE_Term_Relationship extends EE_Base_Class
11 11
 {
12
-    /**
13
-     * @param array $props_n_values
14
-     * @return EE_Term_Relationship
15
-     */
16
-    public static function new_instance($props_n_values = array())
17
-    {
18
-        $has_object = parent::_check_for_object($props_n_values, __CLASS__);
19
-        return $has_object ? $has_object : new self($props_n_values);
20
-    }
12
+	/**
13
+	 * @param array $props_n_values
14
+	 * @return EE_Term_Relationship
15
+	 */
16
+	public static function new_instance($props_n_values = array())
17
+	{
18
+		$has_object = parent::_check_for_object($props_n_values, __CLASS__);
19
+		return $has_object ? $has_object : new self($props_n_values);
20
+	}
21 21
 
22 22
 
23
-    /**
24
-     * @param array $props_n_values
25
-     * @return EE_Term_Relationship
26
-     */
27
-    public static function new_instance_from_db($props_n_values = array())
28
-    {
29
-        return new self($props_n_values, true);
30
-    }
23
+	/**
24
+	 * @param array $props_n_values
25
+	 * @return EE_Term_Relationship
26
+	 */
27
+	public static function new_instance_from_db($props_n_values = array())
28
+	{
29
+		return new self($props_n_values, true);
30
+	}
31 31
 }
Please login to merge, or discard this patch.