| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | protected function doExecute(ProfileContext $context) |
||
| 29 | { |
||
| 30 | if ($context->getInboundContext()->getMessage()) { |
||
| 31 | MessageContextHelper::asStatusResponse($context->getOutboundContext())->setInResponseTo( |
||
|
|
|||
| 32 | MessageContextHelper::asSamlMessage($context->getInboundContext())->getID() |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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: