Total Complexity | 10 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 90% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Standard extends Dynamic |
||
10 | { |
||
11 | protected $map = ':controller/:action'; |
||
12 | |||
13 | /** |
||
14 | * @param array $params |
||
15 | * @return mixed|string |
||
16 | */ |
||
17 | 1 | public function assemble($params = []) |
|
18 | { |
||
19 | 1 | if (!isset($params['action']) or !$params['action']) { |
|
20 | 1 | $params['action'] = ''; |
|
21 | } |
||
22 | |||
23 | 1 | return parent::assemble($params); |
|
24 | } |
||
25 | |||
26 | /** @noinspection PhpMissingParentCallCommonInspection |
||
27 | * @return bool |
||
28 | */ |
||
29 | 2 | protected function preMatch() |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 2 | protected function postMatch() |
|
51 | } |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | 2 | protected function validateController() |
|
66 |