Conditions | 4 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | public function handle(ServerRequestInterface $request) |
||
38 | { |
||
39 | if (null !== ($ssid = input()->get('ssid')) && services()->has('user')) { |
||
40 | if (services()->get('user')->validate($ssid)) { |
||
41 | set_cookie('ssid', $ssid); |
||
42 | |||
43 | echo services()->get('user')->getIframeScript(); |
||
44 | exit(EXIT_SUCCESS); |
||
|
|||
45 | } |
||
48 | } |
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.