| Total Complexity | 9 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class WhichPortal |
||
| 8 | { |
||
| 9 | |||
| 10 | public function isApplicantPortal() |
||
|
2 ignored issues
–
show
|
|||
| 11 | { |
||
| 12 | return !$this->isManagerPortal() && !$this->isHrPortal() && !$this->isAdminPortal(); |
||
| 13 | } |
||
| 14 | |||
| 15 | public function isManagerPortal() |
||
|
2 ignored issues
–
show
|
|||
| 16 | { |
||
| 17 | $url = URL::current(); |
||
| 18 | return $this->urlIsManagerPortal($url); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function isHrPortal() |
||
|
2 ignored issues
–
show
|
|||
| 22 | { |
||
| 23 | $url = URL::current(); |
||
| 24 | return $this->urlIsHrPortal($url); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function isAdminPortal() |
||
|
2 ignored issues
–
show
|
|||
| 28 | { |
||
| 29 | $url = URL::current(); |
||
| 30 | return $this->urlIsAdminPortal($url); |
||
| 31 | } |
||
| 32 | |||
| 33 | public function urlIsManagerPortal($url): bool |
||
| 39 | } |
||
| 40 | |||
| 41 | public function urlIsHrPortal($url): bool |
||
| 47 | } |
||
| 48 | |||
| 49 | public function urlIsAdminPortal($url): bool |
||
|
1 ignored issue
–
show
|
|||
| 50 | { |
||
| 57 |