auto-format all files; add table-definitions to test-bootstrap file

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-12-21 12:24:07 +01:00
parent 1ff784198c
commit 97b5439c0d
209 changed files with 6840 additions and 4534 deletions

View File

@@ -20,14 +20,21 @@
/**
* Create a valid from/to - mailheader (remove carriage-returns)
*
* @param string The name of the recipient
* @param string The mailaddress
* @param
* string The name of the recipient
* @param
* string The mailaddress
* @return string A valid header-entry
* @author Florian Aders <eleras@syscp.org>
*/
function buildValidMailFrom($name, $mailaddress)
{
$mailfrom = str_replace(array("\r", "\n"), '', $name) . ' <' . str_replace(array("\r", "\n"), '', $mailaddress) . '>';
$mailfrom = str_replace(array(
"\r",
"\n"
), '', $name) . ' <' . str_replace(array(
"\r",
"\n"
), '', $mailaddress) . '>';
return $mailfrom;
}