| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class FactFinderSdkAttributesExpander extends FactFinderSdkAbstractExpander |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param \Generated\Shared\Transfer\LocaleTransfer $localeTransfer |
||
| 19 | * @param \Generated\Shared\Transfer\CurrencyTransfer $currencyTransfer |
||
| 20 | * @param \Generated\Shared\Transfer\StoreTransfer $storeTransfer |
||
| 21 | * @param array $productData |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | public function expand(LocaleTransfer $localeTransfer, CurrencyTransfer $currencyTransfer, StoreTransfer $storeTransfer, $productData) |
||
| 26 | { |
||
| 27 | $abstractProductAttributes = json_decode($productData[FactFinderSdkConstants::ITEM_ABSTRACT_PRODUCT_ATTRIBUTES], true); |
||
| 28 | $concreteProductAttributes = json_decode($productData[FactFinderSdkConstants::ITEM_CONCRETE_PRODUCT_ATTRIBUTES], true); |
||
| 29 | |||
| 30 | $attributes = array_merge($abstractProductAttributes, $concreteProductAttributes); |
||
| 31 | |||
| 32 | $productData[FactFinderSdkConstants::ITEM_ATTRIBUTES] = $this->formatAttributes($attributes); |
||
| 33 | |||
| 34 | return $productData; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param array $attributes |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | protected function formatAttributes($attributes) |
||
| 51 | } |
||
| 52 | } |
||
| 53 |
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