Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function handle(array $handlingSubject, array $response) |
||
31 | { |
||
32 | if (!isset($handlingSubject['payment']) |
||
33 | || !$handlingSubject['payment'] instanceof PaymentDataObjectInterface |
||
34 | ) { |
||
35 | throw new \InvalidArgumentException('Payment data object should be provided'); |
||
36 | } |
||
37 | |||
38 | $paymentDO = $handlingSubject['payment']; |
||
39 | |||
40 | $payment = $paymentDO->getPayment(); |
||
41 | |||
42 | $order = $payment->getOrder(); |
||
43 | |||
44 | $order->setExtOrderId($response[self::EXTERNAL_ORDER_ID]); |
||
45 | } |
||
47 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths