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

@@ -14,9 +14,9 @@
* @package Functions
*
*/
function getFormFieldDataText($fieldname, $fielddata, &$input) {
if(isset($input[$fieldname])) {
function getFormFieldDataText($fieldname, $fielddata, &$input)
{
if (isset($input[$fieldname])) {
$newfieldvalue = str_replace("\r\n", "\n", $input[$fieldname]);
} else {
$newfieldvalue = $fielddata['default'];

View File

@@ -16,7 +16,6 @@
* @package Functions
*
*/
function getFormFieldOutputText($fieldname, $fielddata, $do_show = true)
{
$label = $fielddata['label'];

View File

@@ -16,15 +16,13 @@
* @package Functions
*
*/
function validateFormFieldText($fieldname, $fielddata, $newfieldvalue)
{
$returnvalue = 'stringformaterror';
if(preg_match('/^[^\0]*$/', $newfieldvalue))
{
if (preg_match('/^[^\0]*$/', $newfieldvalue)) {
$returnvalue = true;
}
return $returnvalue;
}