| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function urlIsManagerPortal($url): bool |
||
|
1 ignored issue
–
show
|
|||
| 34 | { |
||
| 35 | $baseUrl = config('app.url'); |
||
| 36 | $managerPrefix = config('app.manager_prefix'); |
||
| 37 | $managerPattern = "#^$baseUrl/(\w+/)?$managerPrefix(/.*)?$#"; |
||
| 38 | return preg_match($managerPattern, $url); |
||
| 39 | } |
||
| 57 |