Improve type-safety, error reporting

phpcs-errors:221 phpunit-status:successful phpstan-errors:548
This commit is contained in:
2020-10-31 01:53:40 +01:00
committed by Stefan Rohde-Enslin
parent 733241be47
commit 5b71f800c2
3 changed files with 116 additions and 112 deletions

View File

@ -29,7 +29,10 @@ if (!empty($_POST) and !empty($_POST['selectedFields'])) {
$selectionActive = true;
$selectedFields = explode(",", trim($_POST['selectedFields'], ","));
}
else $selectionActive = false;
else {
$selectionActive = false;
$selectedFields = [];
}
$fieldsGetter = new CsvxmlAvailableFields($lang);
$availableFields = $fieldsGetter->getFields();