| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 2 | public function execute(ProcessState $state) |
|
| 32 | { |
||
| 33 | 2 | $violations = $this->validator->validate($state->getData(), null, $state->getOptions()['groups']); |
|
| 34 | |||
| 35 | 2 | if ($violations->count() > 0) { |
|
| 36 | 1 | $state->error('error with object', [ |
|
| 37 | 1 | 'errors' => $this->violationToArray($violations), |
|
| 38 | ]); |
||
| 39 | 1 | $state->markFail(); |
|
| 40 | |||
| 41 | 1 | return; |
|
| 42 | } |
||
| 56 |