| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | protected function doExecute(ProfileContext $context) |
||
| 28 | { |
||
| 29 | $logoutRequest = MessageContextHelper::asLogoutRequest($context->getOutboundContext()); |
||
|
|
|||
| 30 | $ssoSessionState = $context->getLogoutSsoSessionState(); |
||
| 31 | |||
| 32 | $logoutRequest->setSessionIndex($ssoSessionState->getSessionIndex()); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: