dev-remote_buildings #62

Merged
lopar merged 22 commits from dev-remote_buildings into dev 2023-07-31 17:10:48 +00:00
Showing only changes of commit ad182a21fe - Show all commits

View File

@ -9,6 +9,9 @@ class ConversionHelper
*/
public static function dataStringToArray(string $dataString): array
{
if (mb_substr($dataString, -1) === '|') {
$dataString = rtrim($dataString, '|');
}
$arr = json_decode(str_replace(['=', '|'], ['":', ',"'], '{"' . $dataString . '}'), true);
return $arr ?: [];
}