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