| Total Complexity | 2 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | class SettingsPage extends PageType { |
||
| 29 | |||
| 30 | public function getContent(): string { |
||
| 31 | $template = new DwooTemplate("pages/sendmail"); |
||
| 32 | |||
| 33 | $template->assign("form_action", DomainUtils::generateURL("admin/sendmail")); |
||
| 34 | $template->assign("content", ""); |
||
| 35 | |||
| 36 | return $template->getCode(); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function listRequiredPermissions(): array { |
||
| 41 | } |
||
| 42 | |||
| 46 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.