| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class QueriedModelUpdater extends AbstractFormDataProcessor implements FormDataProcessorInterface |
||
| 13 | { |
||
| 14 | use QueriesRepositoryTrait; |
||
| 15 | |||
| 16 | public function __construct( |
||
| 17 | string $name, |
||
| 18 | ?array $fields, |
||
| 19 | object $repository, |
||
| 20 | string $queryMethod, |
||
| 21 | string $updateMethod, |
||
| 22 | string $lookup, |
||
| 23 | ?ServerRequestLocation $location = null, |
||
| 24 | ?string $commitMethod = null |
||
| 25 | ) { |
||
| 26 | parent::__construct($name, $fields); |
||
| 27 | |||
| 28 | $this->repository = $repository; |
||
| 29 | $this->queryMethod = $queryMethod; |
||
| 30 | $this->updateMethod = $updateMethod; |
||
| 31 | $this->lookup = $lookup; |
||
| 32 | $this->commitMethod = $commitMethod; |
||
| 33 | $this->location = $location ?? ServerRequestLocation::Attribute(); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function process(ServerRequestInterface $request, array $results): ?FormProcessReportInterface |
||
| 37 | { |
||
| 38 | if ($this->hasReasonToProcess($results)) { |
||
| 39 | $this->updateModel($request); |
||
| 40 | } |
||
| 41 | |||
| 42 | return null; |
||
| 43 | } |
||
| 44 | |||
| 45 | protected function updateModel(ServerRequestInterface $request): void |
||
| 49 | } |
||
| 50 | } |
||
| 51 |
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