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