| Conditions | 5 |
| Paths | 5 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 15 | public static function initable(ServerRequestInterface $request): bool |
|
| 53 | { |
||
| 54 | 15 | $body = static::getBodyFromRequest($request); |
|
| 55 | |||
| 56 | 15 | return isset($body['shop_orderid']) && isset($body['amount']) && isset($body['currency']) && isset($body['language']) && isset($body['embedded_window']); |
|
| 57 | } |
||
| 58 | |||
| 99 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.