| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function contact($viewVars = []) |
||
| 17 | { |
||
| 18 | $this |
||
|
|
|||
| 19 | ->emailFormat('html') |
||
| 20 | ->from(['[email protected]' => 'Contact Form']) |
||
| 21 | ->to(Configure::read('Site.contact_email')) |
||
| 22 | ->subject(isset($viewVars['subject']) ? $viewVars['subject'] : 'Someone has contacted you') |
||
| 23 | ->set($viewVars); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.