| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class WhichPortal |
||
| 9 | { |
||
| 10 | |||
| 11 | 27 | public function isApplicantPortal() |
|
|
1 ignored issue
–
show
|
|||
| 12 | { |
||
| 13 | 27 | return !$this->isManagerPortal() && !$this->isAdminPortal(); |
|
| 14 | } |
||
| 15 | |||
| 16 | 32 | public function isManagerPortal() |
|
| 20 | } |
||
| 21 | |||
| 22 | 34 | public function isAdminPortal() |
|
|
1 ignored issue
–
show
|
|||
| 23 | { |
||
| 24 | 34 | $url = URL::current(); |
|
| 25 | 34 | return $this->urlIsAdminPortal($url); |
|
| 26 | 34 | } |
|
| 27 | 34 | ||
| 28 | public function urlIsManagerPortal($url): bool |
||
| 34 | } |
||
| 35 | |||
| 36 | public function urlIsAdminPortal($url): bool |
||
| 44 |