Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function handle($request, $next) |
||
19 | { |
||
20 | $response = $next($request); |
||
21 | |||
22 | if ($request->is('nova-api/*/detach') || |
||
23 | $request->is('nova-api/*/*/attach/*')) { |
||
24 | $permissionKey = (Nova::resourceForModel(app(PermissionRegistrar::class)->getPermissionClass()))::uriKey(); |
||
25 | |||
26 | if ($request->viaRelationship === $permissionKey) { |
||
27 | app(PermissionRegistrar::class)->forgetCachedPermissions(); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | return $response; |
||
32 | } |
||
34 |
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