Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
40 | function saml_route(string $name, ?string $uuid = null, $parameters = []) |
||
41 | { |
||
42 | $target = \Illuminate\Support\Facades\URL::route($name, $parameters, true); |
||
43 | |||
44 | if(!$uuid) { |
||
45 | if(!$uuid = saml_tenant_uuid()) { |
||
46 | return $target; |
||
47 | } |
||
48 | } |
||
49 | |||
50 | return \Illuminate\Support\Facades\URL::route('saml.login', ['uuid' => $uuid, 'returnTo' => $target]); |
||
51 | } |
||
65 | } |