Total Complexity | 3 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class ControllerExtension extends Extension |
||
17 | { |
||
18 | /** |
||
19 | * Gets a list of all Categories, either top level (default) or |
||
20 | * from a sub level |
||
21 | * |
||
22 | * @param Parent the ID of a parent cetegory |
||
|
|||
23 | * |
||
24 | * @return SS_List |
||
25 | */ |
||
26 | public function CatalogueCategories($ParentID = 0) |
||
27 | { |
||
28 | return CatalogueCategory::get() |
||
29 | ->filter( |
||
30 | [ |
||
31 | "ParentID" => $ParentID, |
||
32 | "Disabled" => 0 |
||
33 | ] |
||
34 | ); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Generate a list of categories that can be used in menus |
||
39 | * (this means that) categories are checked for their |
||
40 | * can view state before being returned |
||
41 | * |
||
42 | * @param Parent the ID of a parent cetegory |
||
43 | * |
||
44 | * @return SS_List |
||
45 | */ |
||
46 | public function CatalogueMenu($ParentID = 0) |
||
54 | } |
||
55 | ); |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Get a full list of products, filtered by a category if provided. |
||
60 | * |
||
61 | * @param ParentCategoryID the ID of the parent category |
||
62 | */ |
||
63 | public function CatalogueProducts($ParentCategoryID = 0) |
||
70 | ] |
||
71 | ); |
||
73 | } |
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