Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function initTotals() |
||
47 | { |
||
48 | $this->getParentBlock(); |
||
49 | $this->getInvoice(); |
||
50 | $this->getSource(); |
||
51 | |||
52 | if (!$this->getSource()->getMoipInterestAmount()) { |
||
53 | return $this; |
||
54 | } |
||
55 | |||
56 | $total = new DataObject( |
||
57 | [ |
||
58 | 'code' => 'moip_interest', |
||
59 | 'value' => $this->getSource()->getMoipInterestAmount(), |
||
60 | 'label' => __('Moip Interest Amount'), |
||
61 | ] |
||
62 | ); |
||
63 | |||
64 | $this->getParentBlock()->addTotalBefore($total, 'grand_total'); |
||
65 | |||
66 | return $this; |
||
67 | } |
||
69 |
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