Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function collect(Creditmemo $creditmemo) |
||
27 | { |
||
28 | $order = $creditmemo->getOrder(); |
||
29 | |||
30 | $moipInterest = $order->getMoipInterestAmountInvoiced(); |
||
31 | $baseMoipInterest = $order->getBaseMoipInterestAmountInvoiced(); |
||
32 | |||
33 | if ((int) $moipInterest === 0) { |
||
34 | return $this; |
||
35 | } |
||
36 | |||
37 | $creditmemo->setGrandTotal($creditmemo->getGrandTotal() + $moipInterest); |
||
38 | $creditmemo->setBaseGrandTotal($creditmemo->getBaseGrandTotal() + $baseMoipInterest); |
||
39 | $creditmemo->setMoipInterestAmount($moipInterest); |
||
40 | $creditmemo->setBaseMoipInterestAmount($baseMoipInterest); |
||
41 | $order->setMoipInterestAmountRefunded($moipInterest); |
||
42 | $order->setBaseMoipInterestAmountRefunded($baseMoipInterest); |
||
43 | |||
44 | return $this; |
||
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