| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function urlIsHrPortal($url): bool |
||
|
1 ignored issue
–
show
|
|||
| 42 | { |
||
| 43 | $baseUrl = config('app.url'); |
||
| 44 | $hrPrefix = config('app.hr_prefix'); |
||
| 45 | $hrPattern = "#^$baseUrl/(\w+/)?$hrPrefix(/.*)?$#"; |
||
| 46 | return preg_match($hrPattern, $url); |
||
| 47 | } |
||
| 57 |