Conditions | 4 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function build(array $buildSubject) |
||
39 | { |
||
40 | if (!isset($buildSubject['payment']) |
||
41 | || !$buildSubject['payment'] instanceof PaymentDataObjectInterface |
||
42 | ) { |
||
43 | throw new \InvalidArgumentException('Payment data object should be provided'); |
||
44 | } |
||
45 | |||
46 | $paymentDO = $buildSubject['payment']; |
||
47 | |||
48 | $payment = $paymentDO->getPayment(); |
||
49 | |||
50 | if (!$payment instanceof OrderPaymentInterface) { |
||
51 | throw new \LogicException('Order payment should be provided.'); |
||
52 | } |
||
53 | |||
54 | return [ |
||
55 | 'TXN_TYPE' => 'V', |
||
56 | 'TXN_ID' => $payment->getLastTransId(), |
||
57 | ]; |
||
60 |
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