| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | function saml_url(string $path, ?string $uuid = null, $parameters = [], ?bool $secure = null) |
||
| 16 | { |
||
| 17 | $target = \Illuminate\Support\Facades\URL::to($path, $parameters, $secure); |
||
| 18 | |||
| 19 | if(!$uuid) { |
||
| 20 | if(!$uuid = saml_tenant_uuid()) { |
||
| 21 | return $target; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | return \Illuminate\Support\Facades\URL::route('saml.login', ['uuid' => $uuid, 'returnTo' => $target]); |
||
| 26 | } |
||
| 65 | } |