Total Complexity | 2 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Role extends Resource |
||
9 | { |
||
10 | use RoleResourceTrait, TranslationHandelTrait { |
||
11 | TranslationHandelTrait::applyFilters insteadof RoleResourceTrait; |
||
12 | } |
||
13 | |||
14 | /** |
||
15 | * The model the resource corresponds to. |
||
16 | * |
||
17 | * @var string |
||
18 | */ |
||
19 | public static $model = SpatieRole::class; |
||
20 | |||
21 | /** |
||
22 | * The single value that should be used to represent the resource when being displayed. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | public static $title = 'name'; |
||
27 | |||
28 | /** |
||
29 | * The columns that should be searched. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | public static $search = [ |
||
34 | 'name', |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Indicates if the resource should be displayed in the sidebar. |
||
39 | * |
||
40 | * @var bool |
||
41 | */ |
||
42 | public static $displayInNavigation = false; |
||
43 | |||
44 | /** |
||
45 | * Get the displayable label of the resource. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public static function label() |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Get the displayable singular label of the resource. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public static function singularLabel() |
||
64 |
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