| Conditions | 1 |
| Paths | 1 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function urlIsManagerPortal($url): bool |
||
|
1 ignored issue
–
show
|
|||
| 29 | { |
||
| 30 | $baseUrl = config('app.url'); |
||
| 31 | $managerPrefix = config('app.manager_prefix'); |
||
| 32 | $managerPattern = "#^$baseUrl/(\w+/)?$managerPrefix(/.*)?$#"; |
||
| 33 | return preg_match($managerPattern, $url); |
||
| 34 | } |
||
| 44 |