| Conditions | 5 | 
| Paths | 3 | 
| Total Lines | 16 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 15 |     public function isValid() { | 
            ||
| 16 |       if (!parent::isValid()) { | 
            ||
| 17 | return false;  | 
            ||
| 18 | }  | 
            ||
| 19 | |||
| 20 | if (  | 
            ||
| 21 | $this->getElements()['emailFrom']->getValue() == '[email protected]'  | 
            ||
| 22 | and $this->getElements()['emailTo']->getValue() == '[email protected]'  | 
            ||
| 23 | and $this->getElements()['message']->getValue() == 'copy message text'  | 
            ||
| 24 |       ) { | 
            ||
| 25 | $this->validationResult = false;  | 
            ||
| 26 |         $this->addError('message duplicate error'); | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | return $this->validationResult;  | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | }  |