Total Complexity | 2 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | abstract class BaseUpdateModelPublicStatusAction extends CrudModelAction |
||
12 | { |
||
13 | use StatusUpdateResponse; |
||
14 | |||
15 | /** |
||
16 | * The Eloquent Model class |
||
17 | * |
||
18 | * @var AbstractModelWithPublicStatus |
||
19 | */ |
||
20 | protected $modelClass; |
||
21 | |||
22 | /** |
||
23 | * @var AbstractModelWithPublicStatus |
||
24 | */ |
||
25 | protected $model; |
||
26 | |||
27 | /** |
||
28 | * Update a Model's 'public_status' attribute |
||
29 | * |
||
30 | * @return Model |
||
31 | */ |
||
32 | protected function handle(): Model |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Return the default success response |
||
44 | * |
||
45 | * @param string|null $response |
||
46 | * @return string |
||
47 | */ |
||
48 | protected function successResponse(string $response = null): string { |
||
52 |
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