| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 45 | 2 | public function getTotalCost(): float |
|
| 46 | { |
||
| 47 | 2 | $totalCost = 0.0; |
|
| 48 | 2 | $currencyCode = $this->getCurrencyCode(); |
|
| 49 | |||
| 50 | 2 | foreach ($this->getItems() as $cost) { |
|
| 51 | 2 | if ($cost->getCurrencyCode() !== $currencyCode) { |
|
| 52 | 1 | throw new RuntimeException('Package cost currency codes are not the same'); |
|
| 53 | } |
||
| 54 | |||
| 55 | 2 | $totalCost += $cost->getTotalCost(); |
|
| 56 | } |
||
| 57 | |||
| 58 | 1 | return $totalCost; |
|
| 59 | } |
||
| 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