1 | <?php |
||||
2 | |||||
3 | namespace AlexBowers\NovaCategoriseResources; |
||||
4 | |||||
5 | use Laravel\Nova\Nova; |
||||
0 ignored issues
–
show
|
|||||
6 | use Illuminate\Http\Request; |
||||
0 ignored issues
–
show
The type
Illuminate\Http\Request was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
7 | use Laravel\Nova\Http\Requests\NovaRequest; |
||||
0 ignored issues
–
show
The type
Laravel\Nova\Http\Requests\NovaRequest was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
8 | use Illuminate\Support\Str; |
||||
0 ignored issues
–
show
The type
Illuminate\Support\Str was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
9 | use Symfony\Component\Finder\Finder; |
||||
0 ignored issues
–
show
The type
Symfony\Component\Finder\Finder was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||
10 | |||||
11 | class NovaCategorise extends Nova |
||||
12 | { |
||||
13 | public static function availableResourcesGrouped(Request $request) |
||||
14 | { |
||||
15 | return collect(self::availableResources($request))->filter(function ($resource) { |
||||
0 ignored issues
–
show
The function
collect was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
16 | return $resource::$displayInNavigation; |
||||
17 | })->groupBy(function ($resource) { |
||||
18 | if (property_exists($resource, 'category')) { |
||||
19 | return __(ucwords($resource::$category)); |
||||
0 ignored issues
–
show
The function
__ was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
20 | } |
||||
21 | |||||
22 | return __('Other'); |
||||
23 | })->sortKeys(); |
||||
24 | } |
||||
25 | } |
||||
26 |
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