Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | public function isValid() |
||
17 | { |
||
18 | if ($this->data === null || empty($this->data)) { |
||
19 | $this->setErrorMessage($this->attributes["validatorName"], Lang::get("validator.required", [ |
||
20 | 'name' => $this->attributes["name"] |
||
21 | ], "The {name} field is required.")); |
||
22 | |||
23 | return false; |
||
24 | } |
||
25 | |||
26 | return true; |
||
27 | } |
||
28 | } |
||
29 |