| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3.0261 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 1 | public function validate(FieldInterface $field, InputModel $model, InputValidation $validation) |
|
| 37 | { |
||
| 38 | 1 | $value = $model->getInput($field); |
|
| 39 | |||
| 40 | 1 | if ($value != $this->checked_value) { |
|
| 41 | 1 | $model->setError( |
|
| 42 | $field, |
||
| 43 | 1 | $this->error ?: lang::text("mindplay/kissform", "checked", ["field" => $validation->getLabel($field)]) |
|
| 44 | ); |
||
| 45 | } |
||
| 46 | 1 | } |
|
| 47 | } |
||
| 48 |