Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function validate() |
||
30 | { |
||
31 | $result = parent::validate(); |
||
32 | |||
33 | if (strlen($this->Content) === 0) { |
||
34 | $result->addFieldError('Content', 'Content required'); |
||
35 | } |
||
36 | |||
37 | if (strlen($this->Title) === 0) { |
||
38 | $result->addFieldError('Title', 'Title required'); |
||
39 | } |
||
40 | |||
41 | return $result; |
||
42 | } |
||
64 |