| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | abstract class ProctRecordAction extends Action |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string error message thrown when proct fails. |
||
| 18 | */ |
||
| 19 | protected string $errorMessage = 'Process failed for unknown reasons.'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Procts a record. |
||
| 23 | * |
||
| 24 | * @param mixed $id the identifier value. |
||
| 25 | * @return ARContract the record after successful proct |
||
| 26 | */ |
||
| 27 | public function run($id): ARContract |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param ARContract $model |
||
| 40 | * @param array $params the request params |
||
| 41 | * @return bool whether the proct was successful |
||
| 42 | */ |
||
| 43 | abstract protected function proct(ARContract $model, array $params): bool; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return HttpException |
||
| 47 | */ |
||
| 48 | protected function errorException(): HttpException |
||
| 54 |
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