DX: repairs code style, and psalm types

This commit is contained in:
2022-10-31 18:22:01 +01:00
parent afa6dfd77c
commit acc9523ff5
4 changed files with 3 additions and 28 deletions

View File

@@ -58,7 +58,7 @@ class ExportAddressHelper
'country' => ['country'],
'postal_code' => ['postcode_code', 'postcode_name'],
'street' => ['street', 'streetNumber'],
'building' => ['buildingName', 'corridor', 'distribution', 'extra', 'flat', 'floor'],
'building' => ['buildingName', 'corridor', 'distribution', 'extra', 'flat', 'floor', 'steps'],
'string' => ['_as_string'],
'attributes' => ['isNoAddress', 'confidential', 'id'],
'geom' => ['_lat', '_lon'],
@@ -97,7 +97,6 @@ class ExportAddressHelper
case 'street':
case 'streetNumber':
case 'building':
case 'floor':
case 'corridor':
case 'steps':
@@ -238,10 +237,6 @@ class ExportAddressHelper
return $translationPrefix . $sanitizedKey;
}
if (null === $value) {
return '';
}
switch ($value) {
case null:
return '';