| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class ProductLayoutUpdateManager extends \Magento\TestFramework\Catalog\Model\ProductLayoutUpdateManager |
||
|
|
|||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var array Keys are product IDs, values - file names. |
||
| 15 | */ |
||
| 16 | private $fakeFiles = []; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Supply fake files for a product. |
||
| 20 | * |
||
| 21 | * @param int $forProductId |
||
| 22 | * @param string[]|null $files Pass null to reset. |
||
| 23 | */ |
||
| 24 | public function setFakeFiles(int $forProductId, ?array $files): void |
||
| 25 | { |
||
| 26 | if ($files === null) { |
||
| 27 | unset($this->fakeFiles[$forProductId]); |
||
| 28 | } else { |
||
| 29 | $this->fakeFiles[$forProductId] = $files; |
||
| 30 | } |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Fetches fake/mock files added through $this->setFakeFiles() |
||
| 35 | * |
||
| 36 | * @param ProductInterface $product |
||
| 37 | * @return array |
||
| 38 | */ |
||
| 39 | public function fetchAvailableFiles(ProductInterface $product): array |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
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