Passed
Push — development ( e7eb97...e615e2 )
by Spuds
01:30 queued 23s
created

Standard::generateQuery()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 23
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 0
Metric Value
cc 4
eloc 10
dl 0
loc 23
rs 9.9332
c 0
b 0
f 0
nc 4
nop 1
ccs 0
cts 20
cp 0
crap 20
1
<?php
2
3
/**
4
 * Semantic representation of any URL that doesn't have a custom builder
5
 *
6
 * @package   ElkArte Forum
7
 * @copyright ElkArte Forum contributors
8
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause (see accompanying LICENSE.txt file)
9
 *
10
 * @version 2.0 dev
11
 *
12
 */
13
14
namespace ElkArte\UrlGenerator\Semantic;
15
16
/**
17
 * Class Standard
18
 *
19
 * @package ElkArte\UrlGenerator\Semantic
20
 */
21
class Standard extends \ElkArte\UrlGenerator\Standard\Standard
22
{
23
	/**
24
	 * {@inheritDoc}
25
	 */
26
	protected $_types = ['standard'];
27
28
	/**
29
	 * {@inheritDoc}
30
	 */
31
	public function generate($params)
32
	{
33
		// Delegate to the parent implementation that includes proper encoding and token handling
34
		return $this->generateQuery($params);
35
	}
36
}
37