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