Conditions | 5 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function expandItems(CartChangeTransfer $change) |
||
34 | { |
||
35 | foreach ($change->getItems() as $cartItem) { |
||
36 | $productConcreteTransfer = $this->ratepayToProductBridge->getProductConcrete($cartItem->getSku()); |
||
37 | |||
38 | foreach ($productConcreteTransfer->getLocalizedAttributes() as $localizedAttribute) { |
||
39 | $attr = $localizedAttribute->getAttributes(); |
||
40 | if (isset($attr['short_description'])) { |
||
41 | $cartItem->setDescriptionAddition($attr['short_description']); |
||
42 | } |
||
43 | if (isset($attr['long_description'])) { |
||
44 | $cartItem->setDescription($attr['long_description']); |
||
45 | } |
||
46 | } |
||
47 | } |
||
48 | |||
49 | return $change; |
||
50 | } |
||
52 |
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