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