| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function collect(Invoice $invoice) |
||
| 30 | { |
||
| 31 | $order = $invoice->getOrder(); |
||
| 32 | $moipInterest = $order->getMoipInterestAmount(); |
||
| 33 | $baseMoipInterestAmount = $order->getBaseMoipInterestAmount(); |
||
| 34 | |||
| 35 | if ((int) $moipInterest === 0) { |
||
| 36 | return $this; |
||
| 37 | } |
||
| 38 | |||
| 39 | $invoice->setMoipInterestAmount($moipInterest); |
||
| 40 | $invoice->setBaseMoipInterestAmount($baseMoipInterestAmount); |
||
| 41 | $invoice->setGrandTotal($invoice->getGrandTotal() + $moipInterest); |
||
| 42 | $invoice->setBaseGrandTotal($invoice->getBaseGrandTotal() + $baseMoipInterestAmount); |
||
| 43 | $order->setMoipInterestAmountInvoiced($moipInterest); |
||
| 44 | $order->setBaseMoipInterestAmountInvoiced($baseMoipInterestAmount); |
||
| 45 | |||
| 46 | return $this; |
||
| 47 | } |
||
| 49 |
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