| Total Complexity | 5 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class ContactFormExtensionsVariable |
||
| 24 | { |
||
| 25 | public function name() |
||
| 26 | { |
||
| 27 | return ContactFormExtensions::$plugin->name; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function recaptcha() |
||
| 31 | { |
||
| 32 | if (ContactFormExtensions::$plugin->settings->recaptcha) { |
||
| 33 | return ContactFormExtensions::$plugin->contactFormExtensionsService->getRecaptcha()->render(); |
||
| 34 | } |
||
| 35 | |||
| 36 | return ''; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function submissions($criteria = null): ContactFormSubmissionQuery |
||
| 46 | } |
||
| 47 | } |
||
| 48 |