Conditions | 2 |
Paths | 2 |
Total Lines | 24 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0078 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 478 | public function getRouteCollection() |
|
31 | { |
||
32 | 478 | $collection = parent::getRouteCollection(); |
|
33 | |||
34 | 478 | if ($this->requireHttps) { |
|
35 | $collection->setSchemes('https'); |
||
36 | } |
||
37 | |||
38 | 478 | $collection->addRequirements( |
|
39 | [ |
||
40 | 478 | '_admin' => $this->adminPrefix, |
|
41 | 478 | '_user_data' => $this->userDataPrefix, |
|
42 | ] |
||
43 | ); |
||
44 | |||
45 | 478 | $collection->addDefaults( |
|
46 | [ |
||
47 | '_admin' => $this->adminPrefix, |
||
48 | '_user_data' => $this->userDataPrefix, |
||
49 | ] |
||
50 | ); |
||
51 | |||
52 | return $collection; |
||
53 | } |
||
54 | } |
||
55 |