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